Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ltrace/
Date: Fri, 02 Jul 2021 18:31:25
Message-Id: 1625250676.7e98b43f9cb33b3513010de9240d2b5f229fb8a9.marecki@gentoo
1 commit: 7e98b43f9cb33b3513010de9240d2b5f229fb8a9
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 2 17:17:56 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 2 18:31:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e98b43f
7
8 dev-util/ltrace: add 0.7.3.6.1
9
10 Debian now uses two-part version numbers for their changes in this
11 package, which is not allowed with _p in Gentoo - so just extend the
12 standard version number by two more parts, it's unlikely this will
13 conflict with the upstream scheme even if they even do release a new
14 version.
15
16 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
17
18 dev-util/ltrace/Manifest | 1 +
19 dev-util/ltrace/ltrace-0.7.3.6.1.ebuild | 77 +++++++++++++++++++++++++++++++++
20 2 files changed, 78 insertions(+)
21
22 diff --git a/dev-util/ltrace/Manifest b/dev-util/ltrace/Manifest
23 index 7fc0116aba0..d5af7e1c9ff 100644
24 --- a/dev-util/ltrace/Manifest
25 +++ b/dev-util/ltrace/Manifest
26 @@ -1,2 +1,3 @@
27 DIST ltrace_0.7.3-4.debian.tar.gz 11373 BLAKE2B 3004bef4e0181e28606e1c50dcc2265d9869e51bf11288185da46f7a77a0aaffb41af75f84baa7d094f9f752071c9e8f53c565982a955e3250a7fc721c529b20 SHA512 67a868c95703ca9cd8407905e3be416e3a66920f41d9deb78fadb71719d7d3f1a3f67ffcb575acff4bf7e4715102f3a6b0f67c6adb74f37ee66c398c132ff04b
28 +DIST ltrace_0.7.3-6.1.debian.tar.xz 11404 BLAKE2B d38ce51dfcbf809d7622029fb6dd0acd61c8d8213be0bf2625fd746adbe6dd6830faf208b7e864c1185013d7d5e17f3e10e8a8fb45f8e0a4bc9859fde96a55d7 SHA512 c0753935d74be530886ce5202429cabbbe73814c9ac120eaf90a1c4e03dfd4de5381e3e85a27fbbbce694b23cd72a273199575419446b6159b0925d85e1938ab
29 DIST ltrace_0.7.3.orig.tar.bz2 482658 BLAKE2B 30d1dbb178a41043e4bbbac17a23676db202b64327c9bb4393ae7ace9f5e1a1e2a5ded56cabc7faf2ea55b22ed17126a94c121147aeefb40250710b7307a50d3 SHA512 a842b16dcb81da869afa0bddc755fdff0d57b35672505bf2c7164fd983b1938d28b126714128930994cc1230ced69d779456d0cfc16f4008c9b6d19f0852285d
30
31 diff --git a/dev-util/ltrace/ltrace-0.7.3.6.1.ebuild b/dev-util/ltrace/ltrace-0.7.3.6.1.ebuild
32 new file mode 100644
33 index 00000000000..9fd7b01b854
34 --- /dev/null
35 +++ b/dev-util/ltrace/ltrace-0.7.3.6.1.ebuild
36 @@ -0,0 +1,77 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit autotools
43 +
44 +LTRACE_V=$(ver_cut 1-3)
45 +DB_V=$(ver_cut 4-5)
46 +
47 +DESCRIPTION="trace library calls made at runtime"
48 +HOMEPAGE="https://gitlab.com/cespedes/ltrace"
49 +SRC_URI="
50 + mirror://debian/pool/main/l/${PN}/${PN}_${LTRACE_V}.orig.tar.bz2
51 + mirror://debian/pool/main/l/${PN}/${PN}_${LTRACE_V}-${DB_V}.debian.tar.xz
52 +"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
57 +IUSE="debug selinux test unwind"
58 +
59 +RDEPEND="virtual/libelf:=
60 + selinux? ( sys-libs/libselinux )
61 + unwind? ( sys-libs/libunwind:= )"
62 +DEPEND="${RDEPEND}
63 + sys-libs/binutils-libs
64 + test? ( dev-util/dejagnu )"
65 +
66 +# under musl tests need major work upstream, half of them does not work.
67 +RESTRICT="
68 + !test? ( test )
69 + elibc_musl? ( test )
70 +"
71 +
72 +S=${WORKDIR}/${PN}-${LTRACE_V}
73 +
74 +PATCHES=(
75 + "${FILESDIR}"/${PN}-0.7.3-test-protos.patch #bug 421649
76 + "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch
77 + "${FILESDIR}"/${PN}-0.7.3-ia64.patch
78 + "${FILESDIR}"/${PN}-0.7.3-print-test-pie.patch
79 + "${FILESDIR}"/${PN}-0.7.3-ia64-pid_t.patch
80 + "${FILESDIR}"/${PN}-0.7.3-musl-host.patch #713428
81 + "${FILESDIR}"/${PN}-0.7.3-no-error.h.patch #713428
82 + "${FILESDIR}"/${PN}-0.7.3-no-error.h-2.patch #713428
83 + "${FILESDIR}"/${PN}-0.7.3-no-REG_NOERROR.patch #713428
84 + "${FILESDIR}"/${PN}-0.7.3-pid_t.patch #713428
85 + "${FILESDIR}"/${PN}-0.7.3-tuple-tests.patch
86 + "${FILESDIR}"/${PN}-0.7.3-CXX-for-tests.patch
87 + "${FILESDIR}"/${PN}-0.7.3-test-glibc-2.33.patch
88 + "${FILESDIR}"/${PN}-0.7.3-disable-munmap-test.patch
89 +)
90 +
91 +src_prepare() {
92 + eapply "${WORKDIR}"/debian/patches/[0-9]*
93 +
94 + default
95 +
96 + sed -i '/^dist_doc_DATA/d' Makefile.am || die
97 + eautoreconf
98 +}
99 +
100 +src_configure() {
101 + ac_cv_header_selinux_selinux_h=$(usex selinux) \
102 + ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \
103 + econf \
104 + --disable-werror \
105 + $(use_enable debug) \
106 + $(use_with unwind libunwind)
107 +}
108 +
109 +src_test() {
110 + # sandbox redirects vfork() to fork(): bug # 774054
111 + # Let's avoid sandbox entirely.
112 + SANDBOX_ON=0 LD_PRELOAD= emake check
113 +}