unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Olivier Dion <olivier.dion@polymtl.ca>
Cc: 50757-done@debbugs.gnu.org
Subject: bug#50757: [PATCH] gnu: Add babeltrace.
Date: Sun, 21 Nov 2021 21:31:28 -0500	[thread overview]
Message-ID: <87v90kc45b.fsf_-_@gmail.com> (raw)
In-Reply-To: <e7d66e7c057ec525488578aec8853c730a14a04f.1637519461.git.olivier.dion@polymtl.ca> (Olivier Dion's message of "Sun, 21 Nov 2021 13:31:42 -0500")

Hey Olivier!

Olivier Dion <olivier.dion@polymtl.ca> writes:

> * gnu/packages/linux.scm (babeltrace): New variable.
> ---
>  gnu/packages/linux.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 56 insertions(+)
>
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index 4d167dc522..81589955cc 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -131,6 +131,7 @@ (define-module (gnu packages linux)
>    #:use-module (gnu packages sdl)
>    #:use-module (gnu packages serialization)
>    #:use-module (gnu packages slang)
> +  #:use-module (gnu packages sphinx)
>    #:use-module (gnu packages sqlite)
>    #:use-module (gnu packages texinfo)
>    #:use-module (gnu packages tls)
> @@ -8199,6 +8200,61 @@ (define-public lttng-tools
>  @code{lttng-relayd} for network streaming.")
>      (license (list  license:gpl2 license:lgpl2.1))))
>  
> +(define-public babeltrace
> +  (package
> +    (name "babeltrace")
> +    (version "2.0.4")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://www.efficios.com/files/babeltrace/babeltrace2-"
> +                                  version ".tar.bz2"))
> +              (sha256
> +               (base32 "1jlv925pr7hykc48mdvbmqm4ipy1r11xwzapa6fdpdfshmk12kvp"))))
> +
> +    (build-system gnu-build-system)
> +
> +    (arguments
> +     `(;; FIXME - When Python's bindings are enabled, tests do not pass.
> +       #:configure-flags '("--enable-debug-info"
> +                           "--enable-man-pages"
> +                           "--disable-python-bindings"
> +                           "--disable-python-plugins")
> +       #:phases
> +       (modify-phases %standard-phases
> +         ;; These are recommended in the project's README for a development
> +         ;; build configuration.
> +         (add-before 'configure 'set-environment-variables
> +           (lambda _
> +             (setenv "BABELTRACE_DEV_MODE" "1")
> +             (setenv "BABELTRACE_MINIMAL_LOG_LEVEL" "TRACE"))))))
> +    (inputs
> +     `(("glib" ,glib)))
> +    ;; NOTE - elfutils is used for the LTTng debug information filter
> +    ;; component class.  This can be moved to `native-inputs` if
> +    ;; `--enable-debug-info` is replaced by `--disable-debug-info` in
> +    ;; `#:configure-flags`.
> +    (propagated-inputs
> +     `(("elfutils" ,elfutils)))
> +    ;; NOTE - python-3 is set here for generating the bindings.  Users need to
> +    ;; install python-3 in their profile in order to use these bindings.
> +    (native-inputs
> +     `(("asciidoc" ,asciidoc)
> +       ("bison" ,bison)
> +       ("flex" ,flex)
> +       ("pkg-config" ,pkg-config)
> +       ("python-3" ,python-3)
> +       ("python-sphinx" ,python-sphinx)
> +       ("swig", swig)
> +       ("xmltoman" ,xmltoman)))
> +    (home-page "https://babeltrace.org/")
> +    (synopsis "Trace manipulation toolkit")
> +    (description "Babeltrace 2 is a framework for viewing, converting,
> +transforming, and analyzing traces.  It is also the reference parser
> +implementation of the Common Trace Format (CTF), produced by tools such as
> +LTTng and barectf.  This package provides a library with a C API, Python 3
> +bindings, and the command-line tool @command{babeltrace2}.")
> +    (license license:expat)))
> +
>  (define-public kexec-tools
>    (package
>      (name "kexec-tools")

Thanks for this, and to Sarah for the nice review!

I've pushed this as-is to master as
82f8ac4c291e80ef94ee57ff1e0f62f1307c0afb.

Happy hacking!

Maxim




      reply	other threads:[~2021-11-22  2:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 12:41 [bug#50757] [PATCH] gnu: Add babeltrace Olivier Dion via Guix-patches via
2021-09-23 19:30 ` Sarah Morgensen
2021-10-17 15:19 ` Olivier Dion via Guix-patches via
2021-11-21 18:31 ` [bug#50757] [PATCH v2] " Olivier Dion via Guix-patches via
2021-11-22  2:31   ` Maxim Cournoyer [this message]

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v90kc45b.fsf_-_@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=50757-done@debbugs.gnu.org \
    --cc=olivier.dion@polymtl.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).