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: Thu, 06 Feb 2020 21:11:51
Message-Id: 1581023503.d9fa38d5a9fc8cee637192385c611429500ee5c7.polynomial-c@gentoo
1 commit: d9fa38d5a9fc8cee637192385c611429500ee5c7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 6 21:05:47 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 6 21:11:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9fa38d5
7
8 dev-util/strace: Bump to version 5.5
9
10 Package-Manager: Portage-2.3.87, Repoman-2.3.20
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-util/strace/Manifest | 1 +
14 dev-util/strace/strace-5.5.ebuild | 99 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 100 insertions(+)
16
17 diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest
18 index ea3db906b49..920d075e810 100644
19 --- a/dev-util/strace/Manifest
20 +++ b/dev-util/strace/Manifest
21 @@ -2,3 +2,4 @@ DIST strace-4.26.tar.xz 1444216 BLAKE2B ea8ff5f863afa29a3a40e8d89ff5c3835c64adf7
22 DIST strace-5.2.tar.xz 1515544 BLAKE2B 919a689741eabd843a43fdb557953ee6095a4d1abea808d7c35049b93afd338e0df7c69014486dfb88d22dd7cdb2f74b939ed55f08e85cdb9793d8150d08bde0 SHA512 41bea20215fa80ad90a5d49c41944e02774e715efda5e563b3714e5800933a5fca4a2392634193cf49c0752321a39e0c185bdbc9cfb8ee053b09a6bd5723da35
23 DIST strace-5.3.tar.xz 1572708 BLAKE2B 808bc7afc6c70137c44d0f5a47706953bc7c0214348cda2ae45e10876bd6e118c103f15abffdfe0d7fdb01d8d3de163b9c7de3970d9cd07c88ceca11a99dc7f9 SHA512 02b80a8abedb14e40235709733953005210cd328daba59cb594745e7ed3851d155546ccccdb3e43835aa75eee89f023324e542e15154bbc3269e37fd23433e2a
24 DIST strace-5.4.tar.xz 1599396 BLAKE2B 0a7fd9600488f5f07042ead8123151cf0113f82329c3cc786c8f3ffb8673f73eaaa1a489f1f27c47800a20e5b6327f1bf5fb09a5b798156908f9e10374a04970 SHA512 4ddba2ec4457a2257c18b26dca851e49a275813c4eb3069379a93fcc60228f9b63a3dee9e3719ae606a7cc61d55ab21ce147327223903c302c061e381097a8d7
25 +DIST strace-5.5.tar.xz 1628744 BLAKE2B ae2ab9b2c756858c3c23640ee19821b8720da84a5e15e4a674768d8f4b51d74b2b490cfa18a862bc3c9d129baeaf09212700bea98ac151db035d03a05afa055d SHA512 317fe6341000b452cf038433c2a9a7bcdc8ce736e97b242673ce066dd9dbd3b2c3435a014b529429fdf2ac8af5c3a72d62971b293d007b7d3efcbb684c216231
26
27 diff --git a/dev-util/strace/strace-5.5.ebuild b/dev-util/strace/strace-5.5.ebuild
28 new file mode 100644
29 index 00000000000..c6b8e0324fb
30 --- /dev/null
31 +++ b/dev-util/strace/strace-5.5.ebuild
32 @@ -0,0 +1,99 @@
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 flag-o-matic toolchain-funcs autotools
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 ~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 + # Needed for applied patch (#701516). Remove with next version.
76 + # Don't forget about autotools inherit.
77 + eautoreconf
78 +
79 + if [[ ! -e configure ]] ; then
80 + # git generation
81 + sed /autoreconf/d -i bootstrap || die
82 + ./bootstrap || die
83 + eautoreconf
84 + [[ ! -e CREDITS ]] && cp CREDITS{.in,}
85 + fi
86 +
87 + filter-lfs-flags # configure handles this sanely
88 + # Add -pthread since strace wants -lrt for timer_create, and -lrt uses -lpthread.
89 + use static && append-ldflags -static -pthread
90 +
91 + export ac_cv_header_libaio_h=$(usex aio)
92 + use elibc_musl && export ac_cv_header_stdc=no
93 +
94 + # Stub out the -k test since it's known to be flaky. #545812
95 + sed -i '1iexit 77' tests*/strace-k.test || die
96 +}
97 +
98 +src_configure() {
99 + # Set up the default build settings, and then use the names strace expects.
100 + tc-export_build_env BUILD_{CC,CPP}
101 + local v bv
102 + for v in CC CPP {C,CPP,LD}FLAGS ; do
103 + bv="BUILD_${v}"
104 + export "${v}_FOR_BUILD=${!bv}"
105 + done
106 +
107 + # Don't require mpers support on non-multilib systems. #649560
108 + local myeconfargs=(
109 + --enable-mpers=check
110 + $(use_with unwind libunwind)
111 + $(use_with elfutils libdw)
112 + )
113 + econf "${myeconfargs[@]}"
114 +}
115 +
116 +src_test() {
117 + if has usersandbox ${FEATURES} ; then
118 + ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." #643044
119 + return 0
120 + fi
121 +
122 + default
123 +}
124 +
125 +src_install() {
126 + default
127 + if ! use perl ; then
128 + rm "${ED}"/usr/bin/strace-graph || die
129 + fi
130 + dodoc CREDITS
131 +}