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, 02 Jun 2020 09:31:35
Message-Id: 1591090217.1a6f2e5afd53fa68b7a337e1da8c7ddb9aafa80e.polynomial-c@gentoo
1 commit: 1a6f2e5afd53fa68b7a337e1da8c7ddb9aafa80e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 2 09:30:17 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 2 09:30:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6f2e5a
7
8 dev-util/strace: Bump to version 5.7
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-util/strace/Manifest | 1 +
14 dev-util/strace/strace-5.7.ebuild | 104 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 105 insertions(+)
16
17 diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest
18 index b6e409ce208..d743c16faca 100644
19 --- a/dev-util/strace/Manifest
20 +++ b/dev-util/strace/Manifest
21 @@ -2,3 +2,4 @@ DIST strace-5.3.tar.xz 1572708 BLAKE2B 808bc7afc6c70137c44d0f5a47706953bc7c02143
22 DIST strace-5.4.tar.xz 1599396 BLAKE2B 0a7fd9600488f5f07042ead8123151cf0113f82329c3cc786c8f3ffb8673f73eaaa1a489f1f27c47800a20e5b6327f1bf5fb09a5b798156908f9e10374a04970 SHA512 4ddba2ec4457a2257c18b26dca851e49a275813c4eb3069379a93fcc60228f9b63a3dee9e3719ae606a7cc61d55ab21ce147327223903c302c061e381097a8d7
23 DIST strace-5.5.tar.xz 1628744 BLAKE2B ae2ab9b2c756858c3c23640ee19821b8720da84a5e15e4a674768d8f4b51d74b2b490cfa18a862bc3c9d129baeaf09212700bea98ac151db035d03a05afa055d SHA512 317fe6341000b452cf038433c2a9a7bcdc8ce736e97b242673ce066dd9dbd3b2c3435a014b529429fdf2ac8af5c3a72d62971b293d007b7d3efcbb684c216231
24 DIST strace-5.6.tar.xz 1775292 BLAKE2B 6e674e4a1b70a3ebb28aa0097baa07efc7dce18039a3a7d535b4c8b3fc1b11c59ef1eb79e58bbf4b9e2b9621d0840958ba5785d22d0cdcb4c00fb5fa2a3288c1 SHA512 58c8a250e55a018206bee9468ea057c087d5d5bb523339ea3c01e0a19d8f84c95bd1398d66a6dca6ada45c6535aa44b776713a2bb080eebaa734ffb926ac5b38
25 +DIST strace-5.7.tar.xz 1805044 BLAKE2B 487a1481357642be21c83cf387710bc75f17bd0af87ff07f914faa99120a619f33d2caba034d50dbdbc03aa3f758dae86d04fc6c25b3f6254ac3f0578a19884a SHA512 aef481238196204495cf9507cd48ce30af799f79904478e6be57a267311a999c868f18540cc1e025f5e486730cfe9ccb256f528f6f796d204a7347ebdf2042f1
26
27 diff --git a/dev-util/strace/strace-5.7.ebuild b/dev-util/strace/strace-5.7.ebuild
28 new file mode 100644
29 index 00000000000..5d7d3277504
30 --- /dev/null
31 +++ b/dev-util/strace/strace-5.7.ebuild
32 @@ -0,0 +1,104 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools 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 ~riscv ~s390 ~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 +BDEPEND="
58 + virtual/pkgconfig
59 +"
60 +LIB_DEPEND="
61 + unwind? ( sys-libs/libunwind[static-libs(+)] )
62 + elfutils? ( dev-libs/elfutils[static-libs(+)] )
63 +"
64 +# strace only uses the header from libaio to decode structs
65 +DEPEND="
66 + static? ( ${LIB_DEPEND} )
67 + aio? ( >=dev-libs/libaio-0.3.106 )
68 + sys-kernel/linux-headers
69 +"
70 +RDEPEND="
71 + !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
72 + perl? ( dev-lang/perl )
73 +"
74 +
75 +PATCHES=(
76 + "${FILESDIR}/strace-5.5-static.patch"
77 +)
78 +
79 +src_prepare() {
80 + default
81 +
82 + eautoreconf
83 +
84 + if [[ ! -e configure ]] ; then
85 + # git generation
86 + sed /autoreconf/d -i bootstrap || die
87 + ./bootstrap || die
88 + eautoreconf
89 + [[ ! -e CREDITS ]] && cp CREDITS{.in,}
90 + fi
91 +
92 + filter-lfs-flags # configure handles this sanely
93 +
94 + export ac_cv_header_libaio_h=$(usex aio)
95 + use elibc_musl && export ac_cv_header_stdc=no
96 +
97 + # Stub out the -k test since it's known to be flaky. #545812
98 + sed -i '1iexit 77' tests*/strace-k.test || die
99 +}
100 +
101 +src_configure() {
102 + # Set up the default build settings, and then use the names strace expects.
103 + tc-export_build_env BUILD_{CC,CPP}
104 + local v bv
105 + for v in CC CPP {C,CPP,LD}FLAGS ; do
106 + bv="BUILD_${v}"
107 + export "${v}_FOR_BUILD=${!bv}"
108 + done
109 +
110 + # Don't require mpers support on non-multilib systems. #649560
111 + local myeconfargs=(
112 + --disable-gcc-Werror
113 + --enable-mpers=check
114 + $(use_enable static)
115 + $(use_with unwind libunwind)
116 + $(use_with elfutils libdw)
117 + )
118 + econf "${myeconfargs[@]}"
119 +}
120 +
121 +src_test() {
122 + if has usersandbox ${FEATURES} ; then
123 + ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." #643044
124 + return 0
125 + fi
126 +
127 + default
128 +}
129 +
130 +src_install() {
131 + default
132 + if ! use perl ; then
133 + rm "${ED}"/usr/bin/strace-graph || die
134 + fi
135 + dodoc CREDITS
136 +}