From: odion@efficios.com
To: 66888@debbugs.gnu.org
Cc: Olivier Dion <odion@efficios.com>
Subject: [bug#66888] [PATCH 2/2] gnu: Add babeltrace/dev.
Date: Wed, 1 Nov 2023 16:35:16 -0400 [thread overview]
Message-ID: <20231101203516.29726-1-odion@efficios.com> (raw)
In-Reply-To: <20231101203022.28546-1-odion@efficios.com>
From: Olivier Dion <odion@efficios.com>
This dev variant of the package babeltrace is slower, but allows better
developement of plugins as recommended by the authors.
* gnu/packages/instrumentation.scm (babeltrace/dev): New variable.
Change-Id: Ib54ced9a1ede5d9acc9a53ff325663a28a3b447f
---
gnu/packages/instrumentation.scm | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm
index 0d6513aaca..4c92c81105 100644
--- a/gnu/packages/instrumentation.scm
+++ b/gnu/packages/instrumentation.scm
@@ -97,11 +97,9 @@ (define-public babeltrace
(modify-phases %standard-phases
;; These are recommended in the project's README for a development
;; build configuration.
- (add-before 'configure 'set-environment-variables
+ (add-after 'unpack 'reconfigure
(lambda _
- (setenv "BABELTRACE_DEV_MODE" "1")
- (setenv "BABELTRACE_MINIMAL_LOG_LEVEL" "TRACE")
- (invoke "autoreconf" "-vfi"))))))
+ (delete-file "configure"))))))
(inputs
(list glib))
;; NOTE - elfutils is used for the LTTng debug information filter
@@ -143,6 +141,18 @@ (define-public babeltrace
bindings, and the command-line tool @command{babeltrace2}.")
(license license:expat)))
+(define-public babeltrace/dev
+ (package/inherit babeltrace
+ (name "babeltrace-dev")
+ (arguments
+ (substitute-keyword-arguments (package-arguments babeltrace)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'configure 'set-environment-variables
+ (lambda _
+ (setenv "BABELTRACE_DEV_MODE" "1")
+ (setenv "BABELTRACE_MINIMAL_LOG_LEVEL" "TRACE")))))))))
+
(define-public barectf
(package
(name "barectf")
--
2.41.0
next prev parent reply other threads:[~2023-11-01 20:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-01 20:30 [bug#66888] [PATCH 1/2] gnu: babeltrace: Do not install bindings as egg odion
2023-11-01 20:35 ` odion [this message]
2023-11-22 15:05 ` bug#66888: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231101203516.29726-1-odion@efficios.com \
--to=odion@efficios.com \
--cc=66888@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.