FS#61493 - [linux] Install BPF libraries

Attached to Project: Arch Linux
Opened by Etienne (__e) - Monday, 21 January 2019, 16:15 GMT
Last edited by Toolybird (Toolybird) - Thursday, 02 March 2023, 06:12 GMT
Task Type Feature Request
Category Kernel
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Add bpf libraries/headers (tools/lib/bpf/{libbpf.so,libbpf.a,libbpf.h,bpf.h}) to the (linux-headers?) package.
This might be useful for building bpf programs.

//
// Patch (draft)
//
--- PKGBUILD_OLD 2019-01-21 17:05:23.605795161 +0100
+++ PKGBUILD_NEW 2019-01-21 17:05:22.879115959 +0100
@@ -62,6 +62,8 @@
build() {
cd $_srcname
make bzImage modules htmldocs
+ cd tools/lib/bpf
+ make
}

_package() {
@@ -136,6 +138,11 @@
# add objtool for external module building and enabled VALIDATION_STACK option
install -Dt "$builddir/tools/objtool" tools/objtool/objtool

+ install -Dt "$builddir/tools/lib/bpf" tools/lib/bpf/libbpf.so
+ install -Dt "$builddir/tools/lib/bpf" tools/lib/bpf/libbpf.a
+ install -Dt "$builddir/tools/lib/bpf" tools/lib/bpf/libbpf.h
+ install -Dt "$builddir/tools/lib/bpf" tools/lib/bpf/bpf.h
+
# add xfs and shmem for aufs building
mkdir -p "$builddir"/{fs/xfs,mm}
//
// Patch end
//

Thanks for reading.
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 02 March 2023, 06:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  We've had libbpf since Jun 2020

Loading...