From: YmrDtnJu Date: Sat, 16 Jun 2018 18:36:52 +0000 (+0200) Subject: dev-util/strace: Add use flag for elfutils. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=11c6d80669d85985bb9f8aabd052c89a34a2c84f;p=gentoo.git 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 --- diff --git a/dev-util/strace/metadata.xml b/dev-util/strace/metadata.xml index 869980f0195f..ed202ff2ec68 100644 --- a/dev-util/strace/metadata.xml +++ b/dev-util/strace/metadata.xml @@ -12,6 +12,9 @@ Enable stack backtraces (-k flag) via sys-libs/libunwind + + Enable stack backtraces (-k flag) via dev-libs/elfutils + strace 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 216395c678c1..a16ee1f785c0 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() {