1 |
idella4 13/02/24 08:23:59 |
2 |
|
3 |
Modified: xen-4.2.1-r1.ebuild xen-4.2.0-r1.ebuild ChangeLog |
4 |
Added: xen-4.2.0-r2.ebuild xen-4.2.1-r2.ebuild |
5 |
Log: |
6 |
After further review, reverted both -r1 ebuilds, revbumped both to -r2, fixed deps and install, reduced efi.patch accordingly and re-named to xen-4.2-efi.patch, all wrt Bug #458160 |
7 |
|
8 |
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 app-emulation/xen/xen-4.2.1-r1.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: xen-4.2.1-r1.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- xen-4.2.1-r1.ebuild 23 Feb 2013 16:34:06 -0000 1.3 |
24 |
+++ xen-4.2.1-r1.ebuild 24 Feb 2013 08:23:59 -0000 1.4 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild,v 1.3 2013/02/23 16:34:06 idella4 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild,v 1.4 2013/02/24 08:23:59 idella4 Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
|
33 |
@@ -24,10 +24,9 @@ |
34 |
|
35 |
LICENSE="GPL-2" |
36 |
SLOT="0" |
37 |
-IUSE="custom-cflags debug efi flask pae xsm" |
38 |
+IUSE="custom-cflags debug flask pae xsm" |
39 |
|
40 |
-RDEPEND="efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
41 |
- >=sys-devel/binutils-2.22[-multitarget]" |
42 |
+RDEPEND="" |
43 |
PDEPEND="~app-emulation/xen-tools-${PV}" |
44 |
|
45 |
RESTRICT="test" |
46 |
@@ -65,8 +64,6 @@ |
47 |
# Drop .config and fix gcc-4.6 |
48 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
49 |
|
50 |
- use efi && epatch "${FILESDIR}"/${PN}-4-efi.patch |
51 |
- |
52 |
# if the user *really* wants to use their own custom-cflags, let them |
53 |
if use custom-cflags; then |
54 |
einfo "User wants their own CFLAGS - removing defaults" |
55 |
@@ -110,7 +107,6 @@ |
56 |
local myopt |
57 |
use debug && myopt="${myopt} debug=y" |
58 |
use pae && myopt="${myopt} pae=y" |
59 |
- use efi && mkdir -p "${D}"/boot/efi |
60 |
|
61 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
62 |
} |
63 |
@@ -121,5 +117,4 @@ |
64 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
65 |
|
66 |
use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
67 |
- use efi && einfo "The efi executable is installed in boot/efi" |
68 |
} |
69 |
|
70 |
|
71 |
|
72 |
1.8 app-emulation/xen/xen-4.2.0-r1.ebuild |
73 |
|
74 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild?rev=1.8&view=markup |
75 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild?rev=1.8&content-type=text/plain |
76 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild?r1=1.7&r2=1.8 |
77 |
|
78 |
Index: xen-4.2.0-r1.ebuild |
79 |
=================================================================== |
80 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild,v |
81 |
retrieving revision 1.7 |
82 |
retrieving revision 1.8 |
83 |
diff -u -r1.7 -r1.8 |
84 |
--- xen-4.2.0-r1.ebuild 23 Feb 2013 16:34:06 -0000 1.7 |
85 |
+++ xen-4.2.0-r1.ebuild 24 Feb 2013 08:23:59 -0000 1.8 |
86 |
@@ -1,6 +1,6 @@ |
87 |
# Copyright 1999-2013 Gentoo Foundation |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild,v 1.7 2013/02/23 16:34:06 idella4 Exp $ |
90 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild,v 1.8 2013/02/24 08:23:59 idella4 Exp $ |
91 |
|
92 |
EAPI=5 |
93 |
|
94 |
@@ -24,10 +24,9 @@ |
95 |
|
96 |
LICENSE="GPL-2" |
97 |
SLOT="0" |
98 |
-IUSE="custom-cflags debug efi flask pae xsm" |
99 |
+IUSE="custom-cflags debug flask pae xsm" |
100 |
|
101 |
-RDEPEND="efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
102 |
- >=sys-devel/binutils-2.22[-multitarget]" |
103 |
+RDEPEND="" |
104 |
PDEPEND="~app-emulation/xen-tools-${PV}[${PYTHON_USEDEP}]" |
105 |
|
106 |
RESTRICT="test" |
107 |
@@ -65,8 +64,6 @@ |
108 |
# Drop .config, fix gcc-4.6 |
109 |
epatch "${FILESDIR}"/${PN}-4-fix_dotconfig-gcc.patch |
110 |
|
111 |
- use efi && epatch "${FILESDIR}"/${PN}-4-efi.patch |
112 |
- |
113 |
# if the user *really* wants to use their own custom-cflags, let them |
114 |
if use custom-cflags; then |
115 |
einfo "User wants their own CFLAGS - removing defaults" |
116 |
@@ -119,7 +116,6 @@ |
117 |
local myopt |
118 |
use debug && myopt="${myopt} debug=y" |
119 |
use pae && myopt="${myopt} pae=y" |
120 |
- use efi && mkdir -p "${D}"/boot/efi |
121 |
|
122 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
123 |
} |
124 |
@@ -130,5 +126,4 @@ |
125 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
126 |
|
127 |
use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
128 |
- use efi && einfo "The efi executable is installed in boot/efi" |
129 |
} |
130 |
|
131 |
|
132 |
|
133 |
1.110 app-emulation/xen/ChangeLog |
134 |
|
135 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.110&view=markup |
136 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.110&content-type=text/plain |
137 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.109&r2=1.110 |
138 |
|
139 |
Index: ChangeLog |
140 |
=================================================================== |
141 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v |
142 |
retrieving revision 1.109 |
143 |
retrieving revision 1.110 |
144 |
diff -u -r1.109 -r1.110 |
145 |
--- ChangeLog 23 Feb 2013 16:34:06 -0000 1.109 |
146 |
+++ ChangeLog 24 Feb 2013 08:23:59 -0000 1.110 |
147 |
@@ -1,6 +1,16 @@ |
148 |
# ChangeLog for app-emulation/xen |
149 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
150 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.109 2013/02/23 16:34:06 idella4 Exp $ |
151 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.110 2013/02/24 08:23:59 idella4 Exp $ |
152 |
+ |
153 |
+*xen-4.2.1-r2 (24 Feb 2013) |
154 |
+*xen-4.2.0-r2 (24 Feb 2013) |
155 |
+ |
156 |
+ 24 Feb 2013; Ian Delaney <idella4@g.o> +files/xen-4.2-efi.patch, |
157 |
+ +xen-4.2.0-r2.ebuild, +xen-4.2.1-r2.ebuild, -files/xen-4-efi.patch, |
158 |
+ xen-4.2.0-r1.ebuild, xen-4.2.1-r1.ebuild: |
159 |
+ After further review, reverted both -r1 ebuilds, revbumped both to -r2, fixed |
160 |
+ deps and install, reduced efi.patch accordingly and re-named to |
161 |
+ xen-4.2-efi.patch, all wrt Bug #458160 |
162 |
|
163 |
23 Feb 2013; Ian Delaney <idella4@g.o> +files/xen-4-efi.patch, |
164 |
metadata.xml, xen-4.2.0-r1.ebuild, xen-4.2.1-r1.ebuild: |
165 |
|
166 |
|
167 |
|
168 |
1.1 app-emulation/xen/xen-4.2.0-r2.ebuild |
169 |
|
170 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r2.ebuild?rev=1.1&view=markup |
171 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r2.ebuild?rev=1.1&content-type=text/plain |
172 |
|
173 |
Index: xen-4.2.0-r2.ebuild |
174 |
=================================================================== |
175 |
# Copyright 1999-2013 Gentoo Foundation |
176 |
# Distributed under the terms of the GNU General Public License v2 |
177 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.0-r2.ebuild,v 1.1 2013/02/24 08:23:59 idella4 Exp $ |
178 |
|
179 |
EAPI=5 |
180 |
|
181 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
182 |
|
183 |
if [[ $PV == *9999 ]]; then |
184 |
KEYWORDS="" |
185 |
REPO="xen-unstable.hg" |
186 |
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" |
187 |
S="${WORKDIR}/${REPO}" |
188 |
live_eclass="mercurial" |
189 |
else |
190 |
KEYWORDS="~amd64 ~x86" |
191 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" |
192 |
fi |
193 |
|
194 |
inherit mount-boot flag-o-matic python-single-r1 toolchain-funcs ${live_eclass} |
195 |
|
196 |
DESCRIPTION="The Xen virtual machine monitor" |
197 |
HOMEPAGE="http://xen.org/" |
198 |
|
199 |
LICENSE="GPL-2" |
200 |
SLOT="0" |
201 |
IUSE="custom-cflags debug efi flask pae xsm" |
202 |
|
203 |
RDEPEND="" |
204 |
PDEPEND="~app-emulation/xen-tools-${PV}[${PYTHON_USEDEP}]" |
205 |
|
206 |
RESTRICT="test" |
207 |
|
208 |
# Approved by QA team in bug #144032 |
209 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
210 |
|
211 |
REQUIRED_USE=" |
212 |
flask? ( xsm )" |
213 |
|
214 |
pkg_setup() { |
215 |
python-single-r1_pkg_setup |
216 |
|
217 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
218 |
if use x86 && use amd64; then |
219 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
220 |
elif use x86; then |
221 |
export XEN_TARGET_ARCH="x86_32" |
222 |
elif use amd64; then |
223 |
export XEN_TARGET_ARCH="x86_64" |
224 |
else |
225 |
die "Unsupported architecture!" |
226 |
fi |
227 |
fi |
228 |
|
229 |
if use flask ; then |
230 |
export "XSM_ENABLE=y" |
231 |
export "FLASK_ENABLE=y" |
232 |
elif use xsm ; then |
233 |
export "XSM_ENABLE=y" |
234 |
fi |
235 |
} |
236 |
|
237 |
src_prepare() { |
238 |
# Drop .config, fix gcc-4.6 |
239 |
epatch "${FILESDIR}"/${PN}-4-fix_dotconfig-gcc.patch |
240 |
|
241 |
if use efi; then |
242 |
epatch "${FILESDIR}"/${PN}-4.2-efi.patch |
243 |
export EFI_VENDOR="gentoo" |
244 |
export EFI_MOUNTPOINT="boot" |
245 |
fi |
246 |
|
247 |
# if the user *really* wants to use their own custom-cflags, let them |
248 |
if use custom-cflags; then |
249 |
einfo "User wants their own CFLAGS - removing defaults" |
250 |
# try and remove all the default custom-cflags |
251 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
252 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
253 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
254 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
255 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
256 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
257 |
-i {} \; || die "failed to re-set custom-cflags" |
258 |
fi |
259 |
|
260 |
# not strictly necessary to fix this |
261 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
262 |
|
263 |
#Security patches |
264 |
epatch "${FILESDIR}"/${PN}-4-CVE-2012-4535-XSA-20.patch \ |
265 |
"${FILESDIR}"/${PN}-4-CVE-2012-4537-XSA-22.patch \ |
266 |
"${FILESDIR}"/${PN}-4-CVE-2012-4538-XSA-23.patch \ |
267 |
"${FILESDIR}"/${PN}-4-CVE-2012-4539-XSA-24.patch \ |
268 |
"${FILESDIR}"/${PN}-4-CVE-2012-5510-XSA-26.patch \ |
269 |
"${FILESDIR}"/${PN}-4-CVE-2012-5513-XSA-29.patch \ |
270 |
"${FILESDIR}"/${PN}-4-CVE-2012-5514-XSA-30.patch \ |
271 |
"${FILESDIR}"/${PN}-4-CVE-2012-5515-XSA-31.patch \ |
272 |
"${FILESDIR}"/${PN}-4-CVE-2012-5525-XSA-32.patch \ |
273 |
"${FILESDIR}"/${PN}-4-CVE-2012-5634-XSA-33.patch \ |
274 |
"${FILESDIR}"/${PN}-4-CVE-2013-0151-XSA-27_34_35.patch \ |
275 |
"${FILESDIR}"/${PN}-4-CVE-2013-0154-XSA-37.patch |
276 |
} |
277 |
|
278 |
src_configure() { |
279 |
use debug && myopt="${myopt} debug=y" |
280 |
use pae && myopt="${myopt} pae=y" |
281 |
|
282 |
if use custom-cflags; then |
283 |
filter-flags -fPIE -fstack-protector |
284 |
replace-flags -O3 -O2 |
285 |
else |
286 |
unset CFLAGS |
287 |
fi |
288 |
} |
289 |
|
290 |
src_compile() { |
291 |
# Send raw LDFLAGS so that --as-needed works |
292 |
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
293 |
} |
294 |
|
295 |
src_install() { |
296 |
local myopt |
297 |
use debug && myopt="${myopt} debug=y" |
298 |
use pae && myopt="${myopt} pae=y" |
299 |
#The 'make install' doesn't 'mkdir -p' the subdirs |
300 |
use efi && mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
301 |
|
302 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
303 |
} |
304 |
|
305 |
pkg_postinst() { |
306 |
elog "Official Xen Guide and the unoffical wiki page:" |
307 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
308 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
309 |
|
310 |
use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
311 |
use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
312 |
} |
313 |
|
314 |
|
315 |
|
316 |
1.1 app-emulation/xen/xen-4.2.1-r2.ebuild |
317 |
|
318 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r2.ebuild?rev=1.1&view=markup |
319 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r2.ebuild?rev=1.1&content-type=text/plain |
320 |
|
321 |
Index: xen-4.2.1-r2.ebuild |
322 |
=================================================================== |
323 |
# Copyright 1999-2013 Gentoo Foundation |
324 |
# Distributed under the terms of the GNU General Public License v2 |
325 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.1-r2.ebuild,v 1.1 2013/02/24 08:23:59 idella4 Exp $ |
326 |
|
327 |
EAPI=5 |
328 |
|
329 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
330 |
|
331 |
if [[ $PV == *9999 ]]; then |
332 |
KEYWORDS="" |
333 |
REPO="xen-unstable.hg" |
334 |
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" |
335 |
S="${WORKDIR}/${REPO}" |
336 |
live_eclass="mercurial" |
337 |
else |
338 |
KEYWORDS="~amd64 ~x86" |
339 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" |
340 |
fi |
341 |
|
342 |
inherit mount-boot flag-o-matic python-single-r1 toolchain-funcs ${live_eclass} |
343 |
|
344 |
DESCRIPTION="The Xen virtual machine monitor" |
345 |
HOMEPAGE="http://xen.org/" |
346 |
|
347 |
LICENSE="GPL-2" |
348 |
SLOT="0" |
349 |
IUSE="custom-cflags debug efi flask pae xsm" |
350 |
|
351 |
RDEPEND="efi? ( >=sys-devel/binutils-2.22[multitarget] )" |
352 |
PDEPEND="~app-emulation/xen-tools-${PV}" |
353 |
|
354 |
RESTRICT="test" |
355 |
|
356 |
# Approved by QA team in bug #144032 |
357 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
358 |
|
359 |
REQUIRED_USE=" |
360 |
flask? ( xsm ) |
361 |
" |
362 |
|
363 |
pkg_setup() { |
364 |
python-single-r1_pkg_setup |
365 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
366 |
if use x86 && use amd64; then |
367 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
368 |
elif use x86; then |
369 |
export XEN_TARGET_ARCH="x86_32" |
370 |
elif use amd64; then |
371 |
export XEN_TARGET_ARCH="x86_64" |
372 |
else |
373 |
die "Unsupported architecture!" |
374 |
fi |
375 |
fi |
376 |
|
377 |
if use flask ; then |
378 |
export "XSM_ENABLE=y" |
379 |
export "FLASK_ENABLE=y" |
380 |
elif use xsm ; then |
381 |
export "XSM_ENABLE=y" |
382 |
fi |
383 |
} |
384 |
|
385 |
src_prepare() { |
386 |
# Drop .config and fix gcc-4.6 |
387 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
388 |
|
389 |
if use efi; then |
390 |
epatch "${FILESDIR}"/${PN}-4.2-efi.patch |
391 |
export EFI_VENDOR="gentoo" |
392 |
export EFI_MOUNTPOINT="boot" |
393 |
fi |
394 |
|
395 |
# if the user *really* wants to use their own custom-cflags, let them |
396 |
if use custom-cflags; then |
397 |
einfo "User wants their own CFLAGS - removing defaults" |
398 |
# try and remove all the default custom-cflags |
399 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
400 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
401 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
402 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
403 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
404 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
405 |
-i {} \; || die "failed to re-set custom-cflags" |
406 |
fi |
407 |
|
408 |
# not strictly necessary to fix this |
409 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
410 |
|
411 |
#Security patches |
412 |
epatch "${FILESDIR}"/${PN}-4-CVE-2012-5634-XSA-33.patch \ |
413 |
"${FILESDIR}"/${PN}-4-CVE-2013-0151-XSA-34_35.patch \ |
414 |
"${FILESDIR}"/${PN}-4-CVE-2013-0154-XSA-37.patch |
415 |
} |
416 |
|
417 |
src_configure() { |
418 |
use debug && myopt="${myopt} debug=y" |
419 |
use pae && myopt="${myopt} pae=y" |
420 |
|
421 |
if use custom-cflags; then |
422 |
filter-flags -fPIE -fstack-protector |
423 |
replace-flags -O3 -O2 |
424 |
else |
425 |
unset CFLAGS |
426 |
fi |
427 |
} |
428 |
|
429 |
src_compile() { |
430 |
# Send raw LDFLAGS so that --as-needed works |
431 |
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
432 |
} |
433 |
|
434 |
src_install() { |
435 |
local myopt |
436 |
use debug && myopt="${myopt} debug=y" |
437 |
use pae && myopt="${myopt} pae=y" |
438 |
#The 'make install' doesn't 'mkdir -p' the subdirs |
439 |
use efi && mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
440 |
|
441 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
442 |
} |
443 |
|
444 |
pkg_postinst() { |
445 |
elog "Official Xen Guide and the unoffical wiki page:" |
446 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
447 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
448 |
|
449 |
use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
450 |
use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
451 |
} |