1 |
flameeyes 10/02/09 15:50:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: perf-2.6.33_rc7.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.13 dev-util/perf/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?rev=1.13&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?rev=1.13&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?r1=1.12&r2=1.13 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v |
19 |
retrieving revision 1.12 |
20 |
retrieving revision 1.13 |
21 |
diff -u -r1.12 -r1.13 |
22 |
--- ChangeLog 31 Jan 2010 10:27:21 -0000 1.12 |
23 |
+++ ChangeLog 9 Feb 2010 15:50:58 -0000 1.13 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-util/perf |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.12 2010/01/31 10:27:21 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.13 2010/02/09 15:50:58 flameeyes Exp $ |
29 |
+ |
30 |
+*perf-2.6.33_rc7 (09 Feb 2010) |
31 |
+ |
32 |
+ 09 Feb 2010; Diego E. Pettenò <flameeyes@g.o> |
33 |
+ +perf-2.6.33_rc7.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*perf-2.6.33_rc6 (31 Jan 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-util/perf/perf-2.6.33_rc7.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.33_rc7.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.33_rc7.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: perf-2.6.33_rc7.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.33_rc7.ebuild,v 1.1 2010/02/09 15:50:58 flameeyes Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
inherit versionator eutils toolchain-funcs linux-info |
55 |
|
56 |
MY_PV="${PV/_/-}" |
57 |
MY_PV="${MY_PV/-pre/-git}" |
58 |
|
59 |
DESCRIPTION="Userland tools for Linux Performance Counters" |
60 |
HOMEPAGE="http://perf.wiki.kernel.org/" |
61 |
|
62 |
LINUX_V=$(get_version_component_range 1-2) |
63 |
|
64 |
if [ ${PV/_rc} != ${PV} ]; then |
65 |
LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1)) |
66 |
PATCH_VERSION=$(get_version_component_range 1-3) |
67 |
LINUX_PATCH=patch-${PV//_/-}.bz2 |
68 |
SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} |
69 |
mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" |
70 |
else |
71 |
LINUX_VER=${PV} |
72 |
fi |
73 |
|
74 |
LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2 |
75 |
SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" |
76 |
|
77 |
LICENSE="GPL-2" |
78 |
SLOT="0" |
79 |
KEYWORDS="~amd64" |
80 |
IUSE="+demangle +doc perl" |
81 |
|
82 |
RDEPEND="demangle? ( sys-devel/binutils ) |
83 |
perl? ( || ( >=dev-lang/perl-5.10 sys-devel/libperl ) ) |
84 |
dev-libs/elfutils" |
85 |
DEPEND="${RDEPEND} |
86 |
${LINUX_PATCH+dev-util/patchutils} |
87 |
doc? ( app-text/asciidoc app-text/xmlto )" |
88 |
|
89 |
S="${WORKDIR}/linux-${LINUX_VER}/tools/perf" |
90 |
|
91 |
CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" |
92 |
|
93 |
src_unpack() { |
94 |
local _tarpattern= |
95 |
local _filterdiff= |
96 |
for _pattern in {tools/perf,include,lib,"arch/*/include"}; do |
97 |
_tarpattern="${_tarpattern} linux-${LINUX_VER}/${_pattern}" |
98 |
_filterdiff="${_filterdiff} -i ${_pattern}/*" |
99 |
done |
100 |
|
101 |
# We expect the tar implementation to support the -j option (both |
102 |
# GNU tar and libarchive's tar support that). |
103 |
ebegin "Unpacking partial source tarball" |
104 |
tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} ${_tarpattern} |
105 |
eend $? || die "tar failed" |
106 |
|
107 |
ebegin "Filtering partial source patch" |
108 |
filterdiff -p1 ${_filterdiff} -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die |
109 |
eend $? || die "filterdiff failed" |
110 |
|
111 |
MY_A= |
112 |
for _AFILE in ${A}; do |
113 |
[[ ${_AFILE} == ${LINUX_SOURCES} ]] && continue |
114 |
[[ ${_AFILE} == ${LINUX_PATCH} ]] && continue |
115 |
MY_A="${MY_A} ${_AFILE}" |
116 |
done |
117 |
[[ -n ${MY_A} ]] && unpack ${MY_A} |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
if [[ -n ${LINUX_PATCH} ]]; then |
122 |
cd "${WORKDIR}"/linux-"${LINUX_VER}" |
123 |
epatch "${WORKDIR}"/${P}.patch |
124 |
fi |
125 |
|
126 |
# Drop some upstream too-developer-oriented flags and fix the |
127 |
# Makefile in general |
128 |
sed -i \ |
129 |
-e 's:-Werror::' \ |
130 |
-e 's:-ggdb3::' \ |
131 |
-e 's:-fstack-protector-all::' \ |
132 |
-e 's:^LDFLAGS =:EXTLIBS +=:' \ |
133 |
-e '/PERL_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \ |
134 |
-e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \ |
135 |
-e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \ |
136 |
-e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ |
137 |
"${S}"/Makefile |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
local makeargs= |
142 |
|
143 |
use demangle || makeargs="${makeargs} NO_DEMANGLE= " |
144 |
use perl || makeargs="${makeargs} NO_LIBPERL= " |
145 |
|
146 |
emake ${makeargs} \ |
147 |
CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
148 |
prefix="/usr" bindir_relative="sbin" \ |
149 |
CFLAGS_OPTIMIZE="${CFLAGS}" \ |
150 |
LDFLAGS_OPTIMIZE="${LDFLAGS}" || die |
151 |
|
152 |
if use doc; then |
153 |
pushd Documentation |
154 |
emake ${makeargs} || die |
155 |
popd |
156 |
fi |
157 |
} |
158 |
|
159 |
src_test() { |
160 |
: |
161 |
} |
162 |
|
163 |
src_install() { |
164 |
# Don't use make install or it'll be re-building the stuff :( |
165 |
dobin perf || die |
166 |
|
167 |
dodoc CREDITS || die |
168 |
|
169 |
if use doc; then |
170 |
dodoc Documentation/*.txt || die |
171 |
dohtml Documentation/*.html || die |
172 |
doman Documentation/*.1 || die |
173 |
fi |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
if ! use doc; then |
178 |
elog "Without the doc USE flag you won't get any documentation nor man pages." |
179 |
elog "And without man pages, you won't get any --help output for perf and its" |
180 |
elog "sub-tools." |
181 |
fi |
182 |
} |