diff options
author | Naohiro Aota <naota@gentoo.org> | 2014-07-18 02:23:34 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2014-07-18 02:23:34 +0000 |
commit | d77e6c16441815c5fbc8afc804269a1586610211 (patch) | |
tree | 1604c7c318b77f5f9e93d8175e56602a1d42f06a /dev-util | |
parent | alpha stable, bug 516114. (diff) | |
download | gentoo-2-d77e6c16441815c5fbc8afc804269a1586610211.tar.gz gentoo-2-d77e6c16441815c5fbc8afc804269a1586610211.tar.bz2 gentoo-2-d77e6c16441815c5fbc8afc804269a1586610211.zip |
Version bump #506436; Drop old versions; Add python USE requirements #517084
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/perf/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/perf/perf-3.12.ebuild | 7 | ||||
-rw-r--r-- | dev-util/perf/perf-3.13.1-r1.ebuild | 5 | ||||
-rw-r--r-- | dev-util/perf/perf-3.15.5.ebuild (renamed from dev-util/perf/perf-3.13.1.ebuild) | 13 | ||||
-rw-r--r-- | dev-util/perf/perf-3.2.ebuild | 158 | ||||
-rw-r--r-- | dev-util/perf/perf-3.4.ebuild | 164 | ||||
-rw-r--r-- | dev-util/perf/perf-3.8.ebuild | 164 |
7 files changed, 22 insertions, 498 deletions
diff --git a/dev-util/perf/ChangeLog b/dev-util/perf/ChangeLog index d7b26602387b..36ccb074f850 100644 --- a/dev-util/perf/ChangeLog +++ b/dev-util/perf/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/perf # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.30 2014/07/14 16:49:19 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.31 2014/07/18 02:23:34 naota Exp $ + +*perf-3.15.5 (18 Jul 2014) + + 18 Jul 2014; Naohiro Aota <naota@gentoo.org> +perf-3.15.5.ebuild, + -perf-3.13.1.ebuild, -perf-3.2.ebuild, -perf-3.4.ebuild, -perf-3.8.ebuild, + perf-3.12.ebuild, perf-3.13.1-r1.ebuild: + Version bump #506436; Drop old versions; Add python USE requirements #517084 14 Jul 2014; Markos Chandras <hwoarang@gentoo.org> perf-3.8-r1.ebuild: Add ~mips per #517046 diff --git a/dev-util/perf/perf-3.12.ebuild b/dev-util/perf/perf-3.12.ebuild index 82d561672cc8..1f3d789d7e75 100644 --- a/dev-util/perf/perf-3.12.ebuild +++ b/dev-util/perf/perf-3.12.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.12.ebuild,v 1.2 2013/12/11 22:36:19 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.12.ebuild,v 1.3 2014/07/18 02:23:34 naota Exp $ EAPI="5" @@ -37,6 +37,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~x86" IUSE="audit +demangle +doc perl python slang unwind" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="audit? ( sys-process/audit ) demangle? ( sys-devel/binutils ) @@ -63,7 +64,7 @@ CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" pkg_setup() { linux-info_pkg_setup - python-single-r1_pkg_setup + use python && python-single-r1_pkg_setup } src_unpack() { diff --git a/dev-util/perf/perf-3.13.1-r1.ebuild b/dev-util/perf/perf-3.13.1-r1.ebuild index 43e9bd8f2ab2..1803525f84dd 100644 --- a/dev-util/perf/perf-3.13.1-r1.ebuild +++ b/dev-util/perf/perf-3.13.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.13.1-r1.ebuild,v 1.1 2014/03/22 08:05:34 naota Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.13.1-r1.ebuild,v 1.2 2014/07/18 02:23:34 naota Exp $ EAPI="5" @@ -40,6 +40,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~x86" IUSE="audit +demangle +doc gtk perl python slang unwind" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="audit? ( sys-process/audit ) demangle? ( sys-devel/binutils ) @@ -67,7 +68,7 @@ CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" pkg_setup() { linux-info_pkg_setup - python-single-r1_pkg_setup + use python && python-single-r1_pkg_setup } src_unpack() { diff --git a/dev-util/perf/perf-3.13.1.ebuild b/dev-util/perf/perf-3.15.5.ebuild index 84ad3ebf22c9..aff4975f0f15 100644 --- a/dev-util/perf/perf-3.13.1.ebuild +++ b/dev-util/perf/perf-3.15.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.13.1.ebuild,v 1.2 2014/02/26 18:03:50 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.15.5.ebuild,v 1.1 2014/07/18 02:23:34 naota Exp $ EAPI="5" @@ -39,7 +39,8 @@ SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~x86" -IUSE="audit +demangle +doc gtk perl python slang unwind" +IUSE="audit debug +demangle +doc gtk perl python slang unwind" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="audit? ( sys-process/audit ) demangle? ( sys-devel/binutils ) @@ -67,11 +68,11 @@ CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" pkg_setup() { linux-info_pkg_setup - python-single-r1_pkg_setup + use python && python-single-r1_pkg_setup } src_unpack() { - local paths=( tools/perf tools/scripts tools/lib include lib "arch/*/include" "arch/*/lib" ) + local paths=( tools/perf tools/scripts tools/include 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). @@ -114,7 +115,7 @@ src_prepare() { -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ -e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \ "${S}"/Makefile || die - sed -i -e 's:-Werror::' "${S_K}"/tools/lib/lk/Makefile || die + sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die sed -i \ -e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \ "${S}"/Makefile \ @@ -137,7 +138,7 @@ perf_make() { local arch=$(KV=2.6.23 tc-arch-kernel) emake V=1 \ CC="$(tc-getCC)" AR="$(tc-getAR)" \ - prefix="/usr" bindir_relative="sbin" \ + prefix="/usr" bindir_relative="bin" \ CFLAGS_OPTIMIZE="${CFLAGS}" \ LDFLAGS_OPTIMIZE="${LDFLAGS}" \ ARCH="${arch}" \ diff --git a/dev-util/perf/perf-3.2.ebuild b/dev-util/perf/perf-3.2.ebuild deleted file mode 100644 index 6fe2149df6ee..000000000000 --- a/dev-util/perf/perf-3.2.ebuild +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.2.ebuild,v 1.1 2012/02/28 22:21:05 vapier 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} - doc? ( app-text/asciidoc app-text/xmlto )" - -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 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 -} diff --git a/dev-util/perf/perf-3.4.ebuild b/dev-util/perf/perf-3.4.ebuild deleted file mode 100644 index 09d38d213303..000000000000 --- a/dev-util/perf/perf-3.4.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.4.ebuild,v 1.1 2012/06/28 08:23:07 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 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 -} diff --git a/dev-util/perf/perf-3.8.ebuild b/dev-util/perf/perf-3.8.ebuild deleted file mode 100644 index 7ddd2850bed3..000000000000 --- a/dev-util/perf/perf-3.8.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# 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.2 2013/03/21 05:38:48 patrick 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 -j1 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 -} |