commit: 11c6d80669d85985bb9f8aabd052c89a34a2c84f Author: YmrDtnJu <YmrDtnJu <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Sat Jun 16 18:36:52 2018 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Mon Jun 18 11:38:53 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c6d806
dev-util/strace: Add use flag for elfutils. strace can use libdw to implement stack tracing support and will use it automatically if it is installed on the system. The commit makes this configurable. Closes: https://github.com/gentoo/gentoo/pull/8860 dev-util/strace/metadata.xml | 3 +++ .../strace/{strace-4.23.ebuild => strace-4.23-r1.ebuild} | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dev-util/strace/metadata.xml b/dev-util/strace/metadata.xml index 869980f0195..ed202ff2ec6 100644 --- a/dev-util/strace/metadata.xml +++ b/dev-util/strace/metadata.xml @@ -12,6 +12,9 @@ <flag name="unwind"> Enable stack backtraces (-k flag) via <pkg>sys-libs/libunwind</pkg> </flag> + <flag name="elfutils"> + Enable stack backtraces (-k flag) via <pkg>dev-libs/elfutils</pkg> + </flag> </use> <upstream> <remote-id type="sourceforge">strace</remote-id> diff --git a/dev-util/strace/strace-4.23.ebuild b/dev-util/strace/strace-4.23-r1.ebuild similarity index 88% rename from dev-util/strace/strace-4.23.ebuild rename to dev-util/strace/strace-4.23-r1.ebuild index 216395c678c..a16ee1f785c 100644 --- a/dev-util/strace/strace-4.23.ebuild +++ b/dev-util/strace/strace-4.23-r1.ebuild @@ -18,9 +18,14 @@ HOMEPAGE="https://strace.io/" LICENSE="BSD" SLOT="0" -IUSE="aio perl static unwind" +IUSE="aio perl static unwind elfutils" -LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )" +REQUIRED_USE="?? ( unwind elfutils )" + +LIB_DEPEND=" + unwind? ( sys-libs/libunwind[static-libs(+)] ) + elfutils? ( dev-libs/elfutils[static-libs(+)] ) +" # strace only uses the header from libaio to decode structs DEPEND=" static? ( ${LIB_DEPEND} ) @@ -66,7 +71,8 @@ src_configure() { # Don't require mpers support on non-multilib systems. #649560 econf \ --enable-mpers=check \ - $(use_with unwind libunwind) + $(use_with unwind libunwind) \ + $(use_with elfutils libdw) } src_test() {
