Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-util/strace/
Date: Sun, 03 Apr 2016 09:15:27
Message-Id: 1459675316.0527f42381821c3b999eb8ee84c7148a80e0ac7d.blueness@gentoo
1 commit: 0527f42381821c3b999eb8ee84c7148a80e0ac7d
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 3 09:21:56 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 3 09:21:56 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=0527f423
7
8 dev-util/strace: prepare 4.11 for musl
9
10 Package-Manager: portage-2.2.26
11
12 dev-util/strace/Manifest | 3 ++
13 dev-util/strace/metadata.xml | 19 +++++++++++
14 dev-util/strace/strace-4.11-r99.ebuild | 58 ++++++++++++++++++++++++++++++++++
15 3 files changed, 80 insertions(+)
16
17 diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest
18 new file mode 100644
19 index 0000000..83d6db1
20 --- /dev/null
21 +++ b/dev-util/strace/Manifest
22 @@ -0,0 +1,3 @@
23 +DIST strace-4.11.tar.xz 679924 SHA256 e86a5f6cd8f941f67f3e4b28f4e60f3d9185c951cf266404533210a2e5cd8152 SHA512 e1e07ed427f504f53bcd117b61bb96a780b0f531010856ed157e4d8c2090371bf320ab59a02b88e67bf2afd443fba67e12f90e53afeab795188c89c6496daecd WHIRLPOOL eee2ae13670dc6f52c45e8275e54655216bd63f1bba2b056a31cb2ee1431f3f15060112a4807eb552a36429bee5d358a5ac3290d25f8875ffd818bb6fcb21a2f
24 +EBUILD strace-4.11-r99.ebuild 1533 SHA256 095e6eeb5f030a06458781f42f856d4188f995051df3886fd79c9386388df481 SHA512 02e867ee26a0f5b5b85dfb32d9166549b81b9332f52b3b6dc6ae3ff51aed5d5fe39ee91cadc090f06178f45de5390cf0a60a1ed3446cab2e591bb40e5653e991 WHIRLPOOL b24c5a5d32d397848ac9e39d7f387fbd6df5365c6117c60269a49886394a798d9aa27b21956ab7cf7745c418d1370e7bbd5054bdbbac292620fce1d93a9c6edd
25 +MISC metadata.xml 593 SHA256 e109b90d149d7f0a92316f83f9695c40f2d702625c274b3a9c48bfab2b38dd53 SHA512 67300cfcaba830a47e49cd327bf2d8490b084b016a321fd6e19e52d8dc28968395b3ffc114675a7d4dc723a9ddd7b57c3ede10207a226d60a2225f88aceb59e4 WHIRLPOOL 1af581a8525b849b93b4e2f1c7106fb4805c61818d374e451b5cdf88d7e0d87a41e5175d08e789daab6daf4832ed4b055e9b7de4ad7516220c9da0c203bdc910
26
27 diff --git a/dev-util/strace/metadata.xml b/dev-util/strace/metadata.xml
28 new file mode 100644
29 index 0000000..869980f
30 --- /dev/null
31 +++ b/dev-util/strace/metadata.xml
32 @@ -0,0 +1,19 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="project">
37 + <email>base-system@g.o</email>
38 + <name>Gentoo Base System</name>
39 + </maintainer>
40 + <use>
41 + <flag name="aio">
42 + Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations
43 + </flag>
44 + <flag name="unwind">
45 + Enable stack backtraces (-k flag) via <pkg>sys-libs/libunwind</pkg>
46 + </flag>
47 + </use>
48 + <upstream>
49 + <remote-id type="sourceforge">strace</remote-id>
50 + </upstream>
51 +</pkgmetadata>
52
53 diff --git a/dev-util/strace/strace-4.11-r99.ebuild b/dev-util/strace/strace-4.11-r99.ebuild
54 new file mode 100644
55 index 0000000..b99f823
56 --- /dev/null
57 +++ b/dev-util/strace/strace-4.11-r99.ebuild
58 @@ -0,0 +1,58 @@
59 +# Copyright 1999-2015 Gentoo Foundation
60 +# Distributed under the terms of the GNU General Public License v2
61 +# $Id$
62 +
63 +EAPI=5
64 +
65 +inherit flag-o-matic eutils
66 +
67 +if [[ ${PV} == "9999" ]] ; then
68 + EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace"
69 + inherit git-2 autotools
70 +else
71 + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
72 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
73 +fi
74 +
75 +DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
76 +HOMEPAGE="http://sourceforge.net/projects/strace/"
77 +
78 +LICENSE="BSD"
79 +SLOT="0"
80 +IUSE="aio perl static unwind"
81 +
82 +LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
83 +# strace only uses the header from libaio to decode structs
84 +DEPEND="static? ( ${LIB_DEPEND} )
85 + aio? ( >=dev-libs/libaio-0.3.106 )
86 + sys-kernel/linux-headers"
87 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
88 + perl? ( dev-lang/perl )"
89 +
90 +src_prepare() {
91 + if epatch_user || [[ ! -e configure ]] ; then
92 + # git generation
93 + ./xlat/gen.sh
94 + eautoreconf
95 + [[ ! -e CREDITS ]] && cp CREDITS{.in,}
96 + fi
97 +
98 + filter-lfs-flags # configure handles this sanely
99 + use static && append-ldflags -static
100 +
101 + export ac_cv_header_libaio_h=$(usex aio)
102 + export ac_cv_header_stdc=no
103 +
104 + # Stub out the -k test since it's known to be flaky. #545812
105 + sed -i '1iexit 77' tests*/strace-k.test || die
106 +}
107 +
108 +src_configure() {
109 + econf $(use_with unwind libunwind)
110 +}
111 +
112 +src_install() {
113 + default
114 + use perl || rm "${ED}"/usr/bin/strace-graph
115 + dodoc CREDITS
116 +}