Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734774 - sys-libs/libcap-ng: use BDEPEND with EAPI 7
Summary: sys-libs/libcap-ng: 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
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-30 13:54 UTC by David Michael
Modified: 2020-07-30 14:05 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-07-30 13:54:58 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2020-07-30 14:05:03 UTC
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(-)