1 |
commit: 736aa0d84c189c09c147ba38c9d947f97b320344 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 5 07:24:31 2015 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 5 07:36:11 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=736aa0d8 |
7 |
|
8 |
app-emulation/xen: security bump, fix XSA-145,146,147,148,149,150,151,152 |
9 |
|
10 |
Gentoo bug: #564472 |
11 |
|
12 |
Package-Manager: portage-2.2.23 |
13 |
|
14 |
app-emulation/xen/Manifest | 4 ++ |
15 |
.../xen/{xen-4.6.0.ebuild => xen-4.2.5-r12.ebuild} | 61 ++++++++++------------ |
16 |
.../xen/{xen-4.6.0.ebuild => xen-4.5.2.ebuild} | 16 +++--- |
17 |
.../xen/{xen-4.6.0.ebuild => xen-4.6.0-r1.ebuild} | 15 +++--- |
18 |
4 files changed, 49 insertions(+), 47 deletions(-) |
19 |
|
20 |
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest |
21 |
index 62bc2ca..dc873de 100644 |
22 |
--- a/app-emulation/xen/Manifest |
23 |
+++ b/app-emulation/xen/Manifest |
24 |
@@ -1,5 +1,9 @@ |
25 |
+DIST xen-4.2.5-upstream-patches-10.tar.xz 41428 SHA256 b29ce85b049420838c3386b67184f4ba56794846d056837fa780ae89a80b40d0 SHA512 9e8046e27506d864e2d69728897cbba3eea1dd5ca748a3febb722901c5a67cca2ab49bb420071292538bd0345023fa337eb2d176b9ca05ca6bce47562f6710ec WHIRLPOOL 29e534ef6b951cf220a3a9476d1f76ac344bfc5c74998f2b472ec83cbe4781746298272e3c1fe8661a838cbc7d734d2730de6a1e9985b8a60f40c98f54449e2a |
26 |
DIST xen-4.2.5-upstream-patches-9.tar.xz 23208 SHA256 2206e9a8aeeed207abbae995c5d2baa14d5f0da4120ae44f2de733ecf7ea5af1 SHA512 8a2edaba48002449a521edf2ae078ffe1b3db4f491a85b063886a147a0be3ec7fdb819ce84c90cdae80ed34c10ab2d637506700be10052a67be6ef128fa40fb1 WHIRLPOOL 037820e0fad60d1f7ed054efa797585c992d08f1ffd533705c515ad289f8cdddc72b97f2a3d75ebd683c6bb6988d7285452b4f3cebbe9a879f701156e387ff3b |
27 |
DIST xen-4.2.5.tar.gz 15671925 SHA256 3cf440866315e8085050eb0586f0447b6b47a08dbed6a72226bf5ed5d89ec567 SHA512 42c0fc241952fc55fc44480fb6752b004b54ae40e946159ec047adf229b65cbfbd810271d01b064ad8fdbddb73c640dcdcb6bc19f91e8968829889c129920dac WHIRLPOOL 762a91c0111892b33e6bd3e7f7714709b04697ad7c2b0919fef6cc9570a343a77fd5a2b82833e75dac9d12d4e41acdcf0743b0d593595910ddd326f5cd721368 |
28 |
DIST xen-4.5.1.tar.gz 18410400 SHA256 668c11d4fca67ac44329e369f810356eacd37b28d28fb96e66aac77f3c5e1371 SHA512 9436243e26bc64bc836a179abdc3a6b1b6fa9d3f2170453092c18be71fa62e18cd4465a9154c0f28a7ac8d69d08361ba1defef240a51197f058c012c3855ba04 WHIRLPOOL 71d8559f86683dd9fb3eb09d3f602de227f281fbd3c8cc258bfdb67c425d9e7c4d21cb0284c123e4263262c1b821fea6d28109861ce60d627f6426d352808d99 |
29 |
+DIST xen-4.5.2.tar.gz 18416220 SHA256 4c9e5dac4eea484974e9f76da2756c8e0973b4e884d28d37e955df9ebf00e7e8 SHA512 e0ce01a5356c254bfde48fae0b0e005c42c1615a7ccf4c1ba7dcf90784777b53995e9a9ae4575e3f19ef341014b34cb8c06e39d68be359f7fd69830501a144dd WHIRLPOOL b50ce28e58d8419915f7f85de7ab23128719fa07c54f28165c4ba864ffe57230230fa7cb61dd2ed7608b8bc178a072124aedc30c61a45fb8b745fc616715219b |
30 |
+DIST xen-4.6.0-upstream-patches-0.tar.xz 19280 SHA256 8ef2d139f86cb52d2208a17c974e5a85356183ee359ab4b91882067548806e0c SHA512 9fde8d9def1d75e50c10069af7f9fea4b5b6992b7089eb554e1e2a4c78dd080f2977128d0dd541eeb735b951e7d6614a07101f7703457e7743ac6b3be962cdfe WHIRLPOOL 861c7f150811912422f6f5eb77437744d1456740a43bef3dfd88a2e6d6836c0e8460b788ccd4f14a7144652d65a825c08aa984ec4240b2b1ac6d09237695d19d |
31 |
DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8 |
32 |
DIST xen-security-patches-3.tar.xz 17028 SHA256 fb6301beb9a5c2d1e5d4de8783d8670e382b1bef48ec61e73d2d9be6901d289f SHA512 787fee8f7822577c6de91c4cf4d56d0e73ce46bac5524537ff66a718b6d7eae9d362265515743e8577b2c75f2841baed9837f71467b3b7b91a3111220da5f236 WHIRLPOOL 5c136289e654776bf918fe125fbecba7dac0929b236f7ae8158026a6bd6be12bc786a5ec96cb4022c18a5e7ffde82155deb57eb9639600e4c42c9c209f4a2ed6 |
33 |
+DIST xen-security-patches-7.tar.xz 22604 SHA256 e831c71f830316f452eb8645a5e7ca497264587aa8b353945fd9535f485166e3 SHA512 051769f4118f5c6d5d961759f547526d3fb0e86a4c1dee265a7f0224f10a88e2217b5b5fcf8dbfc706a1ec3c8d1632ab688d3f70dfd89d830261dc7391dd41c2 WHIRLPOOL 8e6dfb4e1700a07e3e3207b67afaddc5d6aa6fd84db9b3e76bd9ff54f682740fed01070e5860bb5378d50903d5777b55dff88eb3444d45bdd63dba657889393d |
34 |
|
35 |
diff --git a/app-emulation/xen/xen-4.6.0.ebuild b/app-emulation/xen/xen-4.2.5-r12.ebuild |
36 |
similarity index 77% |
37 |
copy from app-emulation/xen/xen-4.6.0.ebuild |
38 |
copy to app-emulation/xen/xen-4.2.5-r12.ebuild |
39 |
index 4deb661..838d501 100644 |
40 |
--- a/app-emulation/xen/xen-4.6.0.ebuild |
41 |
+++ b/app-emulation/xen/xen-4.2.5-r12.ebuild |
42 |
@@ -6,17 +6,16 @@ EAPI=5 |
43 |
|
44 |
PYTHON_COMPAT=( python2_7 ) |
45 |
|
46 |
-MY_PV=${PV/_/-} |
47 |
-MY_P=${PN}-${PV/_/-} |
48 |
- |
49 |
if [[ $PV == *9999 ]]; then |
50 |
KEYWORDS="" |
51 |
- EGIT_REPO_URI="git://xenbits.xen.org/${PN}.git" |
52 |
- live_eclass="git-2" |
53 |
+ REPO="xen-unstable.hg" |
54 |
+ EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" |
55 |
+ S="${WORKDIR}/${REPO}" |
56 |
+ live_eclass="mercurial" |
57 |
else |
58 |
- KEYWORDS="~amd64 ~arm ~arm64 -x86" |
59 |
- UPSTREAM_VER= |
60 |
- SECURITY_VER= |
61 |
+ KEYWORDS="~amd64 ~x86" |
62 |
+ UPSTREAM_VER=10 |
63 |
+ SECURITY_VER=7 |
64 |
GENTOO_VER= |
65 |
|
66 |
[[ -n ${UPSTREAM_VER} ]] && \ |
67 |
@@ -25,11 +24,10 @@ else |
68 |
SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
69 |
[[ -n ${GENTOO_VER} ]] && \ |
70 |
GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
71 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
72 |
+ SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
73 |
${UPSTREAM_PATCHSET_URI} |
74 |
${SECURITY_PATCHSET_URI} |
75 |
${GENTOO_PATCHSET_URI}" |
76 |
- |
77 |
fi |
78 |
|
79 |
inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} |
80 |
@@ -38,7 +36,7 @@ DESCRIPTION="The Xen virtual machine monitor" |
81 |
HOMEPAGE="http://xen.org/" |
82 |
LICENSE="GPL-2" |
83 |
SLOT="0" |
84 |
-IUSE="custom-cflags debug efi flask xsm" |
85 |
+IUSE="custom-cflags debug efi flask pae xsm" |
86 |
|
87 |
DEPEND="${PYTHON_DEPS} |
88 |
efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
89 |
@@ -51,10 +49,9 @@ RESTRICT="test" |
90 |
# Approved by QA team in bug #144032 |
91 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
92 |
|
93 |
-REQUIRED_USE="flask? ( xsm ) |
94 |
- arm? ( debug )" |
95 |
- |
96 |
-S="${WORKDIR}/${MY_P}" |
97 |
+REQUIRED_USE=" |
98 |
+ flask? ( xsm ) |
99 |
+ " |
100 |
|
101 |
pkg_setup() { |
102 |
python-any-r1_pkg_setup |
103 |
@@ -65,10 +62,6 @@ pkg_setup() { |
104 |
export XEN_TARGET_ARCH="x86_32" |
105 |
elif use amd64; then |
106 |
export XEN_TARGET_ARCH="x86_64" |
107 |
- elif use arm; then |
108 |
- export XEN_TARGET_ARCH="arm32" |
109 |
- elif use arm64; then |
110 |
- export XEN_TARGET_ARCH="arm64" |
111 |
else |
112 |
die "Unsupported architecture!" |
113 |
fi |
114 |
@@ -91,12 +84,15 @@ src_prepare() { |
115 |
epatch "${WORKDIR}"/patches-upstream |
116 |
fi |
117 |
|
118 |
- # Security patchset |
119 |
if [[ -n ${SECURITY_VER} ]]; then |
120 |
- EPATCH_SUFFIX="patch" \ |
121 |
- EPATCH_FORCE="yes" \ |
122 |
- EPATCH_OPTS="-p1" \ |
123 |
- epatch "${WORKDIR}/patches-security/${PV}" |
124 |
+ einfo "Try to apply Xen Security patcheset" |
125 |
+ source "${WORKDIR}"/patches-security/${PV}.conf |
126 |
+ # apply main xen patches |
127 |
+ for i in ${XEN_SECURITY_MAIN}; do |
128 |
+ EPATCH_SUFFIX="patch" \ |
129 |
+ EPATCH_FORCE="yes" \ |
130 |
+ epatch "${WORKDIR}"/patches-security/xen/$i |
131 |
+ done |
132 |
fi |
133 |
|
134 |
# Gentoo's patchset |
135 |
@@ -106,12 +102,11 @@ src_prepare() { |
136 |
epatch "${WORKDIR}"/patches-gentoo |
137 |
fi |
138 |
|
139 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
140 |
- |
141 |
- # Drop .config |
142 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
143 |
+ # Drop .config and fix gcc-4.6 |
144 |
+ epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
145 |
|
146 |
if use efi; then |
147 |
+ epatch "${FILESDIR}"/${PN}-4.2-efi.patch |
148 |
export EFI_VENDOR="gentoo" |
149 |
export EFI_MOUNTPOINT="boot" |
150 |
fi |
151 |
@@ -129,9 +124,6 @@ src_prepare() { |
152 |
-i {} \; || die "failed to re-set custom-cflags" |
153 |
fi |
154 |
|
155 |
- # remove -Werror for gcc-4.6's sake |
156 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
157 |
- xargs sed -i 's/ *-Werror */ /' |
158 |
# not strictly necessary to fix this |
159 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
160 |
|
161 |
@@ -139,9 +131,8 @@ src_prepare() { |
162 |
} |
163 |
|
164 |
src_configure() { |
165 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
166 |
- |
167 |
use debug && myopt="${myopt} debug=y" |
168 |
+ use pae && myopt="${myopt} pae=y" |
169 |
|
170 |
if use custom-cflags; then |
171 |
filter-flags -fPIE -fstack-protector |
172 |
@@ -153,12 +144,13 @@ src_configure() { |
173 |
|
174 |
src_compile() { |
175 |
# Send raw LDFLAGS so that --as-needed works |
176 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
177 |
+ emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
178 |
} |
179 |
|
180 |
src_install() { |
181 |
local myopt |
182 |
use debug && myopt="${myopt} debug=y" |
183 |
+ use pae && myopt="${myopt} pae=y" |
184 |
|
185 |
# The 'make install' doesn't 'mkdir -p' the subdirs |
186 |
if use efi; then |
187 |
@@ -173,5 +165,6 @@ pkg_postinst() { |
188 |
elog " https://wiki.gentoo.org/wiki/Xen" |
189 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
190 |
|
191 |
+ use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
192 |
use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
193 |
} |
194 |
|
195 |
diff --git a/app-emulation/xen/xen-4.6.0.ebuild b/app-emulation/xen/xen-4.5.2.ebuild |
196 |
similarity index 93% |
197 |
copy from app-emulation/xen/xen-4.6.0.ebuild |
198 |
copy to app-emulation/xen/xen-4.5.2.ebuild |
199 |
index 4deb661..36287e6 100644 |
200 |
--- a/app-emulation/xen/xen-4.6.0.ebuild |
201 |
+++ b/app-emulation/xen/xen-4.5.2.ebuild |
202 |
@@ -91,12 +91,15 @@ src_prepare() { |
203 |
epatch "${WORKDIR}"/patches-upstream |
204 |
fi |
205 |
|
206 |
- # Security patchset |
207 |
if [[ -n ${SECURITY_VER} ]]; then |
208 |
- EPATCH_SUFFIX="patch" \ |
209 |
- EPATCH_FORCE="yes" \ |
210 |
- EPATCH_OPTS="-p1" \ |
211 |
- epatch "${WORKDIR}/patches-security/${PV}" |
212 |
+ einfo "Try to apply Xen Security patcheset" |
213 |
+ source "${WORKDIR}"/patches-security/${PV}.conf |
214 |
+ # apply main xen patches |
215 |
+ for i in ${XEN_SECURITY_MAIN}; do |
216 |
+ EPATCH_SUFFIX="patch" \ |
217 |
+ EPATCH_FORCE="yes" \ |
218 |
+ epatch "${WORKDIR}"/patches-security/xen/$i |
219 |
+ done |
220 |
fi |
221 |
|
222 |
# Gentoo's patchset |
223 |
@@ -106,12 +109,11 @@ src_prepare() { |
224 |
epatch "${WORKDIR}"/patches-gentoo |
225 |
fi |
226 |
|
227 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
228 |
- |
229 |
# Drop .config |
230 |
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
231 |
|
232 |
if use efi; then |
233 |
+ epatch "${FILESDIR}"/${PN}-4.5-efi.patch |
234 |
export EFI_VENDOR="gentoo" |
235 |
export EFI_MOUNTPOINT="boot" |
236 |
fi |
237 |
|
238 |
diff --git a/app-emulation/xen/xen-4.6.0.ebuild b/app-emulation/xen/xen-4.6.0-r1.ebuild |
239 |
similarity index 94% |
240 |
rename from app-emulation/xen/xen-4.6.0.ebuild |
241 |
rename to app-emulation/xen/xen-4.6.0-r1.ebuild |
242 |
index 4deb661..960df2a 100644 |
243 |
--- a/app-emulation/xen/xen-4.6.0.ebuild |
244 |
+++ b/app-emulation/xen/xen-4.6.0-r1.ebuild |
245 |
@@ -15,7 +15,7 @@ if [[ $PV == *9999 ]]; then |
246 |
live_eclass="git-2" |
247 |
else |
248 |
KEYWORDS="~amd64 ~arm ~arm64 -x86" |
249 |
- UPSTREAM_VER= |
250 |
+ UPSTREAM_VER=0 |
251 |
SECURITY_VER= |
252 |
GENTOO_VER= |
253 |
|
254 |
@@ -91,12 +91,15 @@ src_prepare() { |
255 |
epatch "${WORKDIR}"/patches-upstream |
256 |
fi |
257 |
|
258 |
- # Security patchset |
259 |
if [[ -n ${SECURITY_VER} ]]; then |
260 |
- EPATCH_SUFFIX="patch" \ |
261 |
- EPATCH_FORCE="yes" \ |
262 |
- EPATCH_OPTS="-p1" \ |
263 |
- epatch "${WORKDIR}/patches-security/${PV}" |
264 |
+ einfo "Try to apply Xen Security patcheset" |
265 |
+ source "${WORKDIR}"/patches-security/${PV}.conf |
266 |
+ # apply main xen patches |
267 |
+ for i in ${XEN_SECURITY_MAIN}; do |
268 |
+ EPATCH_SUFFIX="patch" \ |
269 |
+ EPATCH_FORCE="yes" \ |
270 |
+ epatch "${WORKDIR}"/patches-security/xen/$i |
271 |
+ done |
272 |
fi |
273 |
|
274 |
# Gentoo's patchset |