guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/06: gnu: bpftrace: Update to 1.21.2.


From: guix-commits
Subject: 01/06: gnu: bpftrace: Update to 1.21.2.
Date: Mon, 28 Oct 2024 00:30:47 -0400 (EDT)

z572 pushed a commit to branch master
in repository guix.

commit af67cce90213b753555a411ff780e9d8b329f728
Author: Ashish SHUKLA <ashish.is@lostca.se>
AuthorDate: Thu Oct 24 21:43:12 2024 +0200

    gnu: bpftrace: Update to 1.21.2.
    
    * gnu/packages/linux.scm (bpftrace): Update to 1.21.2.
    [arguments]<#:phases> Rename, and update "patch-paths" phase.
    
    Change-Id: If7180d4da8073914172296f46a3427ccdff22478
---
 gnu/packages/linux.scm | 50 +++++++++++++++++++++++++++++++-------------------
 1 file changed, 31 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e496f3c88d..202940c63d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -10341,7 +10341,7 @@ modification of BPF objects on the system.")
 (define-public bpftrace
   (package
     (name "bpftrace")
-    (version "0.21.0")
+    (version "0.21.2")
     (source
      (origin
        (method git-fetch)
@@ -10350,25 +10350,37 @@ modification of BPF objects on the system.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "06yg3w80kdq0i003w2gvn0czbh8z9d3rfgmglp37dkir7g3dc6iz"))))
+        (base32 "0icbhf1wk523a7lcmwqa67zc6hl6h02p5mfg26cizva447kbwsgz"))))
     (build-system cmake-build-system)
-    (arguments (list #:configure-flags #~(list "-DBUILD_TESTING=ON")
-                     ;; Only run the unit tests suite, as the other ones
-                     ;; (runtime_tests, tools-parsing-test) require to run as
-                     ;; 'root'.
-                     #:test-target "bpftrace_test"
-                     #:phases #~(modify-phases %standard-phases
-                                  (add-after 'unpack 'patch-paths
-                                    (lambda _
-                                      (with-directory-excursion "tests"
-                                        (substitute* (find-files ".")
-                                          (("/bin/sh")
-                                           (which "sh")))
-                                        (substitute* '("child.cpp"
-                                                       "runtime/call"
-                                                       "procmon.cpp")
-                                          (("/bin/ls")
-                                           (which "ls")))))))))
+    (arguments
+     (list
+      #:configure-flags #~(list "-DBUILD_TESTING=ON")
+      ;; Only run the unit tests suite, as the other ones
+      ;; (runtime_tests, tools-parsing-test) require to run as
+      ;; 'root'.
+      #:test-target "bpftrace_test"
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; This patch also fixes broken compilation due to improper detection
+          ;; of bfd features. This is taken from following upstream PR:
+          ;; https://github.com/bpftrace/bpftrace/pull/3332
+          (add-after 'unpack 'patch-paths-and-bfd-defs
+            (lambda _
+              (substitute* '("cmake/FindLibBfd.cmake"
+                             "src/CMakeLists.txt")
+                (("LIBSFRAME_FOUND")
+                 "LIBSFRAME_LIBRARIES")
+                (("LIBZSTD_FOUND")
+                 "LIBZSTD_LIBRARIES"))
+              (with-directory-excursion "tests"
+                (substitute* (find-files ".")
+                  (("/bin/sh")
+                   (which "sh")))
+                (substitute* '("child.cpp"
+                               "runtime/call"
+                               "procmon.cpp")
+                  (("/bin/ls")
+                   (which "ls")))))))))
     (native-inputs (list bison dwarves flex googletest xxd))
     (inputs (list bcc clang-15 elfutils libbpf libiberty cereal))
     (home-page "https://github.com/bpftrace/bpftrace";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]