commit:     5e9c66b7858eef397c69239cac8ea87b2af8c837
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  2 22:32:10 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  2 22:32:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e9c66b7

dev-util/strace: fix automagic dependency on libselinux

Closes: https://bugs.gentoo.org/794745
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/strace/{strace-5.12.ebuild => strace-5.12-r1.ebuild} | 6 ++++--
 dev-util/strace/{strace-5.14.ebuild => strace-5.14-r1.ebuild} | 4 +++-
 dev-util/strace/strace-9999.ebuild                            | 4 +++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-util/strace/strace-5.12.ebuild 
b/dev-util/strace/strace-5.12-r1.ebuild
similarity index 93%
rename from dev-util/strace/strace-5.12.ebuild
rename to dev-util/strace/strace-5.12-r1.ebuild
index d71516e9a04..98210d8944b 100644
--- a/dev-util/strace/strace-5.12.ebuild
+++ b/dev-util/strace/strace-5.12-r1.ebuild
@@ -7,7 +7,7 @@ inherit autotools flag-o-matic toolchain-funcs
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/strace/strace.git";
-       inherit git-r3 autotools
+       inherit git-r3
 else
        
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz";
        KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
@@ -18,7 +18,7 @@ HOMEPAGE="https://strace.io/";
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="aio perl static unwind elfutils"
+IUSE="aio perl selinux static unwind elfutils"
 
 REQUIRED_USE="?? ( unwind elfutils )"
 
@@ -28,6 +28,7 @@ BDEPEND="
 LIB_DEPEND="
        unwind? ( sys-libs/libunwind[static-libs(+)] )
        elfutils? ( dev-libs/elfutils[static-libs(+)] )
+       selinux? ( sys-libs/libselinux[static-libs(+)] )
 "
 # strace only uses the header from libaio to decode structs
 DEPEND="
@@ -82,6 +83,7 @@ src_configure() {
                $(use_enable static)
                $(use_with unwind libunwind)
                $(use_with elfutils libdw)
+               $(use_with selinux libselinux)
        )
        econf "${myeconfargs[@]}"
 }

diff --git a/dev-util/strace/strace-5.14.ebuild 
b/dev-util/strace/strace-5.14-r1.ebuild
similarity index 94%
rename from dev-util/strace/strace-5.14.ebuild
rename to dev-util/strace/strace-5.14-r1.ebuild
index f6a7e5f5503..035be39c835 100644
--- a/dev-util/strace/strace-5.14.ebuild
+++ b/dev-util/strace/strace-5.14-r1.ebuild
@@ -18,7 +18,7 @@ HOMEPAGE="https://strace.io/";
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="aio perl static unwind elfutils"
+IUSE="aio perl selinux static unwind elfutils"
 
 REQUIRED_USE="?? ( unwind elfutils )"
 
@@ -28,6 +28,7 @@ BDEPEND="
 LIB_DEPEND="
        unwind? ( sys-libs/libunwind[static-libs(+)] )
        elfutils? ( dev-libs/elfutils[static-libs(+)] )
+       selinux? ( sys-libs/libselinux[static-libs(+)] )
 "
 # strace only uses the header from libaio to decode structs
 DEPEND="
@@ -82,6 +83,7 @@ src_configure() {
                $(use_enable static)
                $(use_with unwind libunwind)
                $(use_with elfutils libdw)
+               $(use_with selinux libselinux)
        )
        econf "${myeconfargs[@]}"
 }

diff --git a/dev-util/strace/strace-9999.ebuild 
b/dev-util/strace/strace-9999.ebuild
index f6a7e5f5503..035be39c835 100644
--- a/dev-util/strace/strace-9999.ebuild
+++ b/dev-util/strace/strace-9999.ebuild
@@ -18,7 +18,7 @@ HOMEPAGE="https://strace.io/";
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="aio perl static unwind elfutils"
+IUSE="aio perl selinux static unwind elfutils"
 
 REQUIRED_USE="?? ( unwind elfutils )"
 
@@ -28,6 +28,7 @@ BDEPEND="
 LIB_DEPEND="
        unwind? ( sys-libs/libunwind[static-libs(+)] )
        elfutils? ( dev-libs/elfutils[static-libs(+)] )
+       selinux? ( sys-libs/libselinux[static-libs(+)] )
 "
 # strace only uses the header from libaio to decode structs
 DEPEND="
@@ -82,6 +83,7 @@ src_configure() {
                $(use_enable static)
                $(use_with unwind libunwind)
                $(use_with elfutils libdw)
+               $(use_with selinux libselinux)
        )
        econf "${myeconfargs[@]}"
 }

Reply via email to