From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id xVLaGDQBm2HHQAAAgWs5BA (envelope-from ) for ; Mon, 22 Nov 2021 03:32:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2OXEEzQBm2HwaAAAbx9fmQ (envelope-from ) for ; Mon, 22 Nov 2021 02:32:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 043A63304A for ; Mon, 22 Nov 2021 03:32:20 +0100 (CET) Received: from localhost ([::1]:56796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moz7z-0004vl-5l for larch@yhetil.org; Sun, 21 Nov 2021 21:32:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moz7i-0004sh-Md for guix-patches@gnu.org; Sun, 21 Nov 2021 21:32:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moz7i-0003yn-DL for guix-patches@gnu.org; Sun, 21 Nov 2021 21:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moz7i-0000in-Ax for guix-patches@gnu.org; Sun, 21 Nov 2021 21:32:02 -0500 Subject: bug#50757: [PATCH] gnu: Add babeltrace. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 22 Nov 2021 02:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50757 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: Olivier Dion Cc: 50757-done@debbugs.gnu.org Mail-Followup-To: 50757@debbugs.gnu.org, maxim.cournoyer@gmail.com, olivier.dion@polymtl.ca Received: via spool by 50757-done@debbugs.gnu.org id=D50757.16375482972729 (code D ref 50757); Mon, 22 Nov 2021 02:32:02 +0000 Received: (at 50757-done) by debbugs.gnu.org; 22 Nov 2021 02:31:37 +0000 Received: from localhost ([127.0.0.1]:46448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moz7I-0000hx-KI for submit@debbugs.gnu.org; Sun, 21 Nov 2021 21:31:36 -0500 Received: from mail-qt1-f173.google.com ([209.85.160.173]:40485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moz7H-0000hj-26 for 50757-done@debbugs.gnu.org; Sun, 21 Nov 2021 21:31:35 -0500 Received: by mail-qt1-f173.google.com with SMTP id t34so15224704qtc.7 for <50757-done@debbugs.gnu.org>; Sun, 21 Nov 2021 18:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=r8Rj9va6GwWeJbCl6DkLvmhX5hpAz0KZNxox3FJHIA4=; b=iAf1hP/vemG7byZ+Jl2t6SykHsXehXXlWQXXJfDZccpbpsNFy8GYdJuy4S9kCgsQ3g howJ2BiYaztrQdUFaMaTYnmLcplLxJXnXxKF8z9SF8TCxF165+rgCPMivw/5FaAx2TdJ Fp1R+pIrI54iuudzOl1gHY+5B8/ZTxHqrPBcxNCdPJAFQdv8siHBxTffPbQApr+WOWme gPOhQw96culYZYiZTq2o1Kta6LgLM/3i9cGFmWVA/yczDTC+0ecBvxu1ER2AT2vjDgN4 9HmmVDxBNmY+UzHjqgpSGJIn4d1TdwujmdviCjyeXkcJ75HmHMWO7MbFgZjrK3BSg2+R TqvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=r8Rj9va6GwWeJbCl6DkLvmhX5hpAz0KZNxox3FJHIA4=; b=iaKE/i8KFJPVZuVdCtAnqSkk3jCKEF71iP0ymyfiMuhRfcw5w6SocIxdBgdwRhqyvI rKovdPC19bBEIxwlByH4k0fCwPjTMLEIhkZLDI+FRSdt1GCuovRO8lhbZxP517vrzJvq LrhgRZ5i6D4LXVHccd1vhI8MmzOHK93AFWb6piufIQIxrasPIojat9KNBFIyqMzJXv0o cqMX9P2Mu6E0ZdkSXWzLtuGU6YEIbKVQXQdjgJ+zeKYbVPowzVXHjaEtt/Am/Bq8Hj53 8pwlovM+cPh1CsGUgxB+QCt0ctJj+XnEaQvmUwS2vZBhQnB8aoE52lLM9zHQvmN/oFGu tETg== X-Gm-Message-State: AOAM531TMDMxXzZywUZJMYjmbR6j0Wilkvi8sRErTsIaSDUaGkYcBurj ST++iCK+9ohK4lvF6kI5mVdONiNFeuVr6y/Q X-Google-Smtp-Source: ABdhPJzceJx553FBFpi59jzUjjMKe1wArqByTCK/1rcESNNiJpvEhK6jGz1McVryEDuBeQagiKiayQ== X-Received: by 2002:a05:622a:5c7:: with SMTP id d7mr27303500qtb.202.1637548289459; Sun, 21 Nov 2021 18:31:29 -0800 (PST) Received: from hurd (dsl-10-148-124.b2b2c.ca. [72.10.148.124]) by smtp.gmail.com with ESMTPSA id h22sm3809414qtb.86.2021.11.21.18.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 18:31:29 -0800 (PST) From: Maxim Cournoyer References: <20210923124113.3269-1-olivier.dion@polymtl.ca> Date: Sun, 21 Nov 2021 21:31:28 -0500 In-Reply-To: (Olivier Dion's message of "Sun, 21 Nov 2021 13:31:42 -0500") Message-ID: <87v90kc45b.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637548340; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=r8Rj9va6GwWeJbCl6DkLvmhX5hpAz0KZNxox3FJHIA4=; b=VNXfZpPnux7JdogEytBWqTMyzA3zxX+sQRXfPz4xVZjMUU9ldjYcle08wTjMvzogR5d91b 6zeG5zgG6ao0v2epQ1cluTNCYsb+e/hhf7bV2fsi7vbDs0R43E3obAJcgoWuRPn7XeqCIO GiRQjcljzvBZXHc4BzzuSHTBGTMyQESfiX5EotuRCCaa5JGCels1MAxQtpCFBdclvNKYk/ 3q8bLqtFPhoEjVc2Oy8popUnr5rt+AaXsBB35QLyYersP75lux0WdvrhlKbL7SZBf357ut JahW1YZ0bXcb4ySySnVmYe2y9nCcmglDWUy/OMYNFG57UOUjux88KKfnYnY7Ag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637548340; a=rsa-sha256; cv=none; b=MLJjQon12pQuLW8yeCSyKs1dQFh49/WyPh+vO8MwTyA6tMwZXvCp1ep5nf066PrzZ77odd W2KI8aKwBS7caVsdPXsJEdJmrJ0Dm7T4WJIek2/yI8+OiAMIHqmg8afsmDs0FSQmTf49xN lPHWDJxA7HjtAZltqxpJ8TScQja1MXjNqBNLrSgxNZoBjmRipYV/UpYF7aroEf29clAvFS qEldS1NZSieFsqWwcU3OIK3Zm5M39TXtTDskztdtIyEuGDSUYV6//h6ifCYkHdOzbNq04z JVu2hFJrnQn/WEe7V/ydYzNrJFzftD49UVRiiOwAfFwXPpBu+YVQVxof97M7vA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="iAf1hP/v"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="iAf1hP/v"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 043A63304A X-Spam-Score: -1.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: AQmuwGfWIV1o Hey Olivier! Olivier Dion 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