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>
This commit is contained in:
YiFei Zhu
2022-12-24 07:06:07 +00:00
committed by Sam James
parent 457a408fd4
commit bd8d3b7a7f
4 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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() {
+1 -1
View File
@@ -34,7 +34,7 @@ src_configure() {
append-cflags -fPIC
tc-export CC AR
export LIBSUBDIR="$(get_libdir)"
export LIBDIR="${EPREFIX}/usr/$(get_libdir)"
export PREFIX="${EPREFIX}/usr"
export V=1
}
+1 -1
View File
@@ -34,7 +34,7 @@ src_configure() {
append-cflags -fPIC
tc-export CC AR
export LIBSUBDIR="$(get_libdir)"
export LIBDIR="${EPREFIX}/usr/$(get_libdir)"
export PREFIX="${EPREFIX}/usr"
export V=1
}
+1 -1
View File
@@ -34,7 +34,7 @@ src_configure() {
append-cflags -fPIC
tc-export CC AR
export LIBSUBDIR="$(get_libdir)"
export LIBDIR="${EPREFIX}/usr/$(get_libdir)"
export PREFIX="${EPREFIX}/usr"
export V=1
}