commit:     ad872e374aa15c24a039b0d78c3c7967a7810425
Author:     Gabi Falk <gabifalk <AT> gmx <DOT> com>
AuthorDate: Thu Dec 18 10:30:00 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 12:27:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad872e37

dev-debug/strace: add 6.18

Signed-off-by: Gabi Falk <gabifalk <AT> gmx.com>
Part-of: https://github.com/gentoo/gentoo/pull/44982
Closes: https://github.com/gentoo/gentoo/pull/44982
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/strace/Manifest           |   2 +
 dev-debug/strace/strace-6.18.ebuild | 120 ++++++++++++++++++++++++++++++++++++
 2 files changed, 122 insertions(+)

diff --git a/dev-debug/strace/Manifest b/dev-debug/strace/Manifest
index 36be30adc648..d0a98df55eee 100644
--- a/dev-debug/strace/Manifest
+++ b/dev-debug/strace/Manifest
@@ -2,3 +2,5 @@ DIST strace-6.16.tar.xz 2674064 BLAKE2B 
42155b733d18de50e38b95847a018b315ab36622
 DIST strace-6.16.tar.xz.asc 801 BLAKE2B 
bcf1729906866c7d92a6672ffe4f89946b27fbdf9963775f1a6703c7fa297f62f1fef80a029f5e0caa117f2c7094fb959dba967ff628117785b934b28ececb79
 SHA512 
cb4c71780a817ec6e0dcd0f994e91870b8a1ee26b2062fe51000414624343d05dce799c8677683264d9c051a20d4a40e028159282e979e4f3307447cecc16446
 DIST strace-6.17.tar.xz 2682684 BLAKE2B 
273bc58a555dda92e34fa242ce9072214d110797974e5023717a8f80f9a0ec8b482a74af1196c3e3be2c44afdac51f30b2e1bb7d7104b07c9ceeecc9d1aa65bf
 SHA512 
05788501420c6dc29cfa9b974c96ade4db0830e80636538fdb7c8306a8821c59a45781a3dac9fd0e8f2e0fb0710ab2c80c5d96b6d37522fb917e51815f8c88de
 DIST strace-6.17.tar.xz.asc 801 BLAKE2B 
69883e1a1bd1bebfd1e800d5a921cd1dfe7d86cf0de6744c696f42d6fafce823f0b757e4be00ff2c4efb7882b2b942c8c931bd2d53f869e71cc7ddc2895dbc47
 SHA512 
d025ae6ebbfed219b2629b2c25713f04de3774bbabe8ebea3e070f0df645cceeeb58943f93bb2ca542e6b73fc580be090ee8b2501e65778de249ef2a4f69a90f
+DIST strace-6.18.tar.xz 2722572 BLAKE2B 
ba9798496102c2c1d2310d9dea746d9517d58c2e9ad7e630beee294806d24a617c8a8950d0e118d6190b61ab17f5d8020d02b0a56c4740df62104dd2906206c0
 SHA512 
421b75971cb04f5e3b09a1a12bd14fff9c8b315ca394f47d299937fe82f828d6c7231981797e12eab4a95b1c96e359224756c65067c8d9aec36ef18d06cfbc85
+DIST strace-6.18.tar.xz.asc 833 BLAKE2B 
86903fae348250d614aa7c499f8c262810028000bfca86e3f632d0f84332c3402c86d2792e5d5711101b2f5f8f796e07893e5ea33aa80d61e796222bc00f8e4d
 SHA512 
d887a97f7df4c2cd8c06dea8de502c8637f80c9717cffc6d067169534ba607002ffe9ec5e4927ef95b6f5226cbd75e6b9ab7b8405b744e0d7eb3ee8e5e39afaa

diff --git a/dev-debug/strace/strace-6.18.ebuild 
b/dev-debug/strace/strace-6.18.ebuild
new file mode 100644
index 000000000000..1c2af7cc0108
--- /dev/null
+++ b/dev-debug/strace/strace-6.18.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools edo flag-o-matic toolchain-funcs verify-sig
+
+DESCRIPTION="Useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://strace.io/";
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/strace/strace.git";
+       inherit git-r3
+else
+       SRC_URI="
+               
https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz
+               verify-sig? ( 
https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz.asc )
+       "
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/strace.asc
+
+LICENSE="LGPL-2.1+ test? ( GPL-2+ )"
+SLOT="0"
+IUSE="aio perl selinux static test unwind elfutils"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="?? ( unwind elfutils )"
+
+BDEPEND="
+       virtual/pkgconfig
+       verify-sig? ( >=sec-keys/openpgp-keys-strace-20251130 )
+"
+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="
+       static? ( ${LIB_DEPEND} )
+       aio? ( >=dev-libs/libaio-0.3.106 )
+"
+RDEPEND="
+       !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+       perl? ( dev-lang/perl )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-6.5-static.patch"
+)
+
+src_prepare() {
+       default
+
+       if [[ ! -e configure ]] ; then
+               # git generation
+               sed /autoreconf/d -i bootstrap || die
+               edo ./bootstrap
+               [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+       fi
+
+       eautoreconf
+
+       # Stub out the -k test since it's known to be flaky. bug #545812
+       sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+       # Set up the default build settings, and then use the names strace 
expects.
+       tc-export_build_env BUILD_{CC,CPP}
+       local v bv
+       for v in CC CPP {C,CPP,LD}FLAGS ; do
+               bv="BUILD_${v}"
+               export "${v}_FOR_BUILD=${!bv}"
+       done
+
+       filter-lfs-flags # configure handles this sanely
+
+       export ac_cv_header_libaio_h=$(usex aio)
+       use elibc_musl && export ac_cv_header_stdc=no
+
+       local myeconfargs=(
+               --disable-gcc-Werror
+
+               # Don't require mpers support on non-multilib systems. #649560
+               --enable-mpers=check
+
+               # We don't want to pin to exact linux-headers versions (bug 
#950309)
+               --enable-bundled=yes
+
+               $(use_enable static)
+               $(use_with unwind libunwind)
+               $(use_with elfutils libdw)
+               $(use_with selinux libselinux)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_test() {
+       if has usersandbox ${FEATURES} ; then
+               # bug #643044
+               ewarn "Test suite is known to fail with FEATURES=usersandbox -- 
skipping ..."
+               return 0
+       fi
+
+       default
+}
+
+src_install() {
+       default
+
+       if use perl ; then
+               exeinto /usr/bin
+               doexe src/strace-graph
+       fi
+
+       dodoc CREDITS
+}

Reply via email to