public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Naohiro Aota" <naota@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/
Date: Tue,  8 Mar 2016 13:10:43 +0000 (UTC)	[thread overview]
Message-ID: <1457442627.bcbb2f4be62e7026e728494e0321312743e99176.naota@gentoo> (raw)

commit:     bcbb2f4be62e7026e728494e0321312743e99176
Author:     Naohiro Aota <naota <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  8 13:08:50 2016 +0000
Commit:     Naohiro Aota <naota <AT> gentoo <DOT> org>
CommitDate: Tue Mar  8 13:10:27 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcbb2f4b

dev-util/perf: version bump #559786

Package-Manager: portage-2.2.27

 dev-util/perf/Manifest          |   2 +
 dev-util/perf/perf-4.4.4.ebuild | 185 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 14b853b..e756632 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -3,6 +3,8 @@ DIST linux-3.13.tar.xz 77187032 SHA256 4d5e5eee5f276424c32e9591f1b6c971baedc7b49
 DIST linux-3.15.tar.xz 79676484 SHA256 c3927e87be4040fa8aca1b58663dc0776aaf00485604ff88a623be2f3fb07794 SHA512 d5dc477cad4584e56e2e2ef9e0950c2b22e76e5cf5090a896ba099cb7c5e5db1853a4aeb96b199189653dc66d461557e95198e37516a619f7ddc01ba6b308e02 WHIRLPOOL 7f3dfde1a23aab75b7f40770ae2ca77c1b28f845e4abe6296b2aec9b56fe94f7afa76b00eb6cc7475305c31b726ebeb4643107dd48c12ac04c933cf1856b8e77
 DIST linux-3.8.tar.bz2 84623657 SHA256 fce774b5313e73949cb35f128e91e7b2ccd7fa2438abc5cff69267e504395a45 SHA512 966a3b08aecc4b135a48ea73ba3326e1710c455e6da29693479e9d1a56663fc10f569e2342fa861486d39d4ea5c2af406d1bd40613c15555acffdba160ef7ba9 WHIRLPOOL a83baa904c78f71fed5e4cf2607b8e6d1db70a4137b5c00b3cc5f60f04042724faa3cfec36a781417d483548ba0c811f559e82146806edacd1c2fe90bd398e64
 DIST linux-4.1.tar.xz 83017828 SHA256 caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f SHA512 168ef84a4e67619f9f53f3574e438542a5747f9b43443363cb83597fcdac9f40d201625c66e375a23226745eaada9176eb006ca023613cec089349e91751f3c0 WHIRLPOOL 85fcfdb67ea7f865272a85d3b4c3ec1f5a1267f4664bf073c562bb3875e9d96ad68486259d8866a9aced98c95de16840ec531d89745aec75b7315a64ebe650b8
+DIST linux-4.4.tar.xz 87295988 SHA256 401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 SHA512 13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e WHIRLPOOL 02abc203d867404b9934aaa4c1e5b5dcbb0b0021e91a03f3a7e7fd224eed106821d8b4949f32a590536db150e5a88c16fcde88538777a26d0c17900f0257b1bc
 DIST patch-3.13.1.xz 2884 SHA256 74a093b2cacddac0a105e0989b7bf0e9829b9923e2d71ca10382e90324a17e74 SHA512 164235a15e6a984e9aeaf9fe475a8b2975d5e4c4b28dd4ecf99064b0f0c72eea766d925340f1a7232cabcbd23d26773527c300b6d995bf5cde18a276208fdccc WHIRLPOOL 0ea0118960970b7d6465445252e7a21a6aeb494c0afefec5f52a68c0b7e0d63fd2ed59a3877fbe9ebd282ac03812235b021534866efa8f46d549b6f70228e4b6
 DIST patch-3.15.5.xz 122232 SHA256 9b0d000e0bdec7a25ee6303afdab8d2af77439995876eadd6ce248e5c954037d SHA512 6831200503334e839c3cccdad29058aecc0205171cc5b75205d0a2aada8636633889ebff35d9677d4567bbaeea249efc83571e016104cd67554fe72b3b405755 WHIRLPOOL 56e1e817c08b4557e18b34d148d8ffd0f73bf8dec92f2339ca9413ca2143b65ec35f6d48c87e37f140226e57d7df33f06d6c53a48dafa7ddf090a839fdabe024
 DIST patch-4.1.5.xz 170056 SHA256 b495cf8a7b978986dd2b757b687751c62f635d15cc2228edb80934bc0d449dcc SHA512 1325cdb35ea1f277d513932af37804f788b96ae63b94cedeb3c9b916ee8963bbd6aca5d0e13279e36a81f1de06005c5f3666ecfc845609932686f261fa4250c5 WHIRLPOOL 291ddfcde395c3d201a8172f7281ac560167a8bce78d3196b47e4c7be759545282cc1104fc7b2edc95d90250a834cc23103199275bc8c6974bd4229dd530d1a3
