1 |
commit: d60e486daffa0a22f5bbf5c24b96ce4f80664ed7 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 25 14:25:14 2020 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 26 00:43:23 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d60e486d |
7 |
|
8 |
dev-util/perf: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
12 |
|
13 |
dev-util/perf/Manifest | 1 - |
14 |
dev-util/perf/perf-5.6.4.ebuild | 236 ---------------------------------------- |
15 |
2 files changed, 237 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest |
18 |
index 80a0a902057..0eda2f82c55 100644 |
19 |
--- a/dev-util/perf/Manifest |
20 |
+++ b/dev-util/perf/Manifest |
21 |
@@ -6,4 +6,3 @@ DIST patch-4.14.33.xz 905284 BLAKE2B e67bd9a96708aaaf65eb0aa852493b2323c9e237bfc |
22 |
DIST patch-4.20.3.xz 91732 BLAKE2B bf99271bcb35508df239343fd6c9d57c246f88320b586e44e2d97771d08b249a24db230214d4957015a5ed35261e201f0680101b99d0e92f0f1f69bc53e21458 SHA512 47178b8e3bfe4ba09cb82bb1ce8b0742e6749d4be3412fb57518918f7109e74eac1d3d8eb32a43e21b3837a14f37d5eefd8cab819defd10cc2db61fb0ceddeaf |
23 |
DIST patch-5.4.20.xz 776552 BLAKE2B bad2a95ed8521ac5c379fe91e16d60b2a38de19b9239755084621e5230677b232ec4cf9e2e8161c0022daff43fdbb37d5b5b5bfdc9e932ef3a860bcd17f640f8 SHA512 65fbcdbd41e35c17601ff15bbe33933be2ab7a694aa181a0b802cc11c1c653c9b688dbb382076cbad05983a0c07467955c035ae25f5175f7ce5bc24339303d77 |
24 |
DIST patch-5.6.14.xz 376464 BLAKE2B 01b64288759faa67aedfded7dfca5d8d1e894a863bf7bcaf91dd8f23c8b8c9df51d2e54ac5e414a33fc3469b32c10f1d630cf2636206b8e159d602df40ad3048 SHA512 8019bf12993f43d5508845a48b250d30220a8db6db262c8b97cd3f7c73abf0d054fcdfacb671644de529ceb495b95982d693a889051fb60fafc3180bd5b4f29e |
25 |
-DIST patch-5.6.4.xz 34744 BLAKE2B 856148010fefa7e45903da23a054429f924920f1fd331b725d00906baaf6a05fee769c5c780ae6548b4f02846f945b12012c1216411c8d92aef7499babc42528 SHA512 05607a47ee72af4a7b4d8424a3995d92d0cf358902459993908df0e95643cbfa9eec7ed56779d254b7b75ec1c8dbec5eea5e2e845f40f5511533d53b90b1c02e |
26 |
|
27 |
diff --git a/dev-util/perf/perf-5.6.4.ebuild b/dev-util/perf/perf-5.6.4.ebuild |
28 |
deleted file mode 100644 |
29 |
index 867ad0c5d5c..00000000000 |
30 |
--- a/dev-util/perf/perf-5.6.4.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,236 +0,0 @@ |
33 |
-# Copyright 1999-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-PYTHON_COMPAT=( python3_{6,7} ) |
39 |
-inherit bash-completion-r1 estack eutils llvm toolchain-funcs prefix python-r1 linux-info |
40 |
- |
41 |
-MY_PV="${PV/_/-}" |
42 |
-MY_PV="${MY_PV/-pre/-git}" |
43 |
- |
44 |
-DESCRIPTION="Userland tools for Linux Performance Counters" |
45 |
-HOMEPAGE="https://perf.wiki.kernel.org/" |
46 |
- |
47 |
-LINUX_V="${PV:0:1}.x" |
48 |
-if [[ ${PV} == *_rc* ]] ; then |
49 |
- LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1)) |
50 |
- PATCH_VERSION=$(ver_cut 1-3) |
51 |
- LINUX_PATCH=patch-${PV//_/-}.xz |
52 |
- SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} |
53 |
- https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" |
54 |
-elif [[ ${PV} == *.*.* ]] ; then |
55 |
- # stable-release series |
56 |
- LINUX_VER=$(ver_cut 1-2) |
57 |
- LINUX_PATCH=patch-${PV}.xz |
58 |
- SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" |
59 |
-else |
60 |
- LINUX_VER=${PV} |
61 |
- SRC_URI="" |
62 |
-fi |
63 |
- |
64 |
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz" |
65 |
-SRC_URI+=" https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" |
66 |
- |
67 |
-LICENSE="GPL-2" |
68 |
-SLOT="0" |
69 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
70 |
-IUSE="audit clang crypt debug +demangle +doc gtk java lzma numa perl python slang systemtap unwind zlib" |
71 |
-# TODO babeltrace |
72 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
73 |
- |
74 |
-RDEPEND="audit? ( sys-process/audit ) |
75 |
- crypt? ( dev-libs/openssl:0= ) |
76 |
- clang? ( |
77 |
- <sys-devel/clang-10:* |
78 |
- <sys-devel/llvm-10:* |
79 |
- ) |
80 |
- demangle? ( sys-libs/binutils-libs:= ) |
81 |
- gtk? ( x11-libs/gtk+:2 ) |
82 |
- java? ( virtual/jre:* ) |
83 |
- lzma? ( app-arch/xz-utils ) |
84 |
- numa? ( sys-process/numactl ) |
85 |
- perl? ( dev-lang/perl:= ) |
86 |
- python? ( ${PYTHON_DEPS} ) |
87 |
- slang? ( sys-libs/slang ) |
88 |
- systemtap? ( dev-util/systemtap ) |
89 |
- unwind? ( sys-libs/libunwind ) |
90 |
- zlib? ( sys-libs/zlib ) |
91 |
- dev-libs/elfutils" |
92 |
-DEPEND="${RDEPEND} |
93 |
- >=sys-kernel/linux-headers-4.19 |
94 |
- ${LINUX_PATCH+dev-util/patchutils} |
95 |
- sys-devel/bison |
96 |
- sys-devel/flex |
97 |
- java? ( virtual/jdk ) |
98 |
- doc? ( |
99 |
- app-text/asciidoc |
100 |
- app-text/sgml-common |
101 |
- app-text/xmlto |
102 |
- sys-process/time |
103 |
- )" |
104 |
- |
105 |
-S_K="${WORKDIR}/linux-${LINUX_VER}" |
106 |
-S="${S_K}/tools/perf" |
107 |
- |
108 |
-CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" |
109 |
- |
110 |
-pkg_setup() { |
111 |
- use clang && LLVM_MAX_SLOT=9 llvm_pkg_setup |
112 |
-} |
113 |
- |
114 |
-src_unpack() { |
115 |
- local paths=( |
116 |
- tools/arch tools/build tools/include tools/lib tools/perf tools/scripts |
117 |
- scripts include lib "arch/*/lib" |
118 |
- ) |
119 |
- |
120 |
- # We expect the tar implementation to support the -j option (both |
121 |
- # GNU tar and libarchive's tar support that). |
122 |
- echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}" |
123 |
- tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \ |
124 |
- "${paths[@]/#/linux-${LINUX_VER}/}" || die |
125 |
- |
126 |
- if [[ -n ${LINUX_PATCH} ]] ; then |
127 |
- eshopts_push -o noglob |
128 |
- ebegin "Filtering partial source patch" |
129 |
- filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \ |
130 |
- > ${P}.patch |
131 |
- eend $? || die "filterdiff failed" |
132 |
- eshopts_pop |
133 |
- fi |
134 |
- |
135 |
- local a |
136 |
- for a in ${A}; do |
137 |
- [[ ${a} == ${LINUX_SOURCES} ]] && continue |
138 |
- [[ ${a} == ${LINUX_PATCH} ]] && continue |
139 |
- unpack ${a} |
140 |
- done |
141 |
-} |
142 |
- |
143 |
-src_prepare() { |
144 |
- default |
145 |
- if [[ -n ${LINUX_PATCH} ]] ; then |
146 |
- pushd "${S_K}" >/dev/null || die |
147 |
- eapply "${WORKDIR}"/${P}.patch |
148 |
- popd || die |
149 |
- fi |
150 |
- |
151 |
- # Drop some upstream too-developer-oriented flags and fix the |
152 |
- # Makefile in general |
153 |
- sed -i \ |
154 |
- -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \ |
155 |
- "${S}"/Makefile.perf || die |
156 |
- # A few places still use -Werror w/out $(WERROR) protection. |
157 |
- sed -i -e 's:-Werror::' \ |
158 |
- "${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die |
159 |
- |
160 |
- # Avoid the call to make kernelversion |
161 |
- echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE |
162 |
- |
163 |
- # The code likes to compile local assembly files which lack ELF markings. |
164 |
- find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} + |
165 |
- |
166 |
- # Fix shebang to use python from prefix |
167 |
- if [[ -n "${EPREFIX}" ]]; then |
168 |
- hprefixify ${S_K}/scripts/bpf_helpers_doc.py |
169 |
- fi |
170 |
-} |
171 |
- |
172 |
-puse() { usex $1 "" no; } |
173 |
-perf_make() { |
174 |
- # The arch parsing is a bit funky. The perf tools package is integrated |
175 |
- # into the kernel, so it wants an ARCH that looks like the kernel arch, |
176 |
- # but it also wants to know about the split value -- i386/x86_64 vs just |
177 |
- # x86. We can get that by telling the func to use an older linux version. |
178 |
- # It's kind of a hack, but not that bad ... |
179 |
- |
180 |
- # LIBDIR sets a search path of perf-gtk.so. Bug 515954 |
181 |
- |
182 |
- local arch=$(tc-arch-kernel) |
183 |
- local java_dir |
184 |
- use java && java_dir="/etc/java-config-2/current-system-vm" |
185 |
- # FIXME: NO_CORESIGHT |
186 |
- # FIXME: NO_LIBBABELTRACE |
187 |
- emake V=1 VF=1 \ |
188 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="$(tc-getLD)" \ |
189 |
- PKG_CONFIG="$(tc-getPKG_CONFIG)" \ |
190 |
- prefix="${EPREFIX}/usr" bindir_relative="bin" \ |
191 |
- EXTRA_CFLAGS="${CFLAGS}" \ |
192 |
- ARCH="${arch}" \ |
193 |
- JDIR="${java_dir}" \ |
194 |
- LIBCLANGLLVM=$(usex clang 1 "") \ |
195 |
- NO_AUXTRACE="" \ |
196 |
- NO_BACKTRACE="" \ |
197 |
- NO_CORESIGHT=1 \ |
198 |
- NO_DEMANGLE=$(puse demangle) \ |
199 |
- NO_GTK2=$(puse gtk) \ |
200 |
- NO_JVMTI=$(puse java) \ |
201 |
- NO_LIBAUDIT=$(puse audit) \ |
202 |
- NO_LIBBABELTRACE=1 \ |
203 |
- NO_LIBBIONIC=1 \ |
204 |
- NO_LIBBPF="" \ |
205 |
- NO_LIBCRYPTO=$(puse crypt) \ |
206 |
- NO_LIBDW_DWARF_UNWIND="" \ |
207 |
- NO_LIBELF="" \ |
208 |
- NO_LIBNUMA=$(puse numa) \ |
209 |
- NO_LIBPERL=$(puse perl) \ |
210 |
- NO_LIBPYTHON=$(puse python) \ |
211 |
- NO_LIBUNWIND=$(puse unwind) \ |
212 |
- NO_SDT=$(puse systemtap) \ |
213 |
- NO_SLANG=$(puse slang) \ |
214 |
- NO_LZMA=$(puse lzma) \ |
215 |
- NO_ZLIB= \ |
216 |
- WERROR=0 \ |
217 |
- LIBDIR="/usr/libexec/perf-core" \ |
218 |
- "$@" |
219 |
-} |
220 |
- |
221 |
-src_compile() { |
222 |
- # test-clang.bin not build with g++ |
223 |
- if use clang; then |
224 |
- pushd "${S_K}/tools/build/feature/" || die |
225 |
- make V=1 CXX=${CHOST}-clang++ test-clang.bin || die |
226 |
- popd |
227 |
- fi |
228 |
- perf_make -f Makefile.perf |
229 |
- use doc && perf_make -C Documentation |
230 |
-} |
231 |
- |
232 |
-src_test() { |
233 |
- : |
234 |
-} |
235 |
- |
236 |
-src_install() { |
237 |
- _install_python_ext() { |
238 |
- perf_make -f Makefile.perf install-python_ext DESTDIR="${D}" |
239 |
- } |
240 |
- |
241 |
- perf_make -f Makefile.perf install DESTDIR="${D}" |
242 |
- if use python; then |
243 |
- python_foreach_impl _install_python_ext |
244 |
- fi |
245 |
- |
246 |
- rm -rv "${ED}"/usr/share/doc/perf-tip || die |
247 |
- |
248 |
- if use gtk; then |
249 |
- mv "${ED}"/usr/$(get_libdir)/libperf-gtk.so \ |
250 |
- "${ED}"/usr/libexec/perf-core || die |
251 |
- fi |
252 |
- |
253 |
- dodoc CREDITS |
254 |
- |
255 |
- dodoc *txt Documentation/*.txt |
256 |
- if use doc ; then |
257 |
- HTML_DOCS="Documentation/*.html" einstalldocs |
258 |
- doman Documentation/*.1 |
259 |
- fi |
260 |
-} |
261 |
- |
262 |
-pkg_postinst() { |
263 |
- if ! use doc ; then |
264 |
- elog "Without the doc USE flag you won't get any documentation nor man pages." |
265 |
- elog "And without man pages, you won't get any --help output for perf and its" |
266 |
- elog "sub-tools." |
267 |
- fi |
268 |
-} |