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