Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728858 - dev-libs/libnl-3.5.0: use BDEPEND with EAPI 7
Summary: dev-libs/libnl-3.5.0: use BDEPEND with EAPI 7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2020-06-20 00:37 UTC by David Michael
Modified: 2020-06-21 11:42 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 David Michael 2020-06-20 00:37:48 UTC
The 3.5.0 ebuild is using EAPI 7, but it incorrectly installs dependencies in the cross-compiled sysroot when they're needed in the native build root.

Reproducible: Always

Steps to Reproduce:
1. emerge -v =dev-libs/libnl-3.5.0  # with a sysroot profile

Actual Results:  
It cross-compiles flex, bison, and swig when they need to be natively executable.

Expected Results:  
It should install the correct dependencies.

I tested this change, which works.  Note that I left the Python dependency in DEPEND since that seemed to be the obvious intent (Python dev files are needed to cross-compile the binary modules for the target), but I also put it in BDEPEND since the actual commands have -I/usr/lib/python3.7m to use dev files from the build root.  That seems wrong, but I didn't want to break it, so the same Python versions are installed in both roots.

--- dev-libs/libnl/libnl-3.5.0.ebuild
+++ dev-libs/libnl/libnl-3.5.0.ebuild
@@ -26,6 +26,9 @@ RDEPEND="
 "
 DEPEND="
 	${RDEPEND}
+"
+BDEPEND="
+	${RDEPEND}
 	python? ( dev-lang/swig )
 	sys-devel/bison
 	sys-devel/flex
Comment 1 Larry the Git Cow gentoo-dev 2020-06-21 11:42:48 UTC
The bug has been closed via the following commit(s):

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

commit ee5f763363f44de54c661b9b2a3aacca31a57bb9
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-06-21 11:19:31 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-06-21 11:42:44 +0000

    dev-libs/libnl: Set BDEPEND
    
    Package-Manager: Portage-2.3.101, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/728858
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 dev-libs/libnl/libnl-3.5.0.ebuild    | 3 +++
 dev-libs/libnl/libnl-99999999.ebuild | 3 +++
 2 files changed, 6 insertions(+)