summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosip Kelecic <josip.kelecic@sartura.hr>2020-04-02 10:50:22 +0200
committerPatrick McLean <chutzpah@gentoo.org>2020-04-03 10:21:14 -0700
commitd8e0412b28f4b7cc54b11809a5528e6d9c8e69a8 (patch)
treeae1df2e55c8a248b8f3e8734973e491c4531d999 /dev-libs/libbpf/files
parentapp-portage/nattka: Bump to 0.0.2 (diff)
downloadgentoo-d8e0412b28f4b7cc54b11809a5528e6d9c8e69a8.tar.gz
gentoo-d8e0412b28f4b7cc54b11809a5528e6d9c8e69a8.tar.bz2
gentoo-d8e0412b28f4b7cc54b11809a5528e6d9c8e69a8.zip
dev-libs/libbpf: add live ebuild
Signed-off-by: Josip Kelecic <josip.kelecic@sartura.hr> Closes: https://github.com/gentoo/gentoo/pull/15207 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> Closes: https://bugs.gentoo.org/711496 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-libs/libbpf/files')
-rw-r--r--dev-libs/libbpf/files/libbpf-9999-paths.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/libbpf/files/libbpf-9999-paths.patch b/dev-libs/libbpf/files/libbpf-9999-paths.patch
new file mode 100644
index 000000000000..cbc267b64a38
--- /dev/null
+++ b/dev-libs/libbpf/files/libbpf-9999-paths.patch
@@ -0,0 +1,38 @@
+diff --git a/Makefile b/Makefile
+index bc25aba..e1db3d6 100644
+--- a/Makefile
++++ b/Makefile
+@@ -66,7 +66,7 @@ endif
+ PREFIX ?= /usr
+ LIBDIR ?= $(PREFIX)/$(LIBSUBDIR)
+ INCLUDEDIR ?= $(PREFIX)/include
+-UAPIDIR ?= $(PREFIX)/include
++UAPIDIR ?= $(PREFIX)/include/bpf/uapi
+
+ TAGS_PROG := $(if $(shell which etags 2>/dev/null),etags,ctags)
+
+@@ -89,6 +89,7 @@ $(OBJDIR)/libbpf.so.$(LIBBPF_VERSION): $(SHARED_OBJS)
+ $(OBJDIR)/libbpf.pc:
+ sed -e "s|@PREFIX@|$(PREFIX)|" \
+ -e "s|@LIBDIR@|$(LIBDIR)|" \
++ -e "s|@UAPIDIR@|$(UAPIDIR)|" \
+ -e "s|@VERSION@|$(LIBBPF_VERSION)|" \
+ < libbpf.pc.template > $@
+
+diff --git a/libbpf.pc.template b/libbpf.pc.template
+index b45ed53..5ec63c2 100644
+--- a/libbpf.pc.template
++++ b/libbpf.pc.template
+@@ -3,10 +3,11 @@
+ prefix=@PREFIX@
+ libdir=@LIBDIR@
+ includedir=${prefix}/include
++uapidir=@UAPIDIR@
+
+ Name: libbpf
+ Description: BPF library
+ Version: @VERSION@
+ Libs: -L${libdir} -lbpf
+ Requires.private: libelf zlib
+-Cflags: -I${includedir}
++Cflags: -I${includedir} -I${uapidir}