1 |
idella4 13/01/30 14:12:30 |
2 |
|
3 |
Modified: xen-pvgrub-4.2.1.ebuild xen-pvgrub-4.2.0.ebuild |
4 |
ChangeLog |
5 |
Added: xen-pvgrub-4.2.1-r1.ebuild |
6 |
xen-pvgrub-4.2.0-r1.ebuild |
7 |
Log: |
8 |
revbump; -4.2.0-r1, python eclass added to enable & ensure a py2 build wrt Bug 53930, xen-4-fix_dotconfig-gcc.patch, xen-4.2.0-externals.patch upgraded 1 sec. patch added, -4.2.1-r1 mirrors changes of -4.2.0-r1, -j1 workaround fixed in -jserver.patch also in -4.2.0. |
9 |
|
10 |
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
11 |
|
12 |
Revision Changes Path |
13 |
1.2 app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild?rev=1.2&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild?rev=1.2&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild?r1=1.1&r2=1.2 |
18 |
|
19 |
Index: xen-pvgrub-4.2.1.ebuild |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild,v |
22 |
retrieving revision 1.1 |
23 |
retrieving revision 1.2 |
24 |
diff -u -r1.1 -r1.2 |
25 |
--- xen-pvgrub-4.2.1.ebuild 28 Jan 2013 05:29:05 -0000 1.1 |
26 |
+++ xen-pvgrub-4.2.1.ebuild 30 Jan 2013 14:12:30 -0000 1.2 |
27 |
@@ -1,6 +1,6 @@ |
28 |
# Copyright 1999-2013 Gentoo Foundation |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild,v 1.1 2013/01/28 05:29:05 idella4 Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild,v 1.2 2013/01/30 14:12:30 idella4 Exp $ |
32 |
|
33 |
EAPI="4" |
34 |
|
35 |
@@ -29,7 +29,7 @@ |
36 |
DEPEND="sys-devel/gettext |
37 |
sys-devel/gcc" |
38 |
|
39 |
-RDEPEND="=app-emulation/xen-${PV}" |
40 |
+RDEPEND=">=app-emulation/xen-4.2.1" |
41 |
|
42 |
src_prepare() { |
43 |
|
44 |
@@ -67,6 +67,9 @@ |
45 |
|
46 |
# Drop .config and Fix gcc-4.6 |
47 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
48 |
+ |
49 |
+ # fix jobserver in Makefile |
50 |
+ epatch "${FILESDIR}"/${PN/-pvgrub/}-4.2.0-jserver.patch |
51 |
} |
52 |
|
53 |
src_compile() { |
54 |
@@ -79,14 +82,14 @@ |
55 |
|
56 |
# TODO; fix those -j1 |
57 |
if use x86; then |
58 |
- emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
59 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
60 |
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
61 |
elif use amd64; then |
62 |
- emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
63 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
64 |
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
65 |
if use multilib; then |
66 |
multilib_toolchain_setup x86 |
67 |
- emake -j1 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
68 |
+ emake XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
69 |
fi |
70 |
fi |
71 |
} |
72 |
|
73 |
|
74 |
|
75 |
1.2 app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild |
76 |
|
77 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild?rev=1.2&view=markup |
78 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild?rev=1.2&content-type=text/plain |
79 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild?r1=1.1&r2=1.2 |
80 |
|
81 |
Index: xen-pvgrub-4.2.0.ebuild |
82 |
=================================================================== |
83 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild,v |
84 |
retrieving revision 1.1 |
85 |
retrieving revision 1.2 |
86 |
diff -u -r1.1 -r1.2 |
87 |
--- xen-pvgrub-4.2.0.ebuild 4 Dec 2012 16:31:20 -0000 1.1 |
88 |
+++ xen-pvgrub-4.2.0.ebuild 30 Jan 2013 14:12:30 -0000 1.2 |
89 |
@@ -1,8 +1,8 @@ |
90 |
-# Copyright 1999-2012 Gentoo Foundation |
91 |
+# Copyright 1999-2013 Gentoo Foundation |
92 |
# Distributed under the terms of the GNU General Public License v2 |
93 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild,v 1.1 2012/12/04 16:31:20 idella4 Exp $ |
94 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0.ebuild,v 1.2 2013/01/30 14:12:30 idella4 Exp $ |
95 |
|
96 |
-EAPI="4" |
97 |
+EAPI=4 |
98 |
|
99 |
inherit flag-o-matic eutils multilib toolchain-funcs |
100 |
|
101 |
@@ -29,7 +29,7 @@ |
102 |
DEPEND="sys-devel/gettext |
103 |
sys-devel/gcc" |
104 |
|
105 |
-RDEPEND="=app-emulation/xen-${PV}" |
106 |
+RDEPEND=">=app-emulation/xen-4.2.0" |
107 |
|
108 |
src_prepare() { |
109 |
|
110 |
|
111 |
|
112 |
|
113 |
1.16 app-emulation/xen-pvgrub/ChangeLog |
114 |
|
115 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.16&view=markup |
116 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.16&content-type=text/plain |
117 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?r1=1.15&r2=1.16 |
118 |
|
119 |
Index: ChangeLog |
120 |
=================================================================== |
121 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v |
122 |
retrieving revision 1.15 |
123 |
retrieving revision 1.16 |
124 |
diff -u -r1.15 -r1.16 |
125 |
--- ChangeLog 28 Jan 2013 05:29:05 -0000 1.15 |
126 |
+++ ChangeLog 30 Jan 2013 14:12:30 -0000 1.16 |
127 |
@@ -1,6 +1,20 @@ |
128 |
# ChangeLog for app-emulation/xen-pvgrub |
129 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
130 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.15 2013/01/28 05:29:05 idella4 Exp $ |
131 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.16 2013/01/30 14:12:30 idella4 Exp $ |
132 |
+ |
133 |
+*xen-pvgrub-4.2.0-r1 (30 Jan 2013) |
134 |
+*xen-pvgrub-4.2.1-r1 (30 Jan 2013) |
135 |
+ |
136 |
+ 30 Jan 2013; Ian Delaney <idella4@g.o> |
137 |
+ +files/xen-4-CVE-2012-4544-XSA-25.patch, |
138 |
+ +files/xen-4-CVE-2012-6075-XSA-41.patch, +files/xen-4.2.0-jserver.patch, |
139 |
+ +xen-pvgrub-4.2.0-r1.ebuild, +xen-pvgrub-4.2.1-r1.ebuild, |
140 |
+ files/xen-4-fix_dotconfig-gcc.patch, files/xen-4.2.0-externals.patch, |
141 |
+ xen-pvgrub-4.2.0.ebuild, xen-pvgrub-4.2.1.ebuild: |
142 |
+ revbump; -4.2.0-r1, python eclass added to enable & ensure a py2 build wrt Bug |
143 |
+ 53930, xen-4-fix_dotconfig-gcc.patch, xen-4.2.0-externals.patch upgraded 1 |
144 |
+ sec. patch added, -4.2.1-r1 mirrors changes of -4.2.0-r1, -j1 workaround fixed |
145 |
+ in -jserver.patch also in -4.2.0. |
146 |
|
147 |
*xen-pvgrub-4.2.1 (28 Jan 2013) |
148 |
|
149 |
|
150 |
|
151 |
|
152 |
1.1 app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild |
153 |
|
154 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild?rev=1.1&view=markup |
155 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild?rev=1.1&content-type=text/plain |
156 |
|
157 |
Index: xen-pvgrub-4.2.1-r1.ebuild |
158 |
=================================================================== |
159 |
# Copyright 1999-2013 Gentoo Foundation |
160 |
# Distributed under the terms of the GNU General Public License v2 |
161 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild,v 1.1 2013/01/30 14:12:30 idella4 Exp $ |
162 |
|
163 |
EAPI=4 |
164 |
PYTHON_DEPEND="2:2.6" |
165 |
|
166 |
inherit flag-o-matic eutils multilib python toolchain-funcs |
167 |
|
168 |
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
169 |
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
170 |
GRUB_URL=mirror://gnu-alpha/grub |
171 |
SRC_URI=" |
172 |
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
173 |
$GRUB_URL/grub-0.97.tar.gz |
174 |
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
175 |
$LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
176 |
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
177 |
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz" |
178 |
|
179 |
S="${WORKDIR}/xen-${PV}" |
180 |
|
181 |
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" |
182 |
HOMEPAGE="http://xen.org/" |
183 |
LICENSE="GPL-2" |
184 |
SLOT="0" |
185 |
KEYWORDS="~amd64 ~x86" |
186 |
IUSE="custom-cflags" |
187 |
|
188 |
DEPEND="sys-devel/gettext" |
189 |
|
190 |
RDEPEND=">=app-emulation/xen-4.2.1" |
191 |
|
192 |
pkg_setup() { |
193 |
python_set_active_version 2 |
194 |
python_pkg_setup |
195 |
} |
196 |
|
197 |
src_prepare() { |
198 |
|
199 |
# if the user *really* wants to use their own custom-cflags, let them |
200 |
if use custom-cflags; then |
201 |
einfo "User wants their own CFLAGS - removing defaults" |
202 |
# try and remove all the default custom-cflags |
203 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
204 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
205 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
206 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
207 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
208 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
209 |
-i {} \; |
210 |
fi |
211 |
|
212 |
#Substitute for internal downloading |
213 |
cp $DISTDIR/zlib-1.2.3.tar.gz \ |
214 |
$DISTDIR/pciutils-2.2.9.tar.bz2 \ |
215 |
$DISTDIR/lwip-1.3.0.tar.gz \ |
216 |
$DISTDIR/newlib-1.16.0.tar.gz \ |
217 |
$DISTDIR/grub-0.97.tar.gz \ |
218 |
./stubdom/ || die "files not coped to stubdom" |
219 |
# Note: tip to patch grub gentoo style, for review soon. This is around 1/3. |
220 |
# cp "${WORKDIR}"/patch/{00[3-6]_all_grub*,010_all_grub*,01[3-9]_all_grub*,0[6-7]0_all_grub*} \ |
221 |
# "${WORKDIR}"/patch/{110_all_grub*,300_all_grub*} \ |
222 |
# stubdom/grub.patches/ || die |
223 |
einfo "files copied to stubdom" |
224 |
|
225 |
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues |
226 |
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die |
227 |
|
228 |
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading |
229 |
epatch "${FILESDIR}"/${P/-pvgrub/}-externals.patch |
230 |
|
231 |
# Drop .config and Fix gcc-4.6 |
232 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
233 |
|
234 |
# fix jobserver in Makefile |
235 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4.2.0-jserver.patch |
236 |
|
237 |
#Sec patch |
238 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-CVE-2012-6075-XSA-41.patch |
239 |
} |
240 |
|
241 |
src_compile() { |
242 |
use custom-cflags || unset CFLAGS |
243 |
if test-flag-CC -fno-strict-overflow; then |
244 |
append-flags -fno-strict-overflow |
245 |
fi |
246 |
|
247 |
emake CC="$(tc-getCC)" LD="$(tc-getLD)" -C tools/include |
248 |
|
249 |
if use x86; then |
250 |
emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
251 |
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
252 |
elif use amd64; then |
253 |
emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
254 |
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
255 |
if use multilib; then |
256 |
multilib_toolchain_setup x86 |
257 |
emake XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
258 |
fi |
259 |
fi |
260 |
} |
261 |
|
262 |
src_install() { |
263 |
if use x86; then |
264 |
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
265 |
fi |
266 |
if use amd64; then |
267 |
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
268 |
if use multilib; then |
269 |
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
270 |
fi |
271 |
fi |
272 |
} |
273 |
|
274 |
pkg_postinst() { |
275 |
elog "Official Xen Guide and the unoffical wiki page:" |
276 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
277 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
278 |
} |
279 |
|
280 |
|
281 |
|
282 |
1.1 app-emulation/xen-pvgrub/xen-pvgrub-4.2.0-r1.ebuild |
283 |
|
284 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0-r1.ebuild?rev=1.1&view=markup |
285 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0-r1.ebuild?rev=1.1&content-type=text/plain |
286 |
|
287 |
Index: xen-pvgrub-4.2.0-r1.ebuild |
288 |
=================================================================== |
289 |
# Copyright 1999-2013 Gentoo Foundation |
290 |
# Distributed under the terms of the GNU General Public License v2 |
291 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.0-r1.ebuild,v 1.1 2013/01/30 14:12:30 idella4 Exp $ |
292 |
|
293 |
EAPI=4 |
294 |
PYTHON_DEPEND="2:2.6" |
295 |
|
296 |
inherit flag-o-matic eutils multilib python toolchain-funcs |
297 |
|
298 |
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
299 |
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
300 |
GRUB_URL=mirror://gnu-alpha/grub |
301 |
SRC_URI=" |
302 |
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
303 |
$GRUB_URL/grub-0.97.tar.gz |
304 |
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
305 |
$LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
306 |
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
307 |
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz" |
308 |
|
309 |
S="${WORKDIR}/xen-${PV}" |
310 |
|
311 |
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" |
312 |
HOMEPAGE="http://xen.org/" |
313 |
LICENSE="GPL-2" |
314 |
SLOT="0" |
315 |
KEYWORDS="~amd64 ~x86" |
316 |
IUSE="custom-cflags" |
317 |
|
318 |
DEPEND="sys-devel/gettext" |
319 |
|
320 |
RDEPEND=">=app-emulation/xen-4.2.0" |
321 |
|
322 |
pkg_setup() { |
323 |
python_set_active_version 2 |
324 |
python_pkg_setup |
325 |
} |
326 |
|
327 |
src_prepare() { |
328 |
|
329 |
# if the user *really* wants to use their own custom-cflags, let them |
330 |
if use custom-cflags; then |
331 |
einfo "User wants their own CFLAGS - removing defaults" |
332 |
# try and remove all the default custom-cflags |
333 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
334 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
335 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
336 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
337 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
338 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
339 |
-i {} \; |
340 |
fi |
341 |
|
342 |
#Substitute for internal downloading |
343 |
cp $DISTDIR/zlib-1.2.3.tar.gz \ |
344 |
$DISTDIR/pciutils-2.2.9.tar.bz2 \ |
345 |
$DISTDIR/lwip-1.3.0.tar.gz \ |
346 |
$DISTDIR/newlib-1.16.0.tar.gz \ |
347 |
$DISTDIR/grub-0.97.tar.gz \ |
348 |
./stubdom/ || die "files not coped to stubdom" |
349 |
# Note: tip to patch grub gentoo style, for review soon. This is around 1/3. |
350 |
# cp "${WORKDIR}"/patch/{00[3-6]_all_grub*,010_all_grub*,01[3-9]_all_grub*,0[6-7]0_all_grub*} \ |
351 |
# "${WORKDIR}"/patch/{110_all_grub*,300_all_grub*} \ |
352 |
# stubdom/grub.patches/ || die |
353 |
einfo "files copied to stubdom" |
354 |
|
355 |
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues |
356 |
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die |
357 |
|
358 |
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading |
359 |
epatch "${FILESDIR}"/${P/-pvgrub/}-externals.patch |
360 |
|
361 |
# Drop .config and Fix gcc-4.6 |
362 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
363 |
|
364 |
#Sec patch |
365 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-CVE-2012-4544-XSA-25.patch |
366 |
} |
367 |
|
368 |
src_compile() { |
369 |
use custom-cflags || unset CFLAGS |
370 |
if test-flag-CC -fno-strict-overflow; then |
371 |
append-flags -fno-strict-overflow |
372 |
fi |
373 |
|
374 |
emake CC="$(tc-getCC)" LD="$(tc-getLD)" -C tools/include |
375 |
|
376 |
# TODO; fix those -j1 |
377 |
if use x86; then |
378 |
emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
379 |
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
380 |
elif use amd64; then |
381 |
emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
382 |
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
383 |
if use multilib; then |
384 |
multilib_toolchain_setup x86 |
385 |
emake -j1 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
386 |
fi |
387 |
fi |
388 |
} |
389 |
|
390 |
src_install() { |
391 |
if use x86; then |
392 |
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
393 |
fi |
394 |
if use amd64; then |
395 |
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
396 |
if use multilib; then |
397 |
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
398 |
fi |
399 |
fi |
400 |
} |
401 |
|
402 |
pkg_postinst() { |
403 |
elog "Official Xen Guide and the unoffical wiki page:" |
404 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
405 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
406 |
} |