1 |
commit: 929486d125956a1a3a5e942c5ce2aee022e3ef10 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 14 09:10:54 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 14 09:10:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=929486d1 |
7 |
|
8 |
dev-util/strace: Bump to version 4.21 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-util/strace/Manifest | 1 + |
13 |
dev-util/strace/strace-4.21.ebuild | 84 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest |
17 |
index 80918095f95..da57eff4cd5 100644 |
18 |
--- a/dev-util/strace/Manifest |
19 |
+++ b/dev-util/strace/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST strace-4.16.tar.xz 966668 BLAKE2B b3c593b2fc17d540ca04a05886fc0d37b3445a4e88f5e93035bc9dbeb6fe21678b9018f052ba8e356a51d0a5013ec8863a50f8fcd5dcfd1d8b9ac4a6363f2d71 SHA512 d1a7b782cb8196eb95b431b66f9b0eff7886869a7e3a4618d985f73b2eed7590ba73150b9c33e55ee5c65fc8f863588b64c5611dca7b5d7a4183110eaf4451d5 |
22 |
DIST strace-4.20.tar.xz 1132460 BLAKE2B 2e0e3080008ed1d5fd87572df740af8c62ebba44e0ece3c6b5ab581f246e79d8074a7fc2d0857abe158a055042fccbd880e11c9567beca1aeddc23f92d763c2d SHA512 869b3b9c48401619073a021e20e80cce37d8884f615bdb52dac9e6a2903df11507d7a0cb0ccad75bcc03d8dfafead0e68d14267e663503e94849079c9a2ebd4c |
23 |
+DIST strace-4.21.tar.xz 1185908 BLAKE2B 00d8c7e296dd3b2a004b4f7ae062a3813219351bb4a5aabbc2e04784c35760f271fc12fd0122dac276a9723079f63d7187239172c9379a056e55dab9606e2e4b SHA512 d3b0393f1f727530e2e5b4490c80a905d251223167a61f9a86884a4b8a4f25522c46c465961968ca25013f321e561e217cb6e8f15be31d4d371274030526187d |
24 |
|
25 |
diff --git a/dev-util/strace/strace-4.21.ebuild b/dev-util/strace/strace-4.21.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0a2a04c8fab |
28 |
--- /dev/null |
29 |
+++ b/dev-util/strace/strace-4.21.ebuild |
30 |
@@ -0,0 +1,84 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit flag-o-matic toolchain-funcs |
37 |
+ |
38 |
+if [[ ${PV} == "9999" ]] ; then |
39 |
+ #EGIT_REPO_URI="git://git.code.sf.net/p/strace/code" |
40 |
+ #EGIT_PROJECT="${PN}" |
41 |
+ EGIT_REPO_URI="https://github.com/strace/strace.git" |
42 |
+ inherit git-r3 autotools |
43 |
+else |
44 |
+ #SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" |
45 |
+ SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" |
46 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool" |
50 |
+HOMEPAGE="https://sourceforge.net/projects/strace/" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+IUSE="aio perl static unwind" |
55 |
+ |
56 |
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )" |
57 |
+# strace only uses the header from libaio to decode structs |
58 |
+DEPEND=" |
59 |
+ static? ( ${LIB_DEPEND} ) |
60 |
+ aio? ( >=dev-libs/libaio-0.3.106 ) |
61 |
+ sys-kernel/linux-headers |
62 |
+" |
63 |
+RDEPEND=" |
64 |
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
65 |
+ perl? ( dev-lang/perl ) |
66 |
+" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ if [[ ! -e configure ]] ; then |
72 |
+ # git generation |
73 |
+ ./xlat/gen.sh || die |
74 |
+ ./generate_mpers_am.sh || die |
75 |
+ eautoreconf |
76 |
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,} |
77 |
+ fi |
78 |
+ |
79 |
+ filter-lfs-flags # configure handles this sanely |
80 |
+ use static && append-ldflags -static |
81 |
+ |
82 |
+ export ac_cv_header_libaio_h=$(usex aio) |
83 |
+ use elibc_musl && export ac_cv_header_stdc=no |
84 |
+ |
85 |
+ # Stub out the -k test since it's known to be flaky. #545812 |
86 |
+ sed -i '1iexit 77' tests*/strace-k.test || die |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ # Set up the default build settings, and then use the names strace expects. |
91 |
+ tc-export_build_env BUILD_{CC,CPP} |
92 |
+ local v bv |
93 |
+ for v in CC CPP {C,CPP,LD}FLAGS ; do |
94 |
+ bv="BUILD_${v}" |
95 |
+ export "${v}_FOR_BUILD=${!bv}" |
96 |
+ done |
97 |
+ |
98 |
+ econf $(use_with unwind libunwind) |
99 |
+} |
100 |
+ |
101 |
+src_test() { |
102 |
+ if has usersandbox $FEATURES ; then |
103 |
+ ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." #643044 |
104 |
+ return 0 |
105 |
+ fi |
106 |
+ |
107 |
+ default |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ default |
112 |
+ use perl || rm "${ED}"/usr/bin/strace-graph |
113 |
+ dodoc CREDITS |
114 |
+} |