1 |
commit: 94f2ae3e7bef411dbfc517fc24a1a1fe880d2ab8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 22:20:00 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 22:36:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f2ae3e |
7 |
|
8 |
dev-util/strace: add 5.17 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-util/strace/Manifest | 1 + |
13 |
dev-util/strace/strace-5.17.ebuild | 108 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest |
17 |
index 6c34dba08db6..fd62d64d49c1 100644 |
18 |
--- a/dev-util/strace/Manifest |
19 |
+++ b/dev-util/strace/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST strace-5.12.tar.xz 2009060 BLAKE2B 9a7a07e5d2d38c8b456f54d0e1d7c776066b2032 |
21 |
DIST strace-5.14.tar.xz 2067020 BLAKE2B 479ecf5e66e26e722d108c905130f482c411857db234ac013bf3568905c0f7b896f001ba6da2cabccd0a987c7802aebec9c6298decb691de125e8154c28e1c6f SHA512 3e147521773d900167809db9feeb148e8ba116f90dd634311941ea335eb7bd8b73ab9e641bd2dcfe899ab41c19a841e203dc771ec3000ae01452d22ecdc43c5a |
22 |
DIST strace-5.15.tar.xz 2248664 BLAKE2B fff08e49552ad1208b658f91e37c540cc7315ac255aba2e69db5bfeb942114b865f1114a45663481f1ab967db45d187bdbcf70ffe80449169df0c37ff82a1a94 SHA512 67251792ad0fb7f44013c3ae5e5b757106223c9d123d349e31de7565e0f2bfdc6bbd46a9c269e58508bd288ee70f104f8e2185f2203bd91431c5c776db0d9384 |
23 |
DIST strace-5.16.tar.xz 2265944 BLAKE2B 0c0fb133e8642c30a8c706ba23c2d0976ff4e6662a1d07c6cd3cb70aaa980020d54220fe0baddcb70e3c3eb24bc2a8733e4b52ef4e99da5c11ed852c192a5c21 SHA512 db5993ece5600d928a42dedd2d5c8efec5b9195becb5fe6913f58f4e2f486d80f1700d63d1e67b591d4e6b13d19c4fcc0c52a4d0fa57c5a5a2ea73c4edd0f817 |
24 |
+DIST strace-5.17.tar.xz 2281220 BLAKE2B 27e7dc19302c58144b0a7d8de41f717760b8e3cde4ab56892045727597bbfc894bf8f137aee476548c2d16d1e9c8005f931f31a5d2f8bfc4ce5565c2aa01f1ec SHA512 1b63cf7e6e339333b9d24fa20232409192abc815f2ebe2e336ef4acc039cd06c976b3c12e9ce993491a0e6b86c26b90ceba962f580e894b1ff5ab9863bdfcc44 |
25 |
|
26 |
diff --git a/dev-util/strace/strace-5.17.ebuild b/dev-util/strace/strace-5.17.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..a0531b88dede |
29 |
--- /dev/null |
30 |
+++ b/dev-util/strace/strace-5.17.ebuild |
31 |
@@ -0,0 +1,108 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools flag-o-matic toolchain-funcs |
38 |
+ |
39 |
+if [[ ${PV} == "9999" ]] ; then |
40 |
+ EGIT_REPO_URI="https://github.com/strace/strace.git" |
41 |
+ inherit git-r3 |
42 |
+else |
43 |
+ SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" |
44 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool" |
48 |
+HOMEPAGE="https://strace.io/" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+IUSE="aio perl selinux static unwind elfutils" |
53 |
+REQUIRED_USE="?? ( unwind elfutils )" |
54 |
+ |
55 |
+BDEPEND="virtual/pkgconfig" |
56 |
+LIB_DEPEND=" |
57 |
+ unwind? ( sys-libs/libunwind[static-libs(+)] ) |
58 |
+ elfutils? ( dev-libs/elfutils[static-libs(+)] ) |
59 |
+ selinux? ( sys-libs/libselinux[static-libs(+)] ) |
60 |
+" |
61 |
+# strace only uses the header from libaio to decode structs |
62 |
+DEPEND=" |
63 |
+ static? ( ${LIB_DEPEND} ) |
64 |
+ aio? ( >=dev-libs/libaio-0.3.106 ) |
65 |
+ sys-kernel/linux-headers |
66 |
+" |
67 |
+RDEPEND=" |
68 |
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
69 |
+ perl? ( dev-lang/perl ) |
70 |
+" |
71 |
+ |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}/${PN}-5.11-static.patch" |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ |
79 |
+ eautoreconf |
80 |
+ |
81 |
+ if [[ ! -e configure ]] ; then |
82 |
+ # git generation |
83 |
+ sed /autoreconf/d -i bootstrap || die |
84 |
+ ./bootstrap || die |
85 |
+ eautoreconf |
86 |
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,} |
87 |
+ fi |
88 |
+ |
89 |
+ # Stub out the -k test since it's known to be flaky. bug #545812 |
90 |
+ sed -i '1iexit 77' tests*/strace-k.test || die |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ # Set up the default build settings, and then use the names strace expects. |
95 |
+ tc-export_build_env BUILD_{CC,CPP} |
96 |
+ local v bv |
97 |
+ for v in CC CPP {C,CPP,LD}FLAGS ; do |
98 |
+ bv="BUILD_${v}" |
99 |
+ export "${v}_FOR_BUILD=${!bv}" |
100 |
+ done |
101 |
+ |
102 |
+ filter-lfs-flags # configure handles this sanely |
103 |
+ |
104 |
+ export ac_cv_header_libaio_h=$(usex aio) |
105 |
+ use elibc_musl && export ac_cv_header_stdc=no |
106 |
+ |
107 |
+ local myeconfargs=( |
108 |
+ --disable-gcc-Werror |
109 |
+ |
110 |
+ # Don't require mpers support on non-multilib systems. #649560 |
111 |
+ --enable-mpers=check |
112 |
+ |
113 |
+ $(use_enable static) |
114 |
+ $(use_with unwind libunwind) |
115 |
+ $(use_with elfutils libdw) |
116 |
+ $(use_with selinux libselinux) |
117 |
+ ) |
118 |
+ econf "${myeconfargs[@]}" |
119 |
+} |
120 |
+ |
121 |
+src_test() { |
122 |
+ if has usersandbox ${FEATURES} ; then |
123 |
+ # bug #643044 |
124 |
+ ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." |
125 |
+ return 0 |
126 |
+ fi |
127 |
+ |
128 |
+ default |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ default |
133 |
+ |
134 |
+ if use perl ; then |
135 |
+ exeinto /usr/bin |
136 |
+ doexe src/strace-graph |
137 |
+ fi |
138 |
+ dodoc CREDITS |
139 |
+} |