mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libbpf: Update to 1.4.1.
* gnu/packages/linux.scm (libbpf): Update to 1.4.1. [phases] {install-linux-bpf-headers}: New phase. [native-inputs]: Add linux-libre-headers-6.8. Change-Id: I969a017b0ed52c1a611b3fe0d90d5b8703d35e73
This commit is contained in:
parent
401086dbc7
commit
12d2a6e5a6
1 changed files with 33 additions and 8 deletions
|
@ -9821,7 +9821,7 @@ persistent over reboots.")
|
||||||
(define-public libbpf
|
(define-public libbpf
|
||||||
(package
|
(package
|
||||||
(name "libbpf")
|
(name "libbpf")
|
||||||
(version "0.8.1")
|
(version "1.4.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -9831,7 +9831,7 @@ persistent over reboots.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1zzpkk4x3f20483dzw43b3ml03d63vvkmqf4j8y3b61b67wm59bm"))))
|
"1d0bx4bmn80nkdh0dqjfwq6j37is3qwl49cjvx4yxb4vrxq3x05x"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
@ -9840,12 +9840,37 @@ persistent over reboots.")
|
||||||
#~(list (string-append "PREFIX=" #$output)
|
#~(list (string-append "PREFIX=" #$output)
|
||||||
(string-append "LIBDIR=$(PREFIX)/lib")
|
(string-append "LIBDIR=$(PREFIX)/lib")
|
||||||
(string-append "CC=" #$(cc-for-target)))
|
(string-append "CC=" #$(cc-for-target)))
|
||||||
#:phases #~(modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-before 'build 'pre-build
|
(add-before 'build 'pre-build
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "src"))))))
|
(chdir "src")))
|
||||||
(native-inputs (list pkg-config))
|
(add-after 'install 'install-linux-bpf-headers
|
||||||
|
;; Workaround users such as 'dwarves' requiring btf_enum64
|
||||||
|
;; definition from the kernel Linux >= 6 headers (see:
|
||||||
|
;; https://github.com/acmel/dwarves/issues/49).
|
||||||
|
;; TODO: Remove once our 'linux-libre-headers' package is
|
||||||
|
;; upgraded to a >= 6 release.
|
||||||
|
(lambda _
|
||||||
|
(let ((linux-libre-headers #$(this-package-native-input
|
||||||
|
"linux-libre-headers")))
|
||||||
|
(for-each (lambda (f)
|
||||||
|
(install-file (string-append linux-libre-headers
|
||||||
|
"/include/" f)
|
||||||
|
(string-append #$output "/include/"
|
||||||
|
(dirname f))))
|
||||||
|
;; This list contains btf.h and its transitive
|
||||||
|
;; dependencies.
|
||||||
|
(list "asm/posix_types.h"
|
||||||
|
"asm/types.h"
|
||||||
|
"asm-generic/types.h"
|
||||||
|
"asm-generic/int-ll64.h"
|
||||||
|
"linux/btf.h"
|
||||||
|
"linux/posix_types.h"
|
||||||
|
"linux/stddef.h"
|
||||||
|
"linux/types.h"))))))))
|
||||||
|
(native-inputs (list linux-libre-headers-6.8 pkg-config))
|
||||||
(propagated-inputs (list elfutils zlib)) ;in Requires.private of libbpf.pc
|
(propagated-inputs (list elfutils zlib)) ;in Requires.private of libbpf.pc
|
||||||
(home-page "https://github.com/libbpf/libbpf")
|
(home-page "https://github.com/libbpf/libbpf")
|
||||||
(synopsis "BPF CO-RE (Compile Once – Run Everywhere)")
|
(synopsis "BPF CO-RE (Compile Once – Run Everywhere)")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue