commit:     358434363326de24d0560133386f2359521a519d
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Mon Mar  6 15:16:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar  6 21:30:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35843436

net-libs/xdp-tools: properly configure PREFIX/LIBDIR/BPF_OBJECT_DIR

The helper objects were installed correctly, but libxdp had the
wrong search path compiled in; this broke xdp-loader.

Closes: https://bugs.gentoo.org/899910
Bug: https://github.com/xdp-project/xdp-tools/issues/303

Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/29959
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../xdp-tools/{xdp-tools-1.3.1.ebuild => xdp-tools-1.3.1-r1.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-libs/xdp-tools/xdp-tools-1.3.1.ebuild 
b/net-libs/xdp-tools/xdp-tools-1.3.1-r1.ebuild
similarity index 100%
rename from net-libs/xdp-tools/xdp-tools-1.3.1.ebuild
rename to net-libs/xdp-tools/xdp-tools-1.3.1-r1.ebuild
index 79e00d6eee96..95efd4e44792 100644
--- a/net-libs/xdp-tools/xdp-tools-1.3.1.ebuild
+++ b/net-libs/xdp-tools/xdp-tools-1.3.1-r1.ebuild
@@ -36,6 +36,9 @@ PATCHES=(
 )
 
 src_configure() {
+       export PREFIX="${EPREFIX}/usr"
+       export LIBDIR="${PREFIX}/$(get_libdir)"
+       export BPF_OBJECT_DIR="${PREFIX}/lib/bpf"
        export PRODUCTION=1
        export DYNAMIC_LIBXDP=1
        export FORCE_SYSTEM_LIBBPF=1
@@ -45,9 +48,6 @@ src_configure() {
 src_test() { :; }
 
 src_install() {
-       export PREFIX="${EPREFIX}/usr"
-       export LIBDIR="${PREFIX}/$(get_libdir)"
-       export BPF_OBJECT_DIR="${PREFIX}/lib/bpf"
        default
 
        # To remove the scripts/testing files that are installed.

Reply via email to