diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-13 02:23:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-13 02:23:08 +0100 |
commit | 4d4b75287f879f15ebdc56b3edd19737b6f936e8 (patch) | |
tree | c02f05b73dd6c0a9d8b35dcb57c7eeaab6cfa9bc /dev-util/strace | |
parent | f8ca23f9f6e4a55e4195e553ca2f3e7dd425f51c (diff) |
gentoo auto-resync : 13:08:2022 - 02:23:08
Diffstat (limited to 'dev-util/strace')
-rw-r--r-- | dev-util/strace/Manifest | 4 | ||||
-rw-r--r-- | dev-util/strace/metadata.xml | 39 | ||||
-rw-r--r-- | dev-util/strace/strace-5.19.ebuild | 109 |
3 files changed, 132 insertions, 20 deletions
diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest index 315b71a8bb8f..2d7f3bf7b994 100644 --- a/dev-util/strace/Manifest +++ b/dev-util/strace/Manifest @@ -1,7 +1,9 @@ AUX strace-5.11-static.patch 5306 BLAKE2B 24150fcdf0ff75c4698542914bcd0fd39df9794f39ce0d16dac6dc3b689365e124d8d77a75a8fe81caff9432679563d84ffd31add74edb4c8f83aec28ff2f078 SHA512 bbeecbfd73109d21732acdaa28d5b4c82b23b7165f09e78e62cad68f9ac63dfb4c7a1c2eb8bdc642dda9f07d62e286ab46a2be236b5f03e1e6f9920f3093ede8 DIST strace-5.17.tar.xz 2281220 BLAKE2B 27e7dc19302c58144b0a7d8de41f717760b8e3cde4ab56892045727597bbfc894bf8f137aee476548c2d16d1e9c8005f931f31a5d2f8bfc4ce5565c2aa01f1ec SHA512 1b63cf7e6e339333b9d24fa20232409192abc815f2ebe2e336ef4acc039cd06c976b3c12e9ce993491a0e6b86c26b90ceba962f580e894b1ff5ab9863bdfcc44 DIST strace-5.18.tar.xz 2307412 BLAKE2B 658d17d2137344550ea3c2ece54708387c3b78020dbade45a7ef04905dc9d4703fa8d44802cca5a9448d096a7210d0178d8d78caab7e504fa998d1f9a0b59c65 SHA512 99418b84a5e2049cb6fe32eed19ddcb61bbefb25220550c67d92cd7bc3d44ae5d87ac228b3e1c207166b9bfdae55c624a0f4e603004599fb7ea3143bbccc749e +DIST strace-5.19.tar.xz 2353276 BLAKE2B 44b9a87f36e66481d8ac2107efbc389fa64c47b2ae7b1cc728241baa1c7d2d5d4d9410622763eb1247b415cad9afdd9f61552d2545388cadf5a33b568ed09af2 SHA512 1ea1c6e12d05bf145bc3c74f8d06b08dfc3eae3a5a21bfe8ab080053dc4c2da8a95be5956652ea62bb083462015a55f9bc1d1023919dcf2929a05211b7dde963 EBUILD strace-5.17.ebuild 2448 BLAKE2B 99b2514d006878e750d31ea9711581fb5d1980f3091c7ded5d3ac129054f3793bc22ec00657d95ea4f7ac00bf2f6df76f79ba8bbbfc1ce0dd3fb741fe5d9e104 SHA512 496610adfb263912392935a7fea69f79ac98f0339a91719221b615a4ba1e330b6fe9159663f7e9bdc8e3bb58031a62a5c472bf934630cddc851bed65c5e57633 EBUILD strace-5.18.ebuild 2455 BLAKE2B 5bdb3970d1c9f4f3eea496c22d051d4b02448492fc5c20ab8ef424d65ddf94cbe989f585c4f3245ad8220d05f1234d51ba8ce49ad68b04e590aff54ca08c4dac SHA512 dd9f3f5fab44c96131f0e15bd343d92b4b636dd7a13742661133a56104f424663d526e7a2b98917239849da95affaab33621fd867aa73519e3cf5d058711c7f5 +EBUILD strace-5.19.ebuild 2455 BLAKE2B 5bdb3970d1c9f4f3eea496c22d051d4b02448492fc5c20ab8ef424d65ddf94cbe989f585c4f3245ad8220d05f1234d51ba8ce49ad68b04e590aff54ca08c4dac SHA512 dd9f3f5fab44c96131f0e15bd343d92b4b636dd7a13742661133a56104f424663d526e7a2b98917239849da95affaab33621fd867aa73519e3cf5d058711c7f5 EBUILD strace-9999.ebuild 2455 BLAKE2B 5bdb3970d1c9f4f3eea496c22d051d4b02448492fc5c20ab8ef424d65ddf94cbe989f585c4f3245ad8220d05f1234d51ba8ce49ad68b04e590aff54ca08c4dac SHA512 dd9f3f5fab44c96131f0e15bd343d92b4b636dd7a13742661133a56104f424663d526e7a2b98917239849da95affaab33621fd867aa73519e3cf5d058711c7f5 -MISC metadata.xml 761 BLAKE2B 261db0087db2a12c260efcd80bae1dcabd1b518c7b7d65a7ce4cbd5a2fcf878af3787985d629b43dac0944fe97f7f78df964082c5dbc52da06360ec112a0e7f0 SHA512 dfe6bb1b1149f51947c964d55396c10df38ad68dd987ae3df66b1850b812717d282d41e59a38f35863d22eb7391b7be636b5272e361641c26622618c2cbff19e +MISC metadata.xml 779 BLAKE2B 89b4360e876fbb34a7a766a57ba9ca088a5e03e9ef66fdbe0a2b15df4cfb625daba11dc76920dec405b97cb87df49fd3c9edc0e184e73262b14b616af36fa4dd SHA512 88b2d94fd6efebaa617c8344bff3997f31c6262b9376cbce014bf7f6225f02bd8ee7bcaf98df4477435319bbb92addcdb6756e5d37a137a863f0bef1ecc5fced diff --git a/dev-util/strace/metadata.xml b/dev-util/strace/metadata.xml index cb7988b3fb88..50e8e39652ba 100644 --- a/dev-util/strace/metadata.xml +++ b/dev-util/strace/metadata.xml @@ -1,23 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>base-system@gentoo.org</email> - <name>Gentoo Base System</name> - </maintainer> - <use> - <flag name="aio"> - Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations - </flag> - <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="github">strace/strace</remote-id> - <remote-id type="sourceforge">strace</remote-id> - </upstream> + <maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> + </maintainer> + <use> + <flag name="aio"> + Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations + </flag> + <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="github">strace/strace</remote-id> + <remote-id type="gitlab">strace/strace</remote-id> + <remote-id type="sourceforge">strace</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-util/strace/strace-5.19.ebuild b/dev-util/strace/strace-5.19.ebuild new file mode 100644 index 000000000000..edcd42346ba7 --- /dev/null +++ b/dev-util/strace/strace-5.19.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs + +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" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="A useful diagnostic, instructional, and debugging tool" +HOMEPAGE="https://strace.io/" + +LICENSE="BSD" +SLOT="0" +IUSE="aio perl selinux static unwind elfutils" +REQUIRED_USE="?? ( unwind elfutils )" + +BDEPEND="virtual/pkgconfig" +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 ) + sys-kernel/linux-headers +" +RDEPEND=" + !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) + perl? ( dev-lang/perl ) +" + +PATCHES=( + "${FILESDIR}/${PN}-5.11-static.patch" +) + +src_prepare() { + default + + eautoreconf + + if [[ ! -e configure ]] ; then + # git generation + sed /autoreconf/d -i bootstrap || die + ./bootstrap || die + eautoreconf + [[ ! -e CREDITS ]] && cp CREDITS{.in,} + fi + + # 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 + + $(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 +} |