summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiFei Zhu <zhuyifei@google.com>2023-01-04 20:08:13 -0800
committerSam James <sam@gentoo.org>2023-01-05 05:15:19 +0000
commit7295d49098b11229f6c79cfd9842bd6da11e6ad6 (patch)
treec37b9d0d0546595948cbaedb74d2a458a538c3f3 /dev-libs/libbpf
parentmedia-gfx/blender: Fix building with boost-1.81 (diff)
downloadgentoo-7295d49098b11229f6c79cfd9842bd6da11e6ad6.tar.gz
gentoo-7295d49098b11229f6c79cfd9842bd6da11e6ad6.tar.bz2
gentoo-7295d49098b11229f6c79cfd9842bd6da11e6ad6.zip
dev-libs/libbpf: Fix install in cross-compilation
Without this patch install would cause: * Bad lib64 usage detected: drwxr-xr-x 3 root root 4.0K Jan 4 06:31 /build/target/tmp/portage/dev-libs/libbpf-1.0.1/image/usr/lib64 lrwxrwxrwx 1 root root 11 Jan 4 06:31 /build/target/tmp/portage/dev-libs/libbpf-1.0.1/image/usr/lib64/libbpf.so -> libbpf.so.1 lrwxrwxrwx 1 root root 15 Jan 4 06:31 /build/target/tmp/portage/dev-libs/libbpf-1.0.1/image/usr/lib64/libbpf.so.1 -> libbpf.so.1.0.1 -rwxr-xr-x 1 root root 889K Jan 4 06:31 /build/target/tmp/portage/dev-libs/libbpf-1.0.1/image/usr/lib64/libbpf.so.1.0.1 drwxr-xr-x 2 root root 4.0K Jan 4 06:31 /build/target/tmp/portage/dev-libs/libbpf-1.0.1/image/usr/lib64/pkgconfig -rw-r--r-- 1 root root 294 Jan 4 06:31 /build/target/tmp/portage/dev-libs/libbpf-1.0.1/image/usr/lib64/pkgconfig/libbpf.pc * This arch (arm) should never use 'lib64'. PR #28323 commit bd8d3b7a7f3d (dev-libs/libbpf: Fix install in prefix") removed declaration of LIBDIR because it is default-initialized to: LIBDIR ?= $(PREFIX)/$(LIBSUBDIR) However this causes regression because while we do set: export LIBSUBDIR="$(get_libdir)" This does not take effect in the Makefile, because it does either one of: LIBSUBDIR := lib64 LIBSUBDIR := lib Environment variables don't take precedence over variables from makefiles unless -e is given. To minimize other possible regressions I'm explicitly whitelisting LIBSUBDIR for precedence over that from makefile. Reported-by: Aashay Shringarpure <aashay@google.com> Signed-off-by: YiFei Zhu <zhuyifei@google.com> Closes: https://github.com/gentoo/gentoo/pull/28962 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r--dev-libs/libbpf/libbpf-0.8.1.ebuild1
-rw-r--r--dev-libs/libbpf/libbpf-1.0.0-r1.ebuild1
-rw-r--r--dev-libs/libbpf/libbpf-1.0.1.ebuild1
-rw-r--r--dev-libs/libbpf/libbpf-9999.ebuild1
4 files changed, 4 insertions, 0 deletions
diff --git a/dev-libs/libbpf/libbpf-0.8.1.ebuild b/dev-libs/libbpf/libbpf-0.8.1.ebuild
index 9050c1e4a1be..ca787e88d5fe 100644
--- a/dev-libs/libbpf/libbpf-0.8.1.ebuild
+++ b/dev-libs/libbpf/libbpf-0.8.1.ebuild
@@ -42,6 +42,7 @@ src_configure() {
src_install() {
emake \
DESTDIR="${D}" \
+ LIBSUBDIR="${LIBSUBDIR}" \
install install_uapi_headers
if ! use static-libs; then
diff --git a/dev-libs/libbpf/libbpf-1.0.0-r1.ebuild b/dev-libs/libbpf/libbpf-1.0.0-r1.ebuild
index d930f5e22209..a3309d26fe8d 100644
--- a/dev-libs/libbpf/libbpf-1.0.0-r1.ebuild
+++ b/dev-libs/libbpf/libbpf-1.0.0-r1.ebuild
@@ -41,6 +41,7 @@ src_configure() {
src_install() {
emake \
DESTDIR="${D}" \
+ LIBSUBDIR="${LIBSUBDIR}" \
install install_uapi_headers
if ! use static-libs; then
diff --git a/dev-libs/libbpf/libbpf-1.0.1.ebuild b/dev-libs/libbpf/libbpf-1.0.1.ebuild
index 1092fcc0f3c4..4bc4f9eafffd 100644
--- a/dev-libs/libbpf/libbpf-1.0.1.ebuild
+++ b/dev-libs/libbpf/libbpf-1.0.1.ebuild
@@ -42,6 +42,7 @@ src_configure() {
src_install() {
emake \
DESTDIR="${D}" \
+ LIBSUBDIR="${LIBSUBDIR}" \
install install_uapi_headers
if ! use static-libs; then
diff --git a/dev-libs/libbpf/libbpf-9999.ebuild b/dev-libs/libbpf/libbpf-9999.ebuild
index 1092fcc0f3c4..4bc4f9eafffd 100644
--- a/dev-libs/libbpf/libbpf-9999.ebuild
+++ b/dev-libs/libbpf/libbpf-9999.ebuild
@@ -42,6 +42,7 @@ src_configure() {
src_install() {
emake \
DESTDIR="${D}" \
+ LIBSUBDIR="${LIBSUBDIR}" \
install install_uapi_headers
if ! use static-libs; then