Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/strace/
Date: Tue, 30 Oct 2018 20:20:38
Message-Id: 1540930825.268e91cca7b6a916fdce22a0da6c5b6d93f7183b.polynomial-c@gentoo
1 commit: 268e91cca7b6a916fdce22a0da6c5b6d93f7183b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 30 19:52:00 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 20:20:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=268e91cc
7
8 dev-util/strace: Bump to version 4.25
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-util/strace/Manifest | 1 +
14 dev-util/strace/strace-4.25.ebuild | 93 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 94 insertions(+)
16
17 diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest
18 index 2e53a652e93..ac94e73d232 100644
19 --- a/dev-util/strace/Manifest
20 +++ b/dev-util/strace/Manifest
21 @@ -1,3 +1,4 @@
22 DIST strace-4.20.tar.xz 1132460 BLAKE2B 2e0e3080008ed1d5fd87572df740af8c62ebba44e0ece3c6b5ab581f246e79d8074a7fc2d0857abe158a055042fccbd880e11c9567beca1aeddc23f92d763c2d SHA512 869b3b9c48401619073a021e20e80cce37d8884f615bdb52dac9e6a2903df11507d7a0cb0ccad75bcc03d8dfafead0e68d14267e663503e94849079c9a2ebd4c
23 DIST strace-4.23.tar.xz 1379128 BLAKE2B e1b680774172ba65190acc201a00f36ff608eb5a8239f8a6665b9f0eebfb7715eb3469d45c2333e4fac9a498ad3b448b1f39716b92cab91b035bc1e4125382eb SHA512 b54df972dc86e27668784ea4619e8c55230816b249e0a7fcca99a37b7f9ec37710742aca08c9e39b508522accb654a83c98207bab9ccac1197bb8e73e51ab116
24 DIST strace-4.24.tar.xz 1398252 BLAKE2B ca83adfb3ccd23a55976c2950ce5911203e1ad911147649127e49d815e4899b5fd72459c371c15aea701d0d30e994d0eca2b32aad240fccc4e8d1cecb3f97558 SHA512 69cbf8b2c32c7ea90ebe5955bc71b454316a3494ae6975203fe61ce1f42ec539438cec5ba8ee7f529f89661d964b4aa53656712706aacff6bf018304b7a09813
25 +DIST strace-4.25.tar.xz 1425268 BLAKE2B 896685589686864316940b8493e481f5e37d1c2f536551f79193bc851d66614816abbc989dbff2b18e38f5bff535315ca732221d520f282227b74a4eab3ebb4f SHA512 1465ef5ebc77cee73ebae5e12c72ff1826f48cdb2b36bdd5116380fac3add73f3ede3ca2694358bfb0c3e3141be5b747b353749130a366c81d05709b2d7bb879
26
27 diff --git a/dev-util/strace/strace-4.25.ebuild b/dev-util/strace/strace-4.25.ebuild
28 new file mode 100644
29 index 00000000000..e0e68ced9e5
30 --- /dev/null
31 +++ b/dev-util/strace/strace-4.25.ebuild
32 @@ -0,0 +1,93 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit flag-o-matic toolchain-funcs
39 +
40 +if [[ ${PV} == "9999" ]] ; then
41 + EGIT_REPO_URI="https://github.com/strace/strace.git"
42 + inherit git-r3 autotools
43 +else
44 + SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
46 +fi
47 +
48 +DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
49 +HOMEPAGE="https://strace.io/"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +IUSE="aio perl static unwind elfutils"
54 +
55 +REQUIRED_USE="?? ( unwind elfutils )"
56 +
57 +LIB_DEPEND="
58 + unwind? ( sys-libs/libunwind[static-libs(+)] )
59 + elfutils? ( dev-libs/elfutils[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 +src_prepare() {
73 + default
74 +
75 + if [[ ! -e configure ]] ; then
76 + # git generation
77 + ./xlat/gen.sh || die
78 + ./generate_mpers_am.sh || die
79 + eautoreconf
80 + [[ ! -e CREDITS ]] && cp CREDITS{.in,}
81 + fi
82 +
83 + filter-lfs-flags # configure handles this sanely
84 + # Add -pthread since strace wants -lrt for timer_create, and -lrt uses -lpthread.
85 + use static && append-ldflags -static -pthread
86 +
87 + export ac_cv_header_libaio_h=$(usex aio)
88 + use elibc_musl && export ac_cv_header_stdc=no
89 +
90 + # Stub out the -k test since it's known to be flaky. #545812
91 + sed -i '1iexit 77' tests*/strace-k.test || die
92 +}
93 +
94 +src_configure() {
95 + # Set up the default build settings, and then use the names strace expects.
96 + tc-export_build_env BUILD_{CC,CPP}
97 + local v bv
98 + for v in CC CPP {C,CPP,LD}FLAGS ; do
99 + bv="BUILD_${v}"
100 + export "${v}_FOR_BUILD=${!bv}"
101 + done
102 +
103 + # Don't require mpers support on non-multilib systems. #649560
104 + local myeconfargs=(
105 + --enable-mpers=check
106 + $(use_with unwind libunwind)
107 + $(use_with elfutils libdw)
108 + )
109 + econf "${myeconfargs[@]}"
110 +}
111 +
112 +src_test() {
113 + if has usersandbox $FEATURES ; then
114 + ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." #643044
115 + return 0
116 + fi
117 +
118 + default
119 +}
120 +
121 +src_install() {
122 + default
123 + use perl || rm "${ED%/}"/usr/bin/strace-graph
124 + dodoc CREDITS
125 +}