guix-commits
[Top][All Lists]
Advanced

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

03/05: gnu: Add libtraceevent.


From: guix-commits
Subject: 03/05: gnu: Add libtraceevent.
Date: Fri, 10 Mar 2023 15:47:20 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit b6a1b61f00c5d24b112dc33a7fbdf1e36430a237
Author: Petr Hodina <phodina@protonmail.com>
AuthorDate: Fri Mar 3 15:54:21 2023 +0000

    gnu: Add libtraceevent.
    
    * gnu/packages/linux.scm (libtraceevent): New variable.
    
    Co-authored-by: Bruno Victal <mirai@makinata.eu>
    Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
 gnu/packages/linux.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 35d12c20d0..d05b34bcbf 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9724,6 +9724,45 @@ older system-wide @file{/sys} interface.")
                    license:gpl2+      ;; gpio-tools
                    license:lgpl3+)))) ;; C++ bindings
 
+(define-public libtraceevent
+  (package
+    (name "libtraceevent")
+    (version "1.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url 
"https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git";)
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1kbl11lqh8cadi6r3qqxx68idr7597l6i50pr5p5mdgsf6k2i83c"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            (substitute* "Makefile"
+              (("/bin/pwd") "pwd"))
+            (substitute* "scripts/utils.mk"
+              (("/bin/pwd") "pwd"))))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:tests? #f ;no test suite
+      #:make-flags
+      #~(list
+         (string-append "pkgconfig_dir=" #$output "/lib/pkgconfig")
+         (string-append "prefix=" #$output))
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure))))
+    (home-page 
"https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/";)
+    (synopsis "Linux kernel trace event library")
+    (description "This package provides library to parse raw trace event
+formats.")
+    (license (list license:gpl2
+                   license:lgpl2.1))))
+
 (define-public libtree
   (package
     (name "libtree")



reply via email to

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