Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753254 - sys-libs/libsemanage-3.1: fix EAPI 7 dependencies
Summary: sys-libs/libsemanage-3.1: fix EAPI 7 dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-11-06 00:02 UTC by David Michael
Modified: 2020-11-16 05:38 UTC (History)
1 user (show)

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-11-06 00:02:52 UTC
The EAPI 7 bump with version 3.1 did not define BDEPEND, so CBUILD tools were left in DEPEND.  Please move pkgconfig, bison, flex, and swig to BDEPEND since they must be executed natively and should not be cross-compiled.  (See also bug #753251.)

This also drops the apparently unused ustr dependency since the string "ustr" does not appear anywhere in the source.

--- sys-libs/libsemanage/libsemanage-3.1.ebuild
+++ sys-libs/libsemanage/libsemanage-3.1.ebuild
@@ -33,10 +33,9 @@
 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
 	>=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
 	>=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
-	>=dev-libs/ustr-1.0.4-r2[${MULTILIB_USEDEP}]
 	${PYTHON_DEPS}"
-DEPEND="${RDEPEND}
-	>=dev-lang/swig-2.0.4-r1
+DEPEND="${RDEPEND}"
+BDEPEND=">=dev-lang/swig-2.0.4-r1
 	sys-devel/bison
 	sys-devel/flex
 	virtual/pkgconfig"
Comment 1 Jason Zaman gentoo-dev 2020-11-16 05:24:11 UTC
For reference, ustr was dropped a long time ago in commit: https://github.com/SELinuxProject/selinux/commit/300b8ad4235688171f2a91e7aeb14d0ee3561c13
Comment 2 Larry the Git Cow gentoo-dev 2020-11-16 05:38:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=596dac7c061942cd7a73dc8ffd6c49b9595688dc

commit 596dac7c061942cd7a73dc8ffd6c49b9595688dc
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2020-11-16 05:30:01 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2020-11-16 05:36:12 +0000

    sys-libs/libsemanage: Update BDEPEND
    
    The EAPI 7 bump with version 3.1 did not define BDEPEND, so CBUILD tools
    were left in DEPEND. This moves pkgconfig, bison, flex, and swig to
    BDEPEND since they must be executed natively and should not be
    cross-compiled.
    
    Also drops ustr dep which was removed in commit
    https://github.com/SELinuxProject/selinux/commit/300b8ad4235688171f2a91e7aeb14d0ee3561c13
    
    Closes: https://bugs.gentoo.org/753254
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>

 .../{libsemanage-3.1.ebuild => libsemanage-3.1-r1.ebuild}            | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)