gnu: Add babeltrace/dev.
* gnu/packages/instrumentation.scm (babeltrace/dev): New variable. Change-Id: Ib54ced9a1ede5d9acc9a53ff325663a28a3b447f Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c4b4badb2e
commit
0bc8560340
1 changed files with 17 additions and 4 deletions
|
@ -97,11 +97,9 @@
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; These are recommended in the project's README for a development
|
;; These are recommended in the project's README for a development
|
||||||
;; build configuration.
|
;; build configuration.
|
||||||
(add-before 'configure 'set-environment-variables
|
(add-after 'unpack 'reconfigure
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "BABELTRACE_DEV_MODE" "1")
|
(delete-file "configure"))))))
|
||||||
(setenv "BABELTRACE_MINIMAL_LOG_LEVEL" "TRACE")
|
|
||||||
(invoke "autoreconf" "-vfi"))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list glib))
|
(list glib))
|
||||||
;; NOTE - elfutils is used for the LTTng debug information filter
|
;; NOTE - elfutils is used for the LTTng debug information filter
|
||||||
|
@ -143,6 +141,21 @@ LTTng and barectf. This package provides a library with a C API, Python 3
|
||||||
bindings, and the command-line tool @command{babeltrace2}.")
|
bindings, and the command-line tool @command{babeltrace2}.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public babeltrace/dev
|
||||||
|
(package/inherit babeltrace
|
||||||
|
;; This dev variant of the package babeltrace is slower but allows better
|
||||||
|
;; development of plugins as recommended by the authors.
|
||||||
|
(name "babeltrace-dev")
|
||||||
|
(synopsis "Trace manipulation toolkit (variant for plugin developers)")
|
||||||
|
(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
|
(define-public barectf
|
||||||
(package
|
(package
|
||||||
(name "barectf")
|
(name "barectf")
|
||||||
|
|
Reference in a new issue