The ebuilds are using EAPI 7 since 3.6, but they don't define BDEPEND. They have pkgconfig in DEPEND, which causes it to be cross-compiled when the command needs to be natively executable. Reproducible: Always Steps to Reproduce: 1. emerge -v sys-apps/pciutils # with a sysroot profile Actual Results: It installs pkgconfig in the sysroot. Expected Results: It should install pkgconfig natively. --- sys-apps/pciutils/pciutils-3.6.4.ebuild +++ sys-apps/pciutils/pciutils-3.6.4.ebuild @@ -29,10 +29,7 @@ ${DEPEND} sys-apps/hwids " -DEPEND=" - ${DEPEND} - kmod? ( virtual/pkgconfig ) -" +BDEPEND="kmod? ( virtual/pkgconfig )" PATCHES=( "${FILESDIR}"/${PN}-3.1.9-static-pc.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e30a7e97478e945bf2043c9d77f4d199236e9a4 commit 8e30a7e97478e945bf2043c9d77f4d199236e9a4 Author: David Michael <fedora.dm0@gmail.com> AuthorDate: 2020-08-01 02:19:59 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-08-01 02:20:06 +0000 sys-apps/pciutils: Move virtual/pkgconfig to BDEPEND Closes: https://bugs.gentoo.org/734996 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-apps/pciutils/pciutils-3.6.4.ebuild | 5 +---- sys-apps/pciutils/pciutils-3.7.0.ebuild | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-)