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: Mon, 19 Jul 2021 07:18:58
Message-Id: 1626679125.a1952577607f222e17cc29fb4bff4edbd16184cb.polynomial-c@gentoo
1 commit: a1952577607f222e17cc29fb4bff4edbd16184cb
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 19 07:15:31 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 19 07:18:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1952577
7
8 dev-util/strace: Bump to version 5.13
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 dev-util/strace/Manifest | 1 +
13 dev-util/strace/strace-5.13.ebuild | 105 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 106 insertions(+)
15
16 diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest
17 index c309375d1fa..dce8cafc85a 100644
18 --- a/dev-util/strace/Manifest
19 +++ b/dev-util/strace/Manifest
20 @@ -1,2 +1,3 @@
21 DIST strace-5.11.tar.xz 1926632 BLAKE2B df47612c0928466f8b5788c4a7dc74208fe76c6967d3219b0eb753131fba315e715626c2cd1ed56d3e8ba0eb9a338589a8cbd6205fe876123ac26fdf0fab8d31 SHA512 688bec8d620c7ca701561ed7479e42687cc30737f944b82201731d827775cd2864787ecca7c93ba149b06d5d654d9f6bd109a977f8138bab34339cd5930828f0
22 DIST strace-5.12.tar.xz 2009060 BLAKE2B 9a7a07e5d2d38c8b456f54d0e1d7c776066b20327fa08d562e426a7096f708dffa00f0c2121683fa71f7029db958d450c5a6abf5ae5970dc02732f5aa7cef591 SHA512 289cf82da4c69270458953b45d09c8eb05a6624898d3ac493c3ec293cd5ad07205084ad0af021dab2be9c0dc53f0301816113a746d96c78780b79231a185e7c9
23 +DIST strace-5.13.tar.xz 2040116 BLAKE2B a604342d68f504b42ff1cb4918aa9ced6575f589caeb62f53e0b125f24cfaf0423f1911f352f21ecea0d702197d65edc85d3e97ffca3561f619f9c4c80386cdc SHA512 ba8b0eae396fa2b762bf17cbcdcd84b0660b2a5d5e7e9caf098ef3414a87fd28d4140dd10136483f35904560e5044e40be2bf6117462868a360306d62887c8ed
24
25 diff --git a/dev-util/strace/strace-5.13.ebuild b/dev-util/strace/strace-5.13.ebuild
26 new file mode 100644
27 index 00000000000..73df00d83ec
28 --- /dev/null
29 +++ b/dev-util/strace/strace-5.13.ebuild
30 @@ -0,0 +1,105 @@
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 autotools
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 static unwind elfutils"
52 +
53 +REQUIRED_USE="?? ( unwind elfutils )"
54 +
55 +BDEPEND="
56 + virtual/pkgconfig
57 +"
58 +LIB_DEPEND="
59 + unwind? ( sys-libs/libunwind[static-libs(+)] )
60 + elfutils? ( dev-libs/elfutils[static-libs(+)] )
61 +"
62 +# strace only uses the header from libaio to decode structs
63 +DEPEND="
64 + static? ( ${LIB_DEPEND} )
65 + aio? ( >=dev-libs/libaio-0.3.106 )
66 + sys-kernel/linux-headers
67 +"
68 +RDEPEND="
69 + !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
70 + perl? ( dev-lang/perl )
71 +"
72 +
73 +PATCHES=(
74 + "${FILESDIR}/${PN}-5.11-static.patch"
75 +)
76 +
77 +src_prepare() {
78 + default
79 +
80 + eautoreconf
81 +
82 + if [[ ! -e configure ]] ; then
83 + # git generation
84 + sed /autoreconf/d -i bootstrap || die
85 + ./bootstrap || die
86 + eautoreconf
87 + [[ ! -e CREDITS ]] && cp CREDITS{.in,}
88 + fi
89 +
90 + filter-lfs-flags # configure handles this sanely
91 +
92 + export ac_cv_header_libaio_h=$(usex aio)
93 + use elibc_musl && export ac_cv_header_stdc=no
94 +
95 + # Stub out the -k test since it's known to be flaky. #545812
96 + sed -i '1iexit 77' tests*/strace-k.test || die
97 +}
98 +
99 +src_configure() {
100 + # Set up the default build settings, and then use the names strace expects.
101 + tc-export_build_env BUILD_{CC,CPP}
102 + local v bv
103 + for v in CC CPP {C,CPP,LD}FLAGS ; do
104 + bv="BUILD_${v}"
105 + export "${v}_FOR_BUILD=${!bv}"
106 + done
107 +
108 + # Don't require mpers support on non-multilib systems. #649560
109 + local myeconfargs=(
110 + --disable-gcc-Werror
111 + --enable-mpers=check
112 + $(use_enable static)
113 + $(use_with unwind libunwind)
114 + $(use_with elfutils libdw)
115 + )
116 + econf "${myeconfargs[@]}"
117 +}
118 +
119 +src_test() {
120 + if has usersandbox ${FEATURES} ; then
121 + ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." #643044
122 + return 0
123 + fi
124 +
125 + default
126 +}
127 +
128 +src_install() {
129 + default
130 + if use perl ; then
131 + exeinto /usr/bin
132 + doexe src/strace-graph
133 + fi
134 + dodoc CREDITS
135 +}