Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 899910 - net-libs/xdp-tools: xdp-loader cannot find xdp-dispatcher (helper object file)
Summary: net-libs/xdp-tools: xdp-loader cannot find xdp-dispatcher (helper object file)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Linux bug wranglers
URL: https://github.com/xdp-project/xdp-to...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-06 15:04 UTC by Holger Hoffstätte
Modified: 2023-03-06 21:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2023-03-06 15:04:48 UTC
See $URL.

The current ebuild overrides PREFIX (and therefore LIBDIR & BPF_OBJECT_DIR) but only does so in src_install(), NOT in src_compile().
So the helper objects get installed correctly to /usr/lib/bpf/, but libxdp thinks they are in /usr/local/lib/bpf.

Apparently nobody has ever tried to use xdp-loader.


Reproducible: Always

Steps to Reproduce:
1. emerge xdp-tools
2. try to use xdp-loader to load an XDP program
3. failure as xdp-dispatcher cannot be loaded

Actual Results:  
Failure to load xdp-dispatcher from installation directory

Expected Results:  
Correctly found & loaded xdp-dispatcher
Comment 1 Larry the Git Cow gentoo-dev 2023-03-06 21:32:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=358434363326de24d0560133386f2359521a519d

commit 358434363326de24d0560133386f2359521a519d
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2023-03-06 15:16:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-06 21:30:33 +0000

    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@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/29959
    Signed-off-by: Sam James <sam@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(-)