The ebuild is using EAPI 7, but it does not define BDEPEND. The Python interface generator swig is listed in DEPEND, which causes it to be cross-compiled when it needs to be executed natively. Reproducible: Always Steps to Reproduce: 1. emerge -v sys-libs/libcap-ng # with a sysroot profile Actual Results: It installs swig in the sysroot. Expected Results: It should install swig natively so it can be executed. --- sys-libs/libcap-ng/libcap-ng-0.7.10.ebuild +++ sys-libs/libcap-ng/libcap-ng-0.7.10.ebuild @@ -19,8 +19,8 @@ RDEPEND="python? ( ${PYTHON_DEPS} )" DEPEND="${RDEPEND} - sys-kernel/linux-headers - python? ( >=dev-lang/swig-2 )" + sys-kernel/linux-headers" +BDEPEND="python? ( >=dev-lang/swig-2 )" src_prepare() { default
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e5de898bf7d042cd5b4d9f4370c7d89ac2a5ced commit 6e5de898bf7d042cd5b4d9f4370c7d89ac2a5ced Author: David Michael <fedora.dm0@gmail.com> AuthorDate: 2020-07-30 14:04:08 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-07-30 14:04:59 +0000 sys-libs/libcap-ng: Put python dep into BDEPEND Closes: https://bugs.gentoo.org/734774 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-libs/libcap-ng/libcap-ng-0.7.10.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)