From 53e302f5123a959e0ebcce5767663206ce8edc33 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Mon, 12 Dec 2022 10:48:07 +0100 Subject: [PATCH 1/5] gnu: Add libtraceevent. * gnu/packages/linux.scm (libtraceevent): New variable. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index c9a21f590f..99bce3b8b6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9535,6 +9535,38 @@ (define-public libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings +(define-public libtraceevent + (package + (name "libtraceevent") + (version "1.6.4") + (source (origin + (method url-fetch) + (uri + (string-append "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-" version ".tar.gz")) + (sha256 + (base32 + "1vnnhkwqy9ds3fqh7c9fvbhi2k2h701ga842j5nggdkyp0wp5c8c")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no test suite + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-makefile + (lambda* _ + (substitute* "Makefile" + (("\\$\\(pkgconfig_dir\\)") + (string-append #$output "/lib/pkgconfig")) + (("/usr/local") #$output) + (("/bin/pwd") (which "pwd"))) + (substitute* "scripts/utils.mk" + (("/bin/pwd") (which "pwd")))))))) + (native-inputs (list pkg-config which)) + (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 license:gpl3+))) + (define-public libtree (package (name "libtree") -- 2.38.1