unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Olivier Dion via Guix-patches via <guix-patches@gnu.org>
To: 63218@debbugs.gnu.org
Cc: Olivier Dion <olivier.dion@polymtl.ca>
Subject: [bug#63218] [PATCH] gnu: babeltrace: Fix build failure.
Date: Mon,  1 May 2023 20:56:18 -0400	[thread overview]
Message-ID: <3d84fb99205dc84d30ac9d17e06ad0c6a5ad5fb5.1682988972.git.olivier.dion@polymtl.ca> (raw)

* gnu/packages/instrumentation.scm (babeltrace)
[native-inputs]: Add autoconf, automake, libtool.
[arguments]: Invoke autoreconf before 'configure.
---
 gnu/packages/instrumentation.scm | 33 +++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm
index c25086127a..114b100807 100644
--- a/gnu/packages/instrumentation.scm
+++ b/gnu/packages/instrumentation.scm
@@ -17,6 +17,7 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (gnu packages instrumentation)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
@@ -93,7 +94,8 @@ (define-public babeltrace
          (add-before 'configure 'set-environment-variables
            (lambda _
              (setenv "BABELTRACE_DEV_MODE" "1")
-             (setenv "BABELTRACE_MINIMAL_LOG_LEVEL" "TRACE"))))))
+             (setenv "BABELTRACE_MINIMAL_LOG_LEVEL" "TRACE")
+             (invoke "autoreconf" "-vfi"))))))
     (inputs
      (list glib))
     ;; NOTE - elfutils is used for the LTTng debug information filter
@@ -104,15 +106,28 @@ (define-public babeltrace
      (list 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.
+    ;;
+    ;; NOTE - Babeltrace 2.0.4 is distributed with a aclocal.m4 that does not
+    ;; support Python3.10.  We can either disable Python's bindings or we can
+    ;; reconfigure the project with our autoconf.  This is because the
+    ;; distribution tarballs are generated on Ubuntu LTS 18.04.
+    ;;
+    ;; `paredit-raise-sexp' on the first list of native inputs and remove the
+    ;; 'autoreconf invokation whenever we bump to the next version that is
+    ;; goind to be generated on Ubuntu LTS 22.04.
     (native-inputs
-     (list asciidoc
-           bison
-           flex
-           pkg-config
-           python-3
-           python-sphinx
-           swig
-           xmltoman))
+     (append
+      (list asciidoc
+            bison
+            flex
+            pkg-config
+            python-3
+            python-sphinx
+            swig
+            xmltoman)
+      (list autoconf
+            automake
+            libtool)))
     (home-page "https://babeltrace.org/")
     (synopsis "Trace manipulation toolkit")
     (description "Babeltrace 2 is a framework for viewing, converting,

base-commit: 39ba8a10971f15264966823e8696d63c2995df86
-- 
2.39.2





             reply	other threads:[~2023-05-02  0:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02  0:56 Olivier Dion via Guix-patches via [this message]
2023-05-02  9:57 ` bug#63218: [PATCH] gnu: babeltrace: Fix build failure Ludovic Courtès
2023-05-02 13:35   ` [bug#63218] " Olivier Dion via Guix-patches via

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=3d84fb99205dc84d30ac9d17e06ad0c6a5ad5fb5.1682988972.git.olivier.dion@polymtl.ca \
    --to=guix-patches@gnu.org \
    --cc=63218@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).