+DIST patch-4.4.4.xz 200972 SHA256 9061d8f57cc25d760387c4e6b7d5cceacaa808e8784a3e478012e7c2949853c8 SHA512 c206af7803cb0915fbe2bd27ed33282452db3fbd3070c73e4c7147443efd3c7588fb3be12d0abc08742381fbe892190602b29147684630aa9e6ff5e9efa49dbc WHIRLPOOL e6a004e32eecca1507354f97d3de85a07c1b9512fe3d4d87173e6d39c02ef1c2411abd0c26b6a077cd5eaefde11dd201445f72b9a0cf185e76635bdcc36df8dd

diff --git a/dev-util/perf/perf-4.4.4.ebuild b/dev-util/perf/perf-4.4.4.ebuild
new file mode 100644
index 0000000..18dd89e
--- /dev/null
+++ b/dev-util/perf/perf-4.4.4.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+	LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+	PATCH_VERSION=$(get_version_component_range 1-3)
+	LINUX_PATCH=patch-${PV//_/-}.xz
+	SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+		mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+else
+	VER_COUNT=$(get_version_component_count)
+	if [[ ${VER_COUNT} -gt 2 ]] ; then
+		# stable-release series
+		LINUX_VER=$(get_version_component_range 1-2)
+		LINUX_PATCH=patch-${PV}.xz
+		SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+	else
+		LINUX_VER=${PV}
+		SRC_URI=""
+	fi
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="audit debug +demangle +doc gtk numa perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+	demangle? ( sys-devel/binutils:= )
+	gtk? ( x11-libs/gtk+:2 )
+	numa? ( sys-process/numactl )
+	perl? ( dev-lang/perl )
+	slang? ( dev-libs/newt )
+	unwind? ( sys-libs/libunwind )
+	dev-libs/elfutils"
+DEPEND="${RDEPEND}
+	>=sys-kernel/linux-headers-4.4
+	${LINUX_PATCH+dev-util/patchutils}
+	sys-devel/bison
+	sys-devel/flex
+	doc? (
+		app-text/asciidoc
+		app-text/sgml-common
+		app-text/xmlto
+		sys-process/time
+	)
+	python? ( ${PYTHON_DEPS} )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+	linux-info_pkg_setup
+	use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+	local paths=(
+		tools/arch tools/build tools/include tools/lib tools/perf tools/scripts
+		include lib "arch/*/lib"
+	)
+
+	# We expect the tar implementation to support the -j option (both
+	# GNU tar and libarchive's tar support that).
+	echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+	tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+		"${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+	if [[ -n ${LINUX_PATCH} ]] ; then
+		eshopts_push -o noglob
+		ebegin "Filtering partial source patch"
+		filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \
+			> ${P}.patch || die
+		eend $? || die "filterdiff failed"
+		eshopts_pop
+	fi
+
+	local a
+	for a in ${A}; do
+		[[ ${a} == ${LINUX_SOURCES} ]] && continue
+		[[ ${a} == ${LINUX_PATCH} ]] && continue
+		unpack ${a}
+	done
+}
+
+src_prepare() {
+	if [[ -n ${LINUX_PATCH} ]] ; then
+		cd "${S_K}"
+		epatch "${WORKDIR}"/${P}.patch
+	fi
+
+	# Drop some upstream too-developer-oriented flags and fix the
+	# Makefile in general
+	sed -i \
+		-e 's:-Werror::' \
+		-e 's:-ggdb3::' \
+		-e 's:-fstack-protector-all::' \
+		-e 's:^LDFLAGS =:EXTLIBS +=:' \
+		-e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \
+		-e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+		"${S}"/config/Makefile || die
+	sed -i \
+		-e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \
+		"${S}"/Makefile.perf || die
+	sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die
+
+	# Avoid the call to make kernelversion
+	echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+	# The code likes to compile local assembly files which lack ELF markings.
+	find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+	# The arch parsing is a bit funky.  The perf tools package is integrated
+	# into the kernel, so it wants an ARCH that looks like the kernel arch,
+	# but it also wants to know about the split value -- i386/x86_64 vs just
+	# x86.  We can get that by telling the func to use an older linux version.
+	# It's kind of a hack, but not that bad ...
+	local arch=$(tc-arch-kernel)
+	emake V=1 \
+		CC="$(tc-getCC)" AR="$(tc-getAR)" LD="$(tc-getLD)" \
+		prefix="/usr" bindir_relative="bin" \
+		EXTRA_CFLAGS="${CFLAGS}" \
+		ARCH="${arch}" \
+		NO_DEMANGLE=$(puse demangle) \
+		NO_GTK2=$(puse gtk) \
+		NO_LIBAUDIT=$(puse audit) \
+		NO_LIBPERL=$(puse perl) \
+		NO_LIBPYTHON=$(puse python) \
+		NO_LIBUNWIND=$(puse unwind) \
+		NO_NEWT=$(puse slang) \
+		NO_LIBNUMA=$(puse numa) \
+		WERROR=0 \
+		"$@"
+}
+
+src_compile() {
+	perf_make -f Makefile.perf
+	use doc && perf_make -C Documentation
+}
+
+src_test() {
+	:
+}
+
+src_install() {
+	perf_make -f Makefile.perf install DESTDIR="${D}"
+
+	dodoc CREDITS
+
+	dodoc *txt Documentation/*.txt
+	if use doc ; then
+		dohtml Documentation/*.html
+		doman Documentation/*.1
+	fi
+}
+
+pkg_postinst() {
+	if ! use doc ; then
+		elog "Without the doc USE flag you won't get any documentation nor man pages."
+		elog "And without man pages, you won't get any --help output for perf and its"
+		elog "sub-tools."
+	fi
+}


             reply	other threads:[~2016-03-08 13:10 UTC|newest]

Thread overview: 149+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08 13:10 Naohiro Aota [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-18 14:33 [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/ Guilherme Amadio
2024-11-21 21:08 Arthur Zamarin
2024-11-21 13:47 Jakov Smolić
2024-11-19 13:24 Sam James
2024-11-19 12:06 Sam James
2024-11-19 12:06 Sam James
2024-11-19 10:49 Guilherme Amadio
2024-11-19 10:49 Guilherme Amadio
2024-08-25 12:04 Andreas K. Hüttel
2024-08-23 14:48 Sam James
2024-08-12 11:20 Guilherme Amadio
2024-08-06 12:09 Guilherme Amadio
2024-08-06 10:16 Guilherme Amadio
2024-08-06 10:16 Guilherme Amadio
2024-06-17 15:32 Guilherme Amadio
2024-05-31 11:50 Guilherme Amadio
2024-05-30 14:50 Guilherme Amadio
2024-05-24 15:38 Guilherme Amadio
2024-03-13  4:48 Sam James
2024-03-10 23:21 Jakov Smolić
2024-03-10 22:54 Guilherme Amadio
2024-03-10 22:54 Guilherme Amadio
2024-03-10 22:54 Guilherme Amadio
2024-03-10 20:00 Arthur Zamarin
2024-03-10 20:00 Arthur Zamarin
2024-03-10 19:52 Arthur Zamarin
2024-03-10 19:52 Arthur Zamarin
2024-01-30 14:36 Yixun Lan
2024-01-05  5:30 Sam James
2023-12-30  1:26 Ionen Wolkens
2023-12-28  2:57 Sam James
2023-10-30  9:25 Guilherme Amadio
2023-10-30  9:25 Guilherme Amadio
2023-10-30  9:25 Guilherme Amadio
2023-09-12 19:22 Guilherme Amadio
2023-07-11 11:03 WANG Xuerui
2023-07-10 15:34 Matt Turner
2023-07-06 16:12 Guilherme Amadio
2023-07-06 15:49 Guilherme Amadio
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-28 17:33 Matt Turner
2023-06-24  3:22 Sam James
2023-06-24  3:22 Sam James
2023-06-24  3:22 Sam James
2023-06-24  3:22 Sam James
2023-06-24  3:22 Sam James
2023-06-24  3:22 Sam James
2023-06-13 11:41 Sam James
2023-05-17 12:41 Yixun Lan
2023-04-11  2:44 Sam James
2023-03-02  9:40 Guilherme Amadio
2023-02-28  8:10 Guilherme Amadio
2023-02-23 20:29 Sam James
2023-02-13 20:09 Guilherme Amadio
2023-01-13 15:27 Naohiro Aota
2022-11-17  1:06 Sam James
2022-11-16 12:41 Sam James
2022-11-16 12:41 Sam James
2022-11-16  8:56 Arthur Zamarin
2022-11-16  8:52 Arthur Zamarin
2022-11-16  8:52 Arthur Zamarin
2022-09-05  1:14 Sam James
2022-09-05  0:43 Sam James
2022-06-16  9:34 Guilherme Amadio
2022-05-31 15:36 Guilherme Amadio
2022-05-31 15:36 Guilherme Amadio
2022-04-07 13:34 Guilherme Amadio
2022-04-07 10:14 Guilherme Amadio
2022-04-07 10:14 Guilherme Amadio
2022-01-03  9:19 Sam James
2022-01-02  9:59 Sam James
2022-01-02  5:52 Sam James
2022-01-01 15:15 Arthur Zamarin
2022-01-01 15:15 Arthur Zamarin
2022-01-01 15:15 Arthur Zamarin
2021-11-11  8:56 Guilherme Amadio
2021-11-10 15:14 Guilherme Amadio
2021-11-10 12:31 Guilherme Amadio
2021-11-10 12:31 Guilherme Amadio
2021-11-10 12:31 Guilherme Amadio
2021-09-13 17:48 Jakov Smolić
2021-08-05  2:17 Yixun Lan
2021-05-27  6:58 Mikle Kolyada
2021-05-22 18:55 Mikle Kolyada
2021-05-01  8:07 Sergei Trofimovich
2021-04-30  9:42 Guilherme Amadio
2021-04-30  9:12 Guilherme Amadio
2021-04-30  9:12 Guilherme Amadio
2021-04-30  9:12 Guilherme Amadio
2021-04-24  8:07 Sergei Trofimovich
2021-03-03 10:24 Guilherme Amadio
2021-02-17  9:37 David Seifert
2021-02-15 14:58 Yixun Lan
2021-02-06 21:33 Sam James
2020-12-18 10:14 Sergei Trofimovich
2020-11-19 16:10 Guilherme Amadio
2020-11-19 15:36 Guilherme Amadio
2020-11-19 15:36 Guilherme Amadio
2020-10-28 20:27 Georgy Yakovlev
2020-10-26  3:29 Georgy Yakovlev
2020-09-19  8:50 Michał Górny
2020-08-26  2:41 Yixun Lan
2020-08-26  2:41 Yixun Lan
2020-06-12 23:03 Sergei Trofimovich
2020-06-03 10:18 Guilherme Amadio
2020-05-26  0:47 Yixun Lan
2020-05-22 13:06 Guilherme Amadio
2020-05-17 17:39 Mike Frysinger
2020-05-07 15:08 Michał Górny
2020-05-06  8:26 Guilherme Amadio
2020-05-06  8:26 Guilherme Amadio
2020-05-06  8:26 Guilherme Amadio
2020-04-24 20:50 Guilherme Amadio
2020-04-17 15:05 Yixun Lan
2020-04-17 15:05 Yixun Lan
2020-02-15 16:05 Yixun Lan
2020-02-12 21:04 David Seifert
2020-01-05 22:17 Sven Wegener
2020-01-04 21:41 Naohiro Aota
2019-12-29 23:31 Mike Gilbert
2019-11-08 13:47 Andreas K. Hüttel
2019-10-20  1:06 Yixun Lan
2019-10-20  1:06 Yixun Lan
2019-08-07 14:51 Guilherme Amadio
2019-01-18 21:38 Naohiro Aota
2018-10-15  2:26 Naohiro Aota
2018-09-04 13:04 Luca Barbato
2018-06-04 19:25 Mart Raudsepp
2018-04-23 14:50 Aaron Bauman
2018-04-20 13:47 Yixun Lan
2018-03-26  4:05 Matt Turner
2018-03-17 17:11 Matt Turner
2018-01-11  1:34 Mike Frysinger
2017-11-26 11:39 David Seifert
2017-06-02  0:18 Jason Donenfeld
2017-05-24 14:51 Guilherme Amadio
2017-04-20 20:48 David Seifert
2017-02-28  6:35 Yixun Lan
2017-02-28  6:35 Yixun Lan
2016-11-09 14:04 Pacho Ramos
2015-08-14 15:23 Naohiro Aota

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1457442627.bcbb2f4be62e7026e728494e0321312743e99176.naota@gentoo \
    --to=naota@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox