1 |
idella4 13/01/30 12:12:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xen-4.2.1-r1.ebuild xen-4.2.0-r1.ebuild |
5 |
Removed: xen-4.2.0.ebuild xen-4.2.1.ebuild |
6 |
Log: |
7 |
revbumps; -4.2.0-r1, eclass python-single-r1 added to anable & ensure a build by py2 fixing Bug #453930, PYTHON_COMPAT set accordingly, EAPI->5, sed statements reduced to patches, many sec. patches added addressing Bugs #445254, #431156, #454314. -4.2.1-r1, changes mirrored in those of -4.2.0-r1, addition of 3 sec. patches that pertain to 4.2.1. Dropped 4.2.0 & 4.2.1 by virtue of being prone to failure in form of Bug #453930. Sees 4.2.0-r1 ready for testing for stable |
8 |
|
9 |
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
10 |
|
11 |
Revision Changes Path |
12 |
1.102 app-emulation/xen/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.102&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.102&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.101&r2=1.102 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v |
21 |
retrieving revision 1.101 |
22 |
retrieving revision 1.102 |
23 |
diff -u -r1.101 -r1.102 |
24 |
--- ChangeLog 24 Jan 2013 09:18:34 -0000 1.101 |
25 |
+++ ChangeLog 30 Jan 2013 12:12:31 -0000 1.102 |
26 |
@@ -1,6 +1,33 @@ |
27 |
# ChangeLog for app-emulation/xen |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.101 2013/01/24 09:18:34 idella4 Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.102 2013/01/30 12:12:31 idella4 Exp $ |
31 |
+ |
32 |
+*xen-4.2.1-r1 (30 Jan 2013) |
33 |
+*xen-4.2.0-r1 (30 Jan 2013) |
34 |
+ |
35 |
+ 30 Jan 2013; Ian Delaney <idella4@g.o> |
36 |
+ +files/xen-4-CVE-2012-4535-XSA-20.patch, |
37 |
+ +files/xen-4-CVE-2012-4537-XSA-22.patch, |
38 |
+ +files/xen-4-CVE-2012-4538-XSA-23.patch, |
39 |
+ +files/xen-4-CVE-2012-4539-XSA-24.patch, |
40 |
+ +files/xen-4-CVE-2012-5510-XSA-26.patch, |
41 |
+ +files/xen-4-CVE-2012-5513-XSA-29.patch, |
42 |
+ +files/xen-4-CVE-2012-5514-XSA-30.patch, |
43 |
+ +files/xen-4-CVE-2012-5515-XSA-31.patch, |
44 |
+ +files/xen-4-CVE-2012-5525-XSA-32.patch, |
45 |
+ +files/xen-4-CVE-2012-5634-XSA-33.patch, |
46 |
+ +files/xen-4-CVE-2013-0151-XSA-27_34_35.patch, |
47 |
+ +files/xen-4-CVE-2013-0151-XSA-34_35.patch, |
48 |
+ +files/xen-4-CVE-2013-0154-XSA-37.patch, +xen-4.2.0-r1.ebuild, |
49 |
+ +xen-4.2.1-r1.ebuild, -xen-4.2.0.ebuild, -xen-4.2.1.ebuild, |
50 |
+ files/xen-4-fix_dotconfig-gcc.patch: |
51 |
+ revbumps; -4.2.0-r1, eclass python-single-r1 added to anable & ensure a build |
52 |
+ by py2 fixing Bug #453930, PYTHON_COMPAT set accordingly, EAPI->5, sed |
53 |
+ statements reduced to patches, many sec. patches added addressing Bugs |
54 |
+ #445254, #431156, #454314. -4.2.1-r1, changes mirrored in those of -4.2.0-r1, |
55 |
+ addition of 3 sec. patches that pertain to 4.2.1. Dropped 4.2.0 & 4.2.1 by |
56 |
+ virtue of being prone to failure in form of Bug #453930. Sees 4.2.0-r1 ready |
57 |
+ for testing for stable |
58 |
|
59 |
*xen-4.2.1 (24 Jan 2013) |
60 |
|
61 |
|
62 |
|
63 |
|
64 |
1.1 app-emulation/xen/xen-4.2.1-r1.ebuild |
65 |
|
66 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild?rev=1.1&view=markup |
67 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild?rev=1.1&content-type=text/plain |
68 |
|
69 |
Index: xen-4.2.1-r1.ebuild |
70 |
=================================================================== |
71 |
# Copyright 1999-2013 Gentoo Foundation |
72 |
# Distributed under the terms of the GNU General Public License v2 |
73 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.1-r1.ebuild,v 1.1 2013/01/30 12:12:31 idella4 Exp $ |
74 |
|
75 |
EAPI=5 |
76 |
|
77 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
78 |
|
79 |
if [[ $PV == *9999 ]]; then |
80 |
KEYWORDS="" |
81 |
REPO="xen-unstable.hg" |
82 |
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" |
83 |
S="${WORKDIR}/${REPO}" |
84 |
live_eclass="mercurial" |
85 |
else |
86 |
KEYWORDS="~amd64 ~x86" |
87 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" |
88 |
fi |
89 |
|
90 |
inherit mount-boot flag-o-matic python-single-r1 toolchain-funcs ${live_eclass} |
91 |
|
92 |
DESCRIPTION="The Xen virtual machine monitor" |
93 |
HOMEPAGE="http://xen.org/" |
94 |
|
95 |
LICENSE="GPL-2" |
96 |
SLOT="0" |
97 |
IUSE="custom-cflags debug flask pae xsm" |
98 |
|
99 |
RDEPEND="|| ( sys-boot/grub |
100 |
sys-boot/grub-static )" |
101 |
PDEPEND="~app-emulation/xen-tools-${PV}" |
102 |
|
103 |
RESTRICT="test" |
104 |
|
105 |
# Approved by QA team in bug #144032 |
106 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
107 |
|
108 |
REQUIRED_USE=" |
109 |
flask? ( xsm ) |
110 |
" |
111 |
|
112 |
pkg_setup() { |
113 |
python-single-r1_pkg_setup |
114 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
115 |
if use x86 && use amd64; then |
116 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
117 |
elif use x86; then |
118 |
export XEN_TARGET_ARCH="x86_32" |
119 |
elif use amd64; then |
120 |
export XEN_TARGET_ARCH="x86_64" |
121 |
else |
122 |
die "Unsupported architecture!" |
123 |
fi |
124 |
fi |
125 |
|
126 |
if use flask ; then |
127 |
export "XSM_ENABLE=y" |
128 |
export "FLASK_ENABLE=y" |
129 |
elif use xsm ; then |
130 |
export "XSM_ENABLE=y" |
131 |
fi |
132 |
} |
133 |
|
134 |
src_prepare() { |
135 |
# Drop .config and fix gcc-4.6 |
136 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
137 |
|
138 |
# if the user *really* wants to use their own custom-cflags, let them |
139 |
if use custom-cflags; then |
140 |
einfo "User wants their own CFLAGS - removing defaults" |
141 |
# try and remove all the default custom-cflags |
142 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
143 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
144 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
145 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
146 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
147 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
148 |
-i {} \; || die "failed to re-set custom-cflags" |
149 |
fi |
150 |
|
151 |
# not strictly necessary to fix this |
152 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
153 |
|
154 |
#Security patches |
155 |
epatch "${FILESDIR}"/${PN}-4-CVE-2012-5634-XSA-33.patch \ |
156 |
"${FILESDIR}"/${PN}-4-CVE-2013-0151-XSA-34_35.patch \ |
157 |
"${FILESDIR}"/${PN}-4-CVE-2013-0154-XSA-37.patch |
158 |
} |
159 |
|
160 |
src_configure() { |
161 |
use debug && myopt="${myopt} debug=y" |
162 |
use pae && myopt="${myopt} pae=y" |
163 |
|
164 |
if use custom-cflags; then |
165 |
filter-flags -fPIE -fstack-protector |
166 |
replace-flags -O3 -O2 |
167 |
else |
168 |
unset CFLAGS |
169 |
fi |
170 |
} |
171 |
|
172 |
src_compile() { |
173 |
# Send raw LDFLAGS so that --as-needed works |
174 |
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
175 |
} |
176 |
|
177 |
src_install() { |
178 |
local myopt |
179 |
use debug && myopt="${myopt} debug=y" |
180 |
use pae && myopt="${myopt} pae=y" |
181 |
|
182 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
183 |
} |
184 |
|
185 |
pkg_postinst() { |
186 |
elog "Official Xen Guide and the unoffical wiki page:" |
187 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
188 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
189 |
|
190 |
if use pae; then |
191 |
echo |
192 |
ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
193 |
fi |
194 |
} |
195 |
|
196 |
|
197 |
|
198 |
1.1 app-emulation/xen/xen-4.2.0-r1.ebuild |
199 |
|
200 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild?rev=1.1&view=markup |
201 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild?rev=1.1&content-type=text/plain |
202 |
|
203 |
Index: xen-4.2.0-r1.ebuild |
204 |
=================================================================== |
205 |
# Copyright 1999-2013 Gentoo Foundation |
206 |
# Distributed under the terms of the GNU General Public License v2 |
207 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.0-r1.ebuild,v 1.1 2013/01/30 12:12:31 idella4 Exp $ |
208 |
|
209 |
EAPI=5 |
210 |
|
211 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
212 |
|
213 |
if [[ $PV == *9999 ]]; then |
214 |
KEYWORDS="" |
215 |
REPO="xen-unstable.hg" |
216 |
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" |
217 |
S="${WORKDIR}/${REPO}" |
218 |
live_eclass="mercurial" |
219 |
else |
220 |
KEYWORDS="~amd64 ~x86" |
221 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" |
222 |
fi |
223 |
|
224 |
inherit mount-boot flag-o-matic python-single-r1 toolchain-funcs ${live_eclass} |
225 |
|
226 |
DESCRIPTION="The Xen virtual machine monitor" |
227 |
HOMEPAGE="http://xen.org/" |
228 |
|
229 |
LICENSE="GPL-2" |
230 |
SLOT="0" |
231 |
IUSE="custom-cflags debug flask pae xsm" |
232 |
|
233 |
RDEPEND="|| ( sys-boot/grub |
234 |
sys-boot/grub-static )" |
235 |
PDEPEND="~app-emulation/xen-tools-${PV}[${PYTHON_USEDEP}]" |
236 |
|
237 |
RESTRICT="test" |
238 |
|
239 |
# Approved by QA team in bug #144032 |
240 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
241 |
|
242 |
REQUIRED_USE=" |
243 |
flask? ( xsm ) |
244 |
" |
245 |
pkg_setup() { |
246 |
python-single-r1_pkg_setup |
247 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
248 |
if use x86 && use amd64; then |
249 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
250 |
elif use x86; then |
251 |
export XEN_TARGET_ARCH="x86_32" |
252 |
elif use amd64; then |
253 |
export XEN_TARGET_ARCH="x86_64" |
254 |
else |
255 |
die "Unsupported architecture!" |
256 |
fi |
257 |
fi |
258 |
|
259 |
if use flask ; then |
260 |
export "XSM_ENABLE=y" |
261 |
export "FLASK_ENABLE=y" |
262 |
elif use xsm ; then |
263 |
export "XSM_ENABLE=y" |
264 |
fi |
265 |
} |
266 |
|
267 |
src_prepare() { |
268 |
# Drop .config, fix gcc-4.6 |
269 |
epatch "${FILESDIR}"/${PN}-4-fix_dotconfig-gcc.patch |
270 |
|
271 |
# if the user *really* wants to use their own custom-cflags, let them |
272 |
if use custom-cflags; then |
273 |
einfo "User wants their own CFLAGS - removing defaults" |
274 |
# try and remove all the default custom-cflags |
275 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
276 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
277 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
278 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
279 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
280 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
281 |
-i {} \; || die "failed to re-set custom-cflags" |
282 |
fi |
283 |
|
284 |
# not strictly necessary to fix this |
285 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
286 |
|
287 |
#Security patches |
288 |
epatch "${FILESDIR}"/${PN}-4-CVE-2012-4535-XSA-20.patch \ |
289 |
"${FILESDIR}"/${PN}-4-CVE-2012-4537-XSA-22.patch \ |
290 |
"${FILESDIR}"/${PN}-4-CVE-2012-4538-XSA-23.patch \ |
291 |
"${FILESDIR}"/${PN}-4-CVE-2012-4539-XSA-24.patch \ |
292 |
"${FILESDIR}"/${PN}-4-CVE-2012-5510-XSA-26.patch \ |
293 |
"${FILESDIR}"/${PN}-4-CVE-2012-5514-XSA-30.patch \ |
294 |
"${FILESDIR}"/${PN}-4-CVE-2012-5515-XSA-31.patch \ |
295 |
"${FILESDIR}"/${PN}-4-CVE-2012-5525-XSA-32.patch \ |
296 |
"${FILESDIR}"/${PN}-4-CVE-2012-5634-XSA-33.patch \ |
297 |
"${FILESDIR}"/${PN}-4-CVE-2013-0151-XSA-27_34_35.patch \ |
298 |
"${FILESDIR}"/${PN}-4-CVE-2013-0154-XSA-37.patch |
299 |
} |
300 |
|
301 |
src_configure() { |
302 |
use debug && myopt="${myopt} debug=y" |
303 |
use pae && myopt="${myopt} pae=y" |
304 |
|
305 |
if use custom-cflags; then |
306 |
filter-flags -fPIE -fstack-protector |
307 |
replace-flags -O3 -O2 |
308 |
else |
309 |
unset CFLAGS |
310 |
fi |
311 |
} |
312 |
|
313 |
src_compile() { |
314 |
# Send raw LDFLAGS so that --as-needed works |
315 |
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
316 |
} |
317 |
|
318 |
src_install() { |
319 |
local myopt |
320 |
use debug && myopt="${myopt} debug=y" |
321 |
use pae && myopt="${myopt} pae=y" |
322 |
|
323 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${ED}" -C xen ${myopt} install |
324 |
} |
325 |
|
326 |
pkg_postinst() { |
327 |
elog "Official Xen Guide and the unoffical wiki page:" |
328 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
329 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
330 |
|
331 |
if use pae; then |
332 |
echo |
333 |
ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
334 |
fi |
335 |
} |