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
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(+)