summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-22 12:21:25 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-22 12:21:25 +0000
commit392594ecfed409e1aa2e8a44b29a6c9e4e467feb (patch)
tree336e8eb60f40b65482b5372b45ff03c5b755e111
parentRespect users CFLAGS (bug #240279) (diff)
downloadhistorical-392594ecfed409e1aa2e8a44b29a6c9e4e467feb.tar.gz
historical-392594ecfed409e1aa2e8a44b29a6c9e4e467feb.tar.bz2
historical-392594ecfed409e1aa2e8a44b29a6c9e4e467feb.zip
Bump to latest rc.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
-rw-r--r--dev-util/perf/ChangeLog10
-rw-r--r--dev-util/perf/Manifest10
-rw-r--r--dev-util/perf/perf-2.6.33_rc5.ebuild131
3 files changed, 145 insertions, 6 deletions
diff --git a/dev-util/perf/ChangeLog b/dev-util/perf/ChangeLog
index 47c1168040e4..d9714f2c04ce 100644
--- a/dev-util/perf/ChangeLog
+++ b/dev-util/perf/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/perf
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.9 2009/12/28 00:47:36 flameeyes Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.10 2010/01/22 12:21:25 flameeyes Exp $
+
+*perf-2.6.33_rc5 (22 Jan 2010)
+
+ 22 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +perf-2.6.33_rc5.ebuild:
+ Bump to latest rc.
*perf-2.6.33_rc2 (28 Dec 2009)
diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 58f1fe3fd32f..3081d5482f74 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -3,14 +3,16 @@ Hash: SHA1
DIST linux-2.6.32.tar.bz2 64424138 RMD160 b93742cbaf8174f2200d2dbef0d47a26c618039c SHA1 410b4fc818023bfef60064e973ff0ab46d3bfb19 SHA256 5099786d80b8407d98a619df00209c2353517f22d804fdd9533b362adcb4504e
DIST patch-2.6.33-rc2.bz2 10045035 RMD160 fa73be81bdf0ec953da4675b53c92fa213e0314b SHA1 b43feb931e8ed1f58ca37616f3d217dafa2e2fa0 SHA256 4471d692061f1e62f83b02ff3af773f3ae62da02cd668a12ed3687703e12546c
+DIST patch-2.6.33-rc5.bz2 10346004 RMD160 9e49740e053878797e4ec5b7652c736461d7bf1e SHA1 4f4ed354317cd172254c3fa21a93f06ed38819c5 SHA256 d92affbaf0216387b33407c1fab70c444f337984b02e6137bf7338fc49d94283
EBUILD perf-2.6.32.ebuild 3487 RMD160 f86f2e8878b280aee1fa0a4ff2eb5f9f00da335d SHA1 f9c016bb6edf5c41aa8418f30aaaf24dab07c566 SHA256 312862ca7008b1a38a3b16b98b7a57f1af89ab4c4892de6c47811f0756081560
EBUILD perf-2.6.33_rc2.ebuild 3446 RMD160 b45b637b382922888a1ed222160c516df6ff9a1c SHA1 1732e44cd739c0d21ca809ddc769ec2878430bcd SHA256 9551f1a0dac9b7fdc7f0d100c1893812a69972cde9e46e820ebd6131b961c689
-MISC ChangeLog 1874 RMD160 29c4615e52a402d07bf7603c00e13b6c427ca88e SHA1 27124e7379794ad03ba3602342af491997ea9dab SHA256 619456b1a145a62b1c97180e2afb06fd8adbbe8b1f25702d36564ee35077d32a
+EBUILD perf-2.6.33_rc5.ebuild 3446 RMD160 32fdbf485761f6a05d4e685e1fd1cb743b3c0538 SHA1 1632b78cb3f4f0780c6820df642918aef713fafa SHA256 dfae9f8965b72f0057fea59f5e858eb79eaca9ac500079bff9c47a8c8218c737
+MISC ChangeLog 2012 RMD160 547b71d660f9acd45545aaa2a626969e4f7a7d90 SHA1 79aecab27a1ce0349b63da168b383c1f24e4f1bb SHA256 3e73a1a55450896878f9bb7fb618f2d8e1de8cd8b23bda1f761dfdde9f78cdd6
MISC metadata.xml 817 RMD160 333bacd0646c4aa7c16cc1209cd9032f5e7b2fed SHA1 c2bb6e9042768acd4a396f1d878ff3f29f389740 SHA256 77b02a80478445f267b4fd90809cebc2cb1fa7f2b4c8b31986b0bac9e0ec2b1d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAks4ADoACgkQAiZjviIA2XhSogCeM3Btz1ZI2cLsrfn9tUURitsM
-7pIAn1IjCQCWrJqWGig7XEnPeMN+mqOL
-=2A+S
+iEYEARECAAYFAktZl6oACgkQAiZjviIA2XghrwCgiRSU9pUnPX7hsqEqld+GAp2M
+leoAn383GL+C2MbV0Mu/4lARCSIe4RMM
+=VrVl
-----END PGP SIGNATURE-----
diff --git a/dev-util/perf/perf-2.6.33_rc5.ebuild b/dev-util/perf/perf-2.6.33_rc5.ebuild
new file mode 100644
index 000000000000..c3a9133305a6
--- /dev/null
+++ b/dev-util/perf/perf-2.6.33_rc5.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.33_rc5.ebuild,v 1.1 2010/01/22 12:21:25 flameeyes Exp $
+
+EAPI=2
+
+inherit versionator eutils toolchain-funcs 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}"
+else
+ LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2
+SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+demangle +doc"
+
+RDEPEND="demangle? ( sys-devel/binutils )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ ${LINUX_PATH+dev-util/patchutils}
+ doc? ( app-text/asciidoc app-text/xmlto )"
+
+S="${WORKDIR}/linux-${LINUX_VER}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+src_unpack() {
+ local _tarpattern=
+ local _filterdiff=
+ for _pattern in {tools/perf,include,lib,"arch/*/include"}; do
+ _tarpattern="${_tarpattern} linux-${LINUX_VER}/${_pattern}"
+ _filterdiff="${_filterdiff} -i ${_pattern}/*"
+ done
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ ebegin "Unpacking partial source tarball"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} ${_tarpattern}
+ eend $? || die "tar failed"
+
+ ebegin "Filtering partial source patch"
+ filterdiff ${_filterdiff} -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+
+ MY_A=
+ for _AFILE in ${A}; do
+ [[ ${_AFILE} == ${LINUX_SOURCES} ]] && continue
+ [[ ${_AFILE} == ${LINUX_PATCH} ]] && continue
+ MY_A="${MY_A} ${_AFILE}"
+ done
+ [[ -n ${MY_A} ]] && unpack ${MY_A}
+}
+
+src_prepare() {
+ # 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 '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+ -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \
+ -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \
+ "${S}"/Makefile
+
+ if [[ -n ${LINUX_PATCH} ]]; then
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+}
+
+src_compile() {
+ local makeargs=
+
+ use demangle || makeargs="${makeargs} NO_DEMANGLE= "
+
+ emake ${makeargs} \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \
+ prefix="/usr" bindir_relative="sbin" \
+ CFLAGS_OPTIMIZE="${CFLAGS}" \
+ LDFLAGS_OPTIMIZE="${LDFLAGS}" || die
+
+ if use doc; then
+ pushd Documentation
+ emake ${makeargs} || die
+ popd
+ fi
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ # Don't use make install or it'll be re-building the stuff :(
+ dobin perf || die
+
+ dodoc CREDITS || die
+
+ if use doc; then
+ dodoc Documentation/*.txt || die
+ dohtml Documentation/*.html || die
+ doman Documentation/*.1 || die
+ 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
+}