diff options
author | 2023-04-03 07:47:55 +0100 | |
---|---|---|
committer | 2023-04-03 07:50:52 +0100 | |
commit | 0d24f2e36daf9d95d2512a69305e124c3da6fc0d (patch) | |
tree | 85d8611e216b2253f81f6071198354e680bfe298 /dev-util/ltrace | |
parent | mail-filter/maildrop: bump & remove old (diff) | |
download | gentoo-0d24f2e36daf9d95d2512a69305e124c3da6fc0d.tar.gz gentoo-0d24f2e36daf9d95d2512a69305e124c3da6fc0d.tar.bz2 gentoo-0d24f2e36daf9d95d2512a69305e124c3da6fc0d.zip |
dev-util/ltrace: support libdwfl as unwinder
Add a new USE flag for this (pulling the whole elfutils in if set),
and make it mutually exclusive with unwind because src_configure fails
if both unwinders have been selected.
Closes: https://bugs.gentoo.org/903643
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-util/ltrace')
-rw-r--r-- | dev-util/ltrace/ltrace-0.7.91_pre20221216-r1.ebuild (renamed from dev-util/ltrace/ltrace-0.7.91_pre20221216.ebuild) | 6 | ||||
-rw-r--r-- | dev-util/ltrace/metadata.xml | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/dev-util/ltrace/ltrace-0.7.91_pre20221216.ebuild b/dev-util/ltrace/ltrace-0.7.91_pre20221216-r1.ebuild index 24b86f41a73f..851ee4b9d802 100644 --- a/dev-util/ltrace/ltrace-0.7.91_pre20221216.ebuild +++ b/dev-util/ltrace/ltrace-0.7.91_pre20221216-r1.ebuild @@ -14,9 +14,12 @@ SRC_URI="https://gitlab.com/cespedes/${PN}/-/archive/${EGIT_COMMIT}.tar.bz2 -> $ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug selinux test unwind" +IUSE="debug elfutils selinux test unwind" + +REQUIRED_USE="?? ( elfutils unwind )" RDEPEND="virtual/libelf:= + elfutils? ( dev-libs/elfutils ) selinux? ( sys-libs/libselinux ) unwind? ( sys-libs/libunwind:= )" DEPEND="${RDEPEND} @@ -55,5 +58,6 @@ src_configure() { econf \ --disable-werror \ $(use_enable debug) \ + $(use_with elfutils) \ $(use_with unwind libunwind) } diff --git a/dev-util/ltrace/metadata.xml b/dev-util/ltrace/metadata.xml index ca7a79566dae..7aee59bc9ad7 100644 --- a/dev-util/ltrace/metadata.xml +++ b/dev-util/ltrace/metadata.xml @@ -9,6 +9,7 @@ <remote-id type="gitlab">cespedes/ltrace</remote-id> </upstream> <use> + <flag name="elfutils">Use libdwfl from <pkg>sys-libs/libunwind</pkg> for frame unwinding support</flag> <flag name="unwind">Use <pkg>sys-libs/libunwind</pkg> for frame unwinding support</flag> </use> </pkgmetadata> |