Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734996 - >=sys-apps/pciutils-3.6.4: use BDEPEND with EAPI 7
Summary: >=sys-apps/pciutils-3.6.4: 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's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-01 01:25 UTC by David Michael
Modified: 2020-08-01 02:20 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-08-01 01:25:31 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2020-08-01 02:20:26 UTC
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(-)