diff options
author | Naohiro Aota <naota@gentoo.org> | 2013-03-04 08:08:22 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2013-03-04 08:08:22 +0000 |
commit | 29b1bfc6e7d1528dc227142a99f41e8f8a9b201e (patch) | |
tree | 3a83ca04843a3c8d8d82bdb7ebd76c2d345280fa /dev-util/perf | |
parent | dev-tcltk/tcllib: Clean collision fix (diff) | |
download | historical-29b1bfc6e7d1528dc227142a99f41e8f8a9b201e.tar.gz historical-29b1bfc6e7d1528dc227142a99f41e8f8a9b201e.tar.bz2 historical-29b1bfc6e7d1528dc227142a99f41e8f8a9b201e.zip |
Version bump. #460182
Package-Manager: portage-2.1.11.52/cvs/Linux x86_64
Manifest-Sign-Key: 0xF8551514
Diffstat (limited to 'dev-util/perf')
-rw-r--r-- | dev-util/perf/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/perf/Manifest | 24 | ||||
-rw-r--r-- | dev-util/perf/perf-3.8.ebuild | 164 |
3 files changed, 194 insertions, 4 deletions
diff --git a/dev-util/perf/ChangeLog b/dev-util/perf/ChangeLog index d325bb8387b6..d0361eaefd21 100644 --- a/dev-util/perf/ChangeLog +++ b/dev-util/perf/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-util/perf -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.20 2012/06/28 08:23:07 naota Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.21 2013/03/04 08:08:14 naota Exp $ + +*perf-3.8 (04 Mar 2013) + + 04 Mar 2013; Naohiro Aota <naota@gentoo.org> +perf-3.8.ebuild: + Version bump. #460182 *perf-3.4 (28 Jun 2012) @@ -124,4 +129,3 @@ 30 Oct 2009; Diego E. Pettenò <flameeyes@gentoo.org> +perf-2.6.31.ebuild, +metadata.xml: Initial import of the performance counter userland utility. - diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest index 2efc6a767cfa..31afa483344d 100644 --- a/dev-util/perf/Manifest +++ b/dev-util/perf/Manifest @@ -1,6 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + DIST linux-3.2.tar.bz2 78147838 SHA256 c881fc2b53cf0da7ca4538aa44623a7de043a41f76fd5d0f51a31f6ed699d463 SHA512 1f57b98e8da34b10f37ce94e0f13a994c111d483b104c27a8f58a4a55013a73a9f1ffcebb597be63ce0dfadb92201e93b0e072ba49bac0033026aceb0840c812 WHIRLPOOL 3dc893bde09f064e4614183964a4b9feaab938ca7a739f46f825818a577884eae815f195b52a4c55c571345de59d7ba09631fb68dac481a0837b24868ce60e3d DIST linux-3.4.tar.bz2 80173484 SHA256 a797a15d0b6228381507c14ecf4eec4a6cc5c77cfd521ba3b3e1325e85b5b16d SHA512 597002fa82b70b5052f9e05c1d8547bc5f89d8e1aecfd1765f4033f6d2c5c02d51b6372dbeef12c2eb070ae318a04c39925050cb37a39399961c8b263479fca1 WHIRLPOOL 57e6dd7094db2bc41175d7bb551e8237ea96eacf3710a734e8413915c54304e84ca11455e41c7752882ce81048459555d44d1798bf0775b79c3d74b13aa3a9f2 +DIST linux-3.8.tar.bz2 84623657 SHA256 fce774b5313e73949cb35f128e91e7b2ccd7fa2438abc5cff69267e504395a45 SHA512 966a3b08aecc4b135a48ea73ba3326e1710c455e6da29693479e9d1a56663fc10f569e2342fa861486d39d4ea5c2af406d1bd40613c15555acffdba160ef7ba9 WHIRLPOOL a83baa904c78f71fed5e4cf2607b8e6d1db70a4137b5c00b3cc5f60f04042724faa3cfec36a781417d483548ba0c811f559e82146806edacd1c2fe90bd398e64 EBUILD perf-3.2.ebuild 4228 SHA256 6763a106b3c42da98659903996942a73073bcdbea725c1b0c0d2eb6ce873662e SHA512 2e3ce7a1dae8933b360a58adcb8ff7f5e657729c0ffbe6345e296163e9c63738715851786a8469eb8ee14f8bc7d29d8ecd7b679e730a541942b23d503cdb3872 WHIRLPOOL 263b89d4fba11dffb50227be605a58c4d7d97912050949247a9bc85c6ae2b24250acad27ace23ee8ace8495ed49c423f9aa5811471b3bdc061250b3158198724 EBUILD perf-3.4.ebuild 4306 SHA256 24e6468c5e72612bf5348a1226ef49f751369b80ffe4203d36ce9118a900aebf SHA512 4f87cf6a0627983c946c76c4e3f9c099fbb1618fa96905cfdd4b4cf7b01f06815c52d70016d98ce58e375320e6921f429638eaf2a76b32b85fc1a848525341f6 WHIRLPOOL 190a9abe22b1b3065785522c24b0183fdbf7be46b58eb8d12b6a35233a88853be4adf38be064856d508de75b22c3e63909e747dd12ded0a93414f62f9446bb8f -MISC ChangeLog 4060 SHA256 7d9e1ea96b6fbda5c2da9a76a7d73faa248ac6d6e23f0e79ac61da8658e61e9f SHA512 57a65534b2f4de155672fc904e2228fffec6127bf2c8e32a3e536724b7f421985eb8c2a357a112ddcee1dc7c46b6742609ee12d4c5f1822b1461094a62db2213 WHIRLPOOL f23946f81193482f339a04edd77c6352a53bdd9ea269070896b9c63a447c40f4deeddadd4680f0501304617239936343518b3ca844516373d4d62f2ccf887ebb +EBUILD perf-3.8.ebuild 4330 SHA256 321226a2ef01dc92c0ba3649c195f37d214bbdb0ab906cc5e192d0c3ff45466a SHA512 f338c153057a393d86ac0c40ffb22aac3ce4d0aa6a2b0cd51cf66e0c1c9e11115359f5a9008a71a77100ecacb591932c7428a7d83c4c8df8a3bf01a9836db3ea WHIRLPOOL cff71e82d970c5d4f8af749986b6188d3a0881fcbde228f41abe65a2ab633825e25886af58084e5c4eb301608f145eb9473a518e396dc076f0e78f5eb1d9131b +MISC ChangeLog 4174 SHA256 0baa693946a93db3ace034016a6fc3fb6f827a8ee07e09cff260d2d900b574f4 SHA512 2ca8308280ff98c296be2692dabfcd69163d52d5501fff23f569713fa0d73774388bb568d71ffff16934eab5d686d589b5e39219caab0765498cf7ee891036a4 WHIRLPOOL 651316462fac99ae6bf3c986e186a434d5778c4e4051765f05bf8eb7c0a0e0c4da2d3e4ab0f5f2b71087e1a114b685e77eb34508d9df10b0c2c54149831ae686 MISC metadata.xml 891 SHA256 69d162e1557448101186ac1de9fc2b6c9aebbe1571cf859016fe9513cd943d07 SHA512 a883c8ab5a15b618bdc91541662f025e16420ff8668e17f45d23edefd5dc00ba2880a28ac8c8328073bcadd5e4a86c04133e4be2f55afcd7520f78af70bedf5c WHIRLPOOL fd0b88fc3d76d80ab1ca15966d536cccdf6cd218b310a07fc83fbd5fdfe53ca8d7be90adfd9be30f9ae8409605d4d876faf2c58357a998c80a9ccb0aab80ad57 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBCAAGBQJRNFZvAAoJEDYO1FT4VRUUD1EP/06NF6NLr8Bqu9JvtFd8ifgu +ICeK6euBopL5vbucEzgFngyQamDShR+DxmNHn8Vpzzo3iIOY1CGdhSKW7RA2IF+N +h8HV85irJGZK/MaM8NImAgDmmCXqvrJKslrVkWuPQ+ibM1UjVTP8x4QnVTn0r9ZK +5ULccree/esadeuGHrUmuP39Kjm8708XTBCUES7EVSKJ4uqamvOFQdsienyTglS+ +uhHbwMFosQ3/C5rnOFdlP4R+0QwqWzhsmOokLDS2cNFDdq2qKpyACW8pDrcrLXeo +q33fbtN0cb1PbnoyrboA4adylYjeWIYBHD6JH22Xis9m23HTxD6NIN1Y7sQmysfN +0G0xxiOUqWXU3fzNw37vU17cI/YnG2abQyVIPUcHwerBrF7fRgbU9MS08JMGxzmg +/JAF8s50plXryE07DW4ES1jDu3LVlKBeLgg3Q+svZAVkKQ4zGSI6Fw5hq93y7wPl +D2v1PQHyVU3TJjXkQOZYZg1g0zF3yNk3gBMusqHAYDzhZkiwpTcj3G5/+m47kfaC +1YQc1We1MoUhhy3tql1ZWcnfedeX1bAYbMQfQdCBt7ACj8wexhc5uthsfIzo3Pr9 +f93Q0Cd3Y+JvoXo2LMSlviZxiZbhyluS1bISis4K/3Jl+69Vaw/JqrEjsun4MyNn +RJbvU805UdnU8KgFBWwT +=AFWF +-----END PGP SIGNATURE----- diff --git a/dev-util/perf/perf-3.8.ebuild b/dev-util/perf/perf-3.8.ebuild new file mode 100644 index 000000000000..a3ec6da691e6 --- /dev/null +++ b/dev-util/perf/perf-3.8.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.8.ebuild,v 1.1 2013/03/04 08:08:14 naota Exp $ + +EAPI="4" + +PYTHON_DEPEND="python? 2" +inherit versionator eutils toolchain-funcs python linux-info + +MY_PV="${PV/_/-}" +MY_PV="${MY_PV/-pre/-git}" + +DESCRIPTION="Userland tools for Linux Performance Counters" +HOMEPAGE="http://perf.wiki.kernel.org/" + +LINUX_V=$(get_version_component_range 1-2) + +if [[ ${PV/_rc} != ${PV} ]] ; 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//_/-}.bz2 + 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}" +elif [[ $(get_version_component_count) == 4 ]] ; then + # stable-release series + LINUX_VER=$(get_version_component_range 1-3) + LINUX_PATCH=patch-${PV}.bz2 + SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" +else + LINUX_VER=${PV} + SRC_URI="" +fi + +LINUX_SOURCES="linux-${LINUX_VER}.tar.bz2" +SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="+demangle +doc perl python slang" + +RDEPEND="demangle? ( sys-devel/binutils ) + perl? ( || ( >=dev-lang/perl-5.10 sys-devel/libperl ) ) + slang? ( dev-libs/newt ) + dev-libs/elfutils" +DEPEND="${RDEPEND} + ${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 )" + +S_K="${WORKDIR}/linux-${LINUX_VER}" +S="${S_K}/tools/perf" + +CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" + +pkg_setup() { + use python && python_set_active_version 2 +} + +src_unpack() { + local paths=( tools/perf tools/scripts tools/lib include lib "arch/*/include" "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):' \ + -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \ + -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ + -e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \ + "${S}"/Makefile + + # Avoid the call to make kernelversion + echo "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() { + emake V=1 \ + CC="$(tc-getCC)" AR="$(tc-getAR)" \ + prefix="/usr" bindir_relative="sbin" \ + CFLAGS_OPTIMIZE="${CFLAGS}" \ + LDFLAGS_OPTIMIZE="${LDFLAGS}" \ + ARCH="$(tc-arch-kernel)" \ + NO_DEMANGLE=$(puse demangle) \ + NO_LIBPERL=$(puse perl) \ + NO_LIBPYTHON=$(puse python) \ + NO_NEWT=$(puse slang) \ + "$@" +} + +src_compile() { + perf_make + + if use doc ; then + pushd Documentation + emake ${makeargs} + popd + fi +} + +src_test() { + : +} + +src_install() { + perf_make 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 +} |