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