diff options
author | YiFei Zhu <zhuyifei@google.com> | 2022-11-18 09:23:16 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-24 07:06:07 +0000 |
commit | bd8d3b7a7f3d2fe50a997535617bfe902b2139ed (patch) | |
tree | 85e1129d36ef8b438b50a72f0b4cedc6c2d5d2f9 /dev-libs/libbpf/libbpf-0.8.1.ebuild | |
parent | sys-boot/syslinux: Filter LTO (diff) | |
download | gentoo-bd8d3b7a7f3d2fe50a997535617bfe902b2139ed.tar.gz gentoo-bd8d3b7a7f3d2fe50a997535617bfe902b2139ed.tar.bz2 gentoo-bd8d3b7a7f3d2fe50a997535617bfe902b2139ed.zip |
dev-libs/libbpf: Fix install in prefix
Without this patch install would cause:
* QA Notice: the following files are outside of the prefix:
* /usr
[...]
* /usr/include/bpf/uapi/linux/bpf.h
* /usr/include/bpf/libbpf_legacy.h
* ERROR: dev-libs/libbpf-1.0.1::gentoo failed:
* Aborting due to QA concerns: there are files installed outside the prefix
I replaced the declaration of LIBDIR because it is
default-initialized to:
LIBDIR ?= $(PREFIX)/$(LIBSUBDIR)
across all versions of libbpf versions with ebuild.
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Closes: https://github.com/gentoo/gentoo/pull/28323
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libbpf/libbpf-0.8.1.ebuild')
-rw-r--r-- | dev-libs/libbpf/libbpf-0.8.1.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-libs/libbpf/libbpf-0.8.1.ebuild b/dev-libs/libbpf/libbpf-0.8.1.ebuild index 47b9e6026fa9..9050c1e4a1be 100644 --- a/dev-libs/libbpf/libbpf-0.8.1.ebuild +++ b/dev-libs/libbpf/libbpf-0.8.1.ebuild @@ -34,7 +34,9 @@ PATCHES=( src_configure() { append-cflags -fPIC tc-export CC AR - export LIBSUBDIR="$(get_libdir)" V=1 + export LIBSUBDIR="$(get_libdir)" + export PREFIX="${EPREFIX}/usr" + export V=1 } src_install() { |