1 |
commit: 05ef88b8287ea4e6002677e5a74223a239be528f |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 18 03:06:04 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 18 03:06:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05ef88b8 |
7 |
|
8 |
app-emulation/xen: drop old versions |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
app-emulation/xen/Manifest | 3 - |
13 |
app-emulation/xen/xen-4.5.2-r2.ebuild | 190 -------------------------------- |
14 |
app-emulation/xen/xen-4.5.2-r3.ebuild | 192 --------------------------------- |
15 |
app-emulation/xen/xen-4.6.0-r5.ebuild | 190 -------------------------------- |
16 |
app-emulation/xen/xen-4.6.0-r6.ebuild | 193 --------------------------------- |
17 |
app-emulation/xen/xen-4.6.0-r7.ebuild | 197 ---------------------------------- |
18 |
6 files changed, 965 deletions(-) |
19 |
|
20 |
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest |
21 |
index 14b1aeb..09ead71 100644 |
22 |
--- a/app-emulation/xen/Manifest |
23 |
+++ b/app-emulation/xen/Manifest |
24 |
@@ -3,9 +3,6 @@ DIST xen-4.6.0-upstream-patches-0.tar.xz 19280 SHA256 8ef2d139f86cb52d2208a17c97 |
25 |
DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8 |
26 |
DIST xen-4.6.1.tar.gz 19693042 SHA256 44cc2fccba1e147ef4c8da0584ce0f24189c8743de0e3e9a9226da88ddb5f589 SHA512 f01a0b7874abf8b3a81432428d7ba2d5aceb9d75ae20310f8ef49a3a0df927720a51d49090f74fda7f374c779e121ad26da6966a6f2623ed1a7743b4c080427c WHIRLPOOL b4eec12118d602d1b41edee32ed7c0c61646974060bc44e3eedaf78f7c3015c151998f72573fd2bab1992263dd98f09992772334bae7826048d187de7ed022e5 |
27 |
DIST xen-security-patches-0.tar.xz 5944 SHA256 c0456793064185f0781668264a09a2412a25e2ff8c4ce0d332204e37b94d7e96 SHA512 de812e66563e608548b220aa00c8fd71973af748a00cea79959f46a5b6893a38248d2ea455026af43f47e3f5e566d08b5a6f3d18f22e940d75d2a2ca76cec3d3 WHIRLPOOL 3e18d32798bdfe584ee8d102963090b569ec3660fd5723d8c608091e5c7d935c1edced5e258d92bf51fe06975455a3ae33dfedd01702c6076aedf97ea61f2d1b |
28 |
-DIST xen-security-patches-1.tar.gz 7040 SHA256 30733e9ca71bf4291ff212eb191afb22687ccd9b2579767fe0ee013152980c76 SHA512 89c72897f18a86c2060bb76a182e7cca72ad2f33a3aab964ecae66e057aeecafee2e9986204d6feb98f81ccb740460ee2cb37663b1ab79f47adc1dd73e0091bc WHIRLPOOL c27e612b87b4a30abbf59e6be019e2c21a78bfbdf1715da5498d95607d390d616251768d419ac5ce76087bbf7cdfc410dd0088ba48e425082cea971efcb64346 |
29 |
-DIST xen-security-patches-2.tar.gz 7370 SHA256 f24bf4b0cba29b51ee71f6ef82654cddf157c63d62fc1119f17255b2388e03ab SHA512 209dea670467ff1df18428c15b25229c05d676d1a2f646cddb221544ae888241ade48a22be037f97dce249ac322c1f30bb477675e5e2cc04a2fbd839e02f1f57 WHIRLPOOL ae66a2fbc0d0f0a555d407ebd3198fa58ee043515fb9821d7b9eda46d088bc87b3de16fe015fd1142294429dd2c1c7826e414a55980e27123185c1a86fb0a8a6 |
30 |
-DIST xen-security-patches-4.tar.gz 7731 SHA256 b51c6616a303b4d5123fed1e58240163c8e0cf8e0de32db58c11a40a48124d52 SHA512 cef89bb68bdb4a5f947d6be8ae7a799276fd187e396c5ba85f8aa2b0b5349ba606d3742d5b8d8212df6da38f8af9711416d9a25176e713240a0a7f2194d84fc5 WHIRLPOOL 912dc869fa4eb355a86023133adcb818e87f4979d537a885b3f1c6e35ff141b7d7a33e81105dcddf34aafa4c306df79a210346f5037337173923e1dc8280ac47 |
31 |
DIST xen-security-patches-5.tar.gz 8716 SHA256 afd114f2cb1b623ac1709d75c771006f91b5b2a0a0695f4da3d6aa6f6b340d9f SHA512 f2276759cb418e252052701f5e41e626e1d232098bd7e393e7e58286d356ef33f249c2f9d7b5b1219279de7c4c66832f0d4f761d36bc51e7c10cea973dd9882e WHIRLPOOL 18cb29a0fde10f1bac698c577713db1307c02408778b5d128a4f017ae8be6fba893feb9b8f09fe2d8164dc761d136190d1dbee8a3eb4caa35d8bf976a498d405 |
32 |
DIST xen-security-patches-6.tar.gz 8308 SHA256 b0dc1df6b27073a83b12a17a04a01e74af8c19a1c96d9dda580bb738eaab25f3 SHA512 b9155eef3f18e47288a6a6bb570a073d4c84449fe11fbac4c35cceaa4f7c06624597f63a8768bddd735c345b8c430aeee18b71f43e9b188de3cfa0cbf608dc0a WHIRLPOOL 9933ed07a2419170070a9eedfda200ec5ebef67b6b98c1b435793008c126347cdc8c0ef9ff2cb4fe0b7333ff51211545a3fe2ff726ca7c22d46f231d6d1e82aa |
33 |
DIST xen-upstream-patches-0.tar.gz 2297 SHA256 bf21272ad029391d30bf31896efcadc75267538f6c7de5d239453f19659d58ee SHA512 3f5d60aaebd181bddab4dd02e0064de2f75672f44a687a7331fa40e81d56763fea84504081a449d11403b21ad0ba2dac075f0b1796809ef8d16e244f6be99e3d WHIRLPOOL 4ebe79c8f2ea1c45e88e59941e477ed5639dbca3fe95c9a67e07afb0f4b6fb8b7fea8e58422d7c8f906299e4f37c14b4db15200997e5a92b647df98fa93e10c7 |
34 |
|
35 |
diff --git a/app-emulation/xen/xen-4.5.2-r2.ebuild b/app-emulation/xen/xen-4.5.2-r2.ebuild |
36 |
deleted file mode 100644 |
37 |
index d703dcf..0000000 |
38 |
--- a/app-emulation/xen/xen-4.5.2-r2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,190 +0,0 @@ |
41 |
-# Copyright 1999-2015 Gentoo Foundation |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
-# $Id$ |
44 |
- |
45 |
-EAPI=5 |
46 |
- |
47 |
-PYTHON_COMPAT=( python2_7 ) |
48 |
- |
49 |
-MY_PV=${PV/_/-} |
50 |
-MY_P=${PN}-${PV/_/-} |
51 |
- |
52 |
-if [[ $PV == *9999 ]]; then |
53 |
- KEYWORDS="" |
54 |
- EGIT_REPO_URI="git://xenbits.xen.org/${PN}.git" |
55 |
- live_eclass="git-2" |
56 |
-else |
57 |
- KEYWORDS="amd64 ~arm ~arm64 -x86" |
58 |
- UPSTREAM_VER= |
59 |
- SECURITY_VER=0 |
60 |
- SEC_VER=1 |
61 |
- GENTOO_VER= |
62 |
- |
63 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
64 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
65 |
- [[ -n ${SECURITY_VER} ]] && \ |
66 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
67 |
- [[ -n ${GENTOO_VER} ]] && \ |
68 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
69 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
70 |
- ${UPSTREAM_PATCHSET_URI} |
71 |
- ${SECURITY_PATCHSET_URI} |
72 |
- ${GENTOO_PATCHSET_URI} |
73 |
- https://dev.gentoo.org/~idella4/distfiles/xen-security-patches-${SEC_VER}.tar.gz" |
74 |
- |
75 |
-fi |
76 |
- |
77 |
-inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} |
78 |
- |
79 |
-DESCRIPTION="The Xen virtual machine monitor" |
80 |
-HOMEPAGE="http://xen.org/" |
81 |
-LICENSE="GPL-2" |
82 |
-SLOT="0" |
83 |
-IUSE="custom-cflags debug efi flask xsm" |
84 |
- |
85 |
-DEPEND="${PYTHON_DEPS} |
86 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
87 |
- !efi? ( >=sys-devel/binutils-2.22[-multitarget] )" |
88 |
-RDEPEND="" |
89 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
90 |
- |
91 |
-RESTRICT="test" |
92 |
- |
93 |
-# Approved by QA team in bug #144032 |
94 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
95 |
- |
96 |
-REQUIRED_USE="flask? ( xsm ) |
97 |
- arm? ( debug )" |
98 |
- |
99 |
-S="${WORKDIR}/${MY_P}" |
100 |
- |
101 |
-pkg_setup() { |
102 |
- python-any-r1_pkg_setup |
103 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
104 |
- if use x86 && use amd64; then |
105 |
- die "Confusion! Both x86 and amd64 are set in your use flags!" |
106 |
- elif use x86; then |
107 |
- export XEN_TARGET_ARCH="x86_32" |
108 |
- elif use amd64; then |
109 |
- export XEN_TARGET_ARCH="x86_64" |
110 |
- elif use arm; then |
111 |
- export XEN_TARGET_ARCH="arm32" |
112 |
- elif use arm64; then |
113 |
- export XEN_TARGET_ARCH="arm64" |
114 |
- else |
115 |
- die "Unsupported architecture!" |
116 |
- fi |
117 |
- fi |
118 |
- |
119 |
- if use flask ; then |
120 |
- export "XSM_ENABLE=y" |
121 |
- export "FLASK_ENABLE=y" |
122 |
- elif use xsm ; then |
123 |
- export "XSM_ENABLE=y" |
124 |
- fi |
125 |
-} |
126 |
- |
127 |
-src_prepare() { |
128 |
- # Upstream's patchset |
129 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
130 |
- EPATCH_SUFFIX="patch" \ |
131 |
- EPATCH_FORCE="yes" \ |
132 |
- EPATCH_OPTS="-p1" \ |
133 |
- epatch "${WORKDIR}"/patches-upstream |
134 |
- fi |
135 |
- |
136 |
- if [[ -n ${SECURITY_VER} ]]; then |
137 |
- einfo "Try to apply Xen Security patcheset" |
138 |
- # apply main xen patches |
139 |
- # Add patches from tarball in devspace ~idella4 to those from ~dlan |
140 |
- mkdir "${WORKDIR}"/patches-security/xen || die |
141 |
- mv "${WORKDIR}"/{xsa156-4.5.patch,xsa15[8-9].patch,xsa160-4.6.patch} \ |
142 |
- "${WORKDIR}"/patches-security/xen || die |
143 |
- XEN_SECURITY_MAIN="xsa156-4.5.patch xsa15[8-9].patch xsa160-4.6.patch" |
144 |
- for i in ${XEN_SECURITY_MAIN}; do |
145 |
- EPATCH_SUFFIX="patch" \ |
146 |
- EPATCH_FORCE="yes" \ |
147 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
148 |
- done |
149 |
- fi |
150 |
- |
151 |
- # Gentoo's patchset |
152 |
- if [[ -n ${GENTOO_VER} ]]; then |
153 |
- EPATCH_SUFFIX="patch" \ |
154 |
- EPATCH_FORCE="yes" \ |
155 |
- epatch "${WORKDIR}"/patches-gentoo |
156 |
- fi |
157 |
- |
158 |
- # Drop .config |
159 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
160 |
- |
161 |
- if use efi; then |
162 |
- epatch "${FILESDIR}"/${PN}-4.5-efi.patch |
163 |
- export EFI_VENDOR="gentoo" |
164 |
- export EFI_MOUNTPOINT="boot" |
165 |
- fi |
166 |
- |
167 |
- # if the user *really* wants to use their own custom-cflags, let them |
168 |
- if use custom-cflags; then |
169 |
- einfo "User wants their own CFLAGS - removing defaults" |
170 |
- # try and remove all the default custom-cflags |
171 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
172 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
173 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
174 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
175 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
176 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
177 |
- -i {} \; || die "failed to re-set custom-cflags" |
178 |
- fi |
179 |
- |
180 |
- # remove -Werror for gcc-4.6's sake |
181 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
182 |
- xargs sed -i 's/ *-Werror */ /' |
183 |
- # not strictly necessary to fix this |
184 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
185 |
- |
186 |
- epatch_user |
187 |
-} |
188 |
- |
189 |
-src_configure() { |
190 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
191 |
- |
192 |
- use debug && myopt="${myopt} debug=y" |
193 |
- |
194 |
- if use custom-cflags; then |
195 |
- filter-flags -fPIE -fstack-protector |
196 |
- replace-flags -O3 -O2 |
197 |
- else |
198 |
- unset CFLAGS |
199 |
- fi |
200 |
-} |
201 |
- |
202 |
-src_compile() { |
203 |
- # Send raw LDFLAGS so that --as-needed works |
204 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
205 |
-} |
206 |
- |
207 |
-src_install() { |
208 |
- local myopt |
209 |
- use debug && myopt="${myopt} debug=y" |
210 |
- |
211 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
212 |
- if use efi; then |
213 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
214 |
- fi |
215 |
- |
216 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
217 |
-} |
218 |
- |
219 |
-pkg_postinst() { |
220 |
- local msg="INSTALL_MASK=/boot/xen-syms" |
221 |
- elog "Official Xen Guide and the unoffical wiki page:" |
222 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
223 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
224 |
- |
225 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
226 |
- |
227 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
228 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
229 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
230 |
-} |
231 |
|
232 |
diff --git a/app-emulation/xen/xen-4.5.2-r3.ebuild b/app-emulation/xen/xen-4.5.2-r3.ebuild |
233 |
deleted file mode 100644 |
234 |
index d76cc3d..0000000 |
235 |
--- a/app-emulation/xen/xen-4.5.2-r3.ebuild |
236 |
+++ /dev/null |
237 |
@@ -1,192 +0,0 @@ |
238 |
-# Copyright 1999-2015 Gentoo Foundation |
239 |
-# Distributed under the terms of the GNU General Public License v2 |
240 |
-# $Id$ |
241 |
- |
242 |
-EAPI=5 |
243 |
- |
244 |
-PYTHON_COMPAT=( python2_7 ) |
245 |
- |
246 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
247 |
- |
248 |
-MY_PV=${PV/_/-} |
249 |
-MY_P=${PN}-${PV/_/-} |
250 |
- |
251 |
-if [[ $PV == *9999 ]]; then |
252 |
- inherit git-r3 |
253 |
- KEYWORDS="" |
254 |
- EGIT_REPO_URI="git://xenbits.xen.org/${PN}.git" |
255 |
- SRC_URI="" |
256 |
-else |
257 |
- KEYWORDS="amd64 ~arm ~arm64 -x86" |
258 |
- UPSTREAM_VER= |
259 |
- SECURITY_VER=0 |
260 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
261 |
- SEC_VER=2 |
262 |
- GENTOO_VER= |
263 |
- |
264 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
265 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
266 |
- [[ -n ${SECURITY_VER} ]] && \ |
267 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
268 |
- https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz" |
269 |
- [[ -n ${GENTOO_VER} ]] && \ |
270 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
271 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
272 |
- ${UPSTREAM_PATCHSET_URI} |
273 |
- ${SECURITY_PATCHSET_URI} |
274 |
- ${GENTOO_PATCHSET_URI}" |
275 |
- |
276 |
-fi |
277 |
- |
278 |
-DESCRIPTION="The Xen virtual machine monitor" |
279 |
-HOMEPAGE="http://xen.org/" |
280 |
-LICENSE="GPL-2" |
281 |
-SLOT="0" |
282 |
-IUSE="custom-cflags debug efi flask xsm" |
283 |
- |
284 |
-DEPEND="${PYTHON_DEPS} |
285 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
286 |
- !efi? ( >=sys-devel/binutils-2.22[-multitarget] )" |
287 |
-RDEPEND="" |
288 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
289 |
- |
290 |
-RESTRICT="test" |
291 |
- |
292 |
-# Approved by QA team in bug #144032 |
293 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
294 |
- |
295 |
-REQUIRED_USE="flask? ( xsm ) |
296 |
- arm? ( debug )" |
297 |
- |
298 |
-S="${WORKDIR}/${MY_P}" |
299 |
- |
300 |
-pkg_setup() { |
301 |
- python-any-r1_pkg_setup |
302 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
303 |
- if use x86 && use amd64; then |
304 |
- die "Confusion! Both x86 and amd64 are set in your use flags!" |
305 |
- elif use x86; then |
306 |
- export XEN_TARGET_ARCH="x86_32" |
307 |
- elif use amd64; then |
308 |
- export XEN_TARGET_ARCH="x86_64" |
309 |
- elif use arm; then |
310 |
- export XEN_TARGET_ARCH="arm32" |
311 |
- elif use arm64; then |
312 |
- export XEN_TARGET_ARCH="arm64" |
313 |
- else |
314 |
- die "Unsupported architecture!" |
315 |
- fi |
316 |
- fi |
317 |
- |
318 |
- if use flask ; then |
319 |
- export "XSM_ENABLE=y" |
320 |
- export "FLASK_ENABLE=y" |
321 |
- elif use xsm ; then |
322 |
- export "XSM_ENABLE=y" |
323 |
- fi |
324 |
-} |
325 |
- |
326 |
-src_prepare() { |
327 |
- # Upstream's patchset |
328 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
329 |
- EPATCH_SUFFIX="patch" \ |
330 |
- EPATCH_FORCE="yes" \ |
331 |
- EPATCH_OPTS="-p1" \ |
332 |
- epatch "${WORKDIR}"/patches-upstream |
333 |
- fi |
334 |
- |
335 |
- if [[ -n ${SECURITY_VER} ]]; then |
336 |
- einfo "Try to apply Xen Security patcheset" |
337 |
- # apply main xen patches |
338 |
- # Two parallel systems, both work side by side |
339 |
- # Over time they may concdense into one. This will suffice for now |
340 |
- EPATCH_SUFFIX="patch" |
341 |
- EPATCH_FORCE="yes" |
342 |
- for i in ${XEN_SECURITY_MAIN}; do |
343 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
344 |
- done |
345 |
- |
346 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
347 |
- epatch $i |
348 |
- done |
349 |
- fi |
350 |
- |
351 |
- # Gentoo's patchset |
352 |
- if [[ -n ${GENTOO_VER} ]]; then |
353 |
- EPATCH_SUFFIX="patch" \ |
354 |
- EPATCH_FORCE="yes" \ |
355 |
- epatch "${WORKDIR}"/patches-gentoo |
356 |
- fi |
357 |
- |
358 |
- # Drop .config |
359 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
360 |
- |
361 |
- if use efi; then |
362 |
- epatch "${FILESDIR}"/${PN}-4.5-efi.patch |
363 |
- export EFI_VENDOR="gentoo" |
364 |
- export EFI_MOUNTPOINT="boot" |
365 |
- fi |
366 |
- |
367 |
- # if the user *really* wants to use their own custom-cflags, let them |
368 |
- if use custom-cflags; then |
369 |
- einfo "User wants their own CFLAGS - removing defaults" |
370 |
- # try and remove all the default custom-cflags |
371 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
372 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
373 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
374 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
375 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
376 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
377 |
- -i {} \; || die "failed to re-set custom-cflags" |
378 |
- fi |
379 |
- |
380 |
- # remove -Werror for gcc-4.6's sake |
381 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
382 |
- xargs sed -i 's/ *-Werror */ /' |
383 |
- # not strictly necessary to fix this |
384 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
385 |
- |
386 |
- epatch_user |
387 |
-} |
388 |
- |
389 |
-src_configure() { |
390 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
391 |
- |
392 |
- use debug && myopt="${myopt} debug=y" |
393 |
- |
394 |
- if use custom-cflags; then |
395 |
- filter-flags -fPIE -fstack-protector |
396 |
- replace-flags -O3 -O2 |
397 |
- else |
398 |
- unset CFLAGS |
399 |
- fi |
400 |
-} |
401 |
- |
402 |
-src_compile() { |
403 |
- # Send raw LDFLAGS so that --as-needed works |
404 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
405 |
-} |
406 |
- |
407 |
-src_install() { |
408 |
- local myopt |
409 |
- use debug && myopt="${myopt} debug=y" |
410 |
- |
411 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
412 |
- if use efi; then |
413 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
414 |
- fi |
415 |
- |
416 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
417 |
-} |
418 |
- |
419 |
-pkg_postinst() { |
420 |
- elog "Official Xen Guide and the unoffical wiki page:" |
421 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
422 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
423 |
- |
424 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
425 |
- |
426 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
427 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
428 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
429 |
-} |
430 |
|
431 |
diff --git a/app-emulation/xen/xen-4.6.0-r5.ebuild b/app-emulation/xen/xen-4.6.0-r5.ebuild |
432 |
deleted file mode 100644 |
433 |
index f4d0738..0000000 |
434 |
--- a/app-emulation/xen/xen-4.6.0-r5.ebuild |
435 |
+++ /dev/null |
436 |
@@ -1,190 +0,0 @@ |
437 |
-# Copyright 1999-2015 Gentoo Foundation |
438 |
-# Distributed under the terms of the GNU General Public License v2 |
439 |
-# $Id$ |
440 |
- |
441 |
-EAPI=5 |
442 |
- |
443 |
-PYTHON_COMPAT=( python2_7 ) |
444 |
- |
445 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
446 |
- |
447 |
-MY_PV=${PV/_/-} |
448 |
-MY_P=${PN}-${PV/_/-} |
449 |
- |
450 |
-if [[ $PV == *9999 ]]; then |
451 |
- inherit git-r3 |
452 |
- KEYWORDS="" |
453 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
454 |
- SRC_URI="" |
455 |
-else |
456 |
- KEYWORDS="amd64 ~arm ~arm64 -x86" |
457 |
- UPSTREAM_VER=0 |
458 |
- SECURITY_VER=0 |
459 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
460 |
- SEC_VER=4 |
461 |
- GENTOO_VER= |
462 |
- |
463 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
464 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
465 |
- [[ -n ${SECURITY_VER} ]] && \ |
466 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
467 |
- https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz" |
468 |
- [[ -n ${GENTOO_VER} ]] && \ |
469 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
470 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
471 |
- ${UPSTREAM_PATCHSET_URI} |
472 |
- ${SECURITY_PATCHSET_URI} |
473 |
- ${GENTOO_PATCHSET_URI}" |
474 |
-fi |
475 |
- |
476 |
-DESCRIPTION="The Xen virtual machine monitor" |
477 |
-HOMEPAGE="http://xen.org/" |
478 |
-LICENSE="GPL-2" |
479 |
-SLOT="0" |
480 |
-IUSE="custom-cflags debug efi flask" |
481 |
- |
482 |
-DEPEND="${PYTHON_DEPS} |
483 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
484 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
485 |
-RDEPEND="" |
486 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
487 |
- |
488 |
-RESTRICT="test" |
489 |
- |
490 |
-# Approved by QA team in bug #144032 |
491 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
492 |
- |
493 |
-REQUIRED_USE="arm? ( debug )" |
494 |
- |
495 |
-S="${WORKDIR}/${MY_P}" |
496 |
- |
497 |
-pkg_setup() { |
498 |
- python-any-r1_pkg_setup |
499 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
500 |
- if use amd64; then |
501 |
- export XEN_TARGET_ARCH="x86_64" |
502 |
- elif use arm; then |
503 |
- export XEN_TARGET_ARCH="arm32" |
504 |
- elif use arm64; then |
505 |
- export XEN_TARGET_ARCH="arm64" |
506 |
- else |
507 |
- die "Unsupported architecture!" |
508 |
- fi |
509 |
- fi |
510 |
- |
511 |
- if use flask ; then |
512 |
- export "XSM_ENABLE=y" |
513 |
- export "FLASK_ENABLE=y" |
514 |
- fi |
515 |
-} |
516 |
- |
517 |
-src_prepare() { |
518 |
- # Upstream's patchset |
519 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
520 |
- EPATCH_SUFFIX="patch" \ |
521 |
- EPATCH_FORCE="yes" \ |
522 |
- EPATCH_OPTS="-p1" \ |
523 |
- epatch "${WORKDIR}"/patches-upstream |
524 |
- fi |
525 |
- |
526 |
- if [[ -n ${SECURITY_VER} ]]; then |
527 |
- einfo "Try to apply Xen Security patcheset" |
528 |
- # apply main xen patches |
529 |
- # Two parallel systems, both work side by side |
530 |
- # Over time they may concdense into one. This will suffice for now |
531 |
- EPATCH_SUFFIX="patch" |
532 |
- EPATCH_FORCE="yes" |
533 |
- for i in ${XEN_SECURITY_MAIN}; do |
534 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
535 |
- done |
536 |
- |
537 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
538 |
- epatch $i |
539 |
- done |
540 |
- fi |
541 |
- |
542 |
- # Gentoo's patchset |
543 |
- if [[ -n ${GENTOO_VER} ]]; then |
544 |
- EPATCH_SUFFIX="patch" \ |
545 |
- EPATCH_FORCE="yes" \ |
546 |
- epatch "${WORKDIR}"/patches-gentoo |
547 |
- fi |
548 |
- |
549 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
550 |
- |
551 |
- # Drop .config |
552 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
553 |
- |
554 |
- if use efi; then |
555 |
- export EFI_VENDOR="gentoo" |
556 |
- export EFI_MOUNTPOINT="boot" |
557 |
- fi |
558 |
- |
559 |
- # if the user *really* wants to use their own custom-cflags, let them |
560 |
- if use custom-cflags; then |
561 |
- einfo "User wants their own CFLAGS - removing defaults" |
562 |
- # try and remove all the default custom-cflags |
563 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
564 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
565 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
566 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
567 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
568 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
569 |
- -i {} \; || die "failed to re-set custom-cflags" |
570 |
- fi |
571 |
- |
572 |
- # remove -Werror for gcc-4.6's sake |
573 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
574 |
- xargs sed -i 's/ *-Werror */ /' |
575 |
- # not strictly necessary to fix this |
576 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
577 |
- |
578 |
- epatch_user |
579 |
-} |
580 |
- |
581 |
-src_configure() { |
582 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
583 |
- |
584 |
- use debug && myopt="${myopt} debug=y" |
585 |
- |
586 |
- if use custom-cflags; then |
587 |
- filter-flags -fPIE -fstack-protector |
588 |
- replace-flags -O3 -O2 |
589 |
- else |
590 |
- unset CFLAGS |
591 |
- unset LDFLAGS |
592 |
- unset ASFLAGS |
593 |
- fi |
594 |
-} |
595 |
- |
596 |
-src_compile() { |
597 |
- # Send raw LDFLAGS so that --as-needed works |
598 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
599 |
-} |
600 |
- |
601 |
-src_install() { |
602 |
- local myopt |
603 |
- use debug && myopt="${myopt} debug=y" |
604 |
- |
605 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
606 |
- if use efi; then |
607 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
608 |
- fi |
609 |
- |
610 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
611 |
- |
612 |
- # make install likes to throw in some extra EFI bits if it built |
613 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
614 |
-} |
615 |
- |
616 |
-pkg_postinst() { |
617 |
- elog "Official Xen Guide and the unoffical wiki page:" |
618 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
619 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
620 |
- |
621 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
622 |
- |
623 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
624 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
625 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
626 |
-} |
627 |
|
628 |
diff --git a/app-emulation/xen/xen-4.6.0-r6.ebuild b/app-emulation/xen/xen-4.6.0-r6.ebuild |
629 |
deleted file mode 100644 |
630 |
index 557fe40..0000000 |
631 |
--- a/app-emulation/xen/xen-4.6.0-r6.ebuild |
632 |
+++ /dev/null |
633 |
@@ -1,193 +0,0 @@ |
634 |
-# Copyright 1999-2015 Gentoo Foundation |
635 |
-# Distributed under the terms of the GNU General Public License v2 |
636 |
-# $Id$ |
637 |
- |
638 |
-EAPI=5 |
639 |
- |
640 |
-PYTHON_COMPAT=( python2_7 ) |
641 |
- |
642 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
643 |
- |
644 |
-MY_PV=${PV/_/-} |
645 |
-MY_P=${PN}-${PV/_/-} |
646 |
- |
647 |
-if [[ $PV == *9999 ]]; then |
648 |
- inherit git-r3 |
649 |
- KEYWORDS="" |
650 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
651 |
- SRC_URI="" |
652 |
-else |
653 |
- KEYWORDS="~amd64 ~arm ~arm64 -x86" |
654 |
- UPSTREAM_VER=0 |
655 |
- SECURITY_VER=0 |
656 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
657 |
- SEC_VER=4 |
658 |
- GENTOO_VER= |
659 |
- |
660 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
661 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
662 |
- [[ -n ${SECURITY_VER} ]] && \ |
663 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
664 |
- https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz" |
665 |
- [[ -n ${GENTOO_VER} ]] && \ |
666 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
667 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
668 |
- ${UPSTREAM_PATCHSET_URI} |
669 |
- ${SECURITY_PATCHSET_URI} |
670 |
- ${GENTOO_PATCHSET_URI}" |
671 |
-fi |
672 |
- |
673 |
-DESCRIPTION="The Xen virtual machine monitor" |
674 |
-HOMEPAGE="http://xen.org/" |
675 |
-LICENSE="GPL-2" |
676 |
-SLOT="0" |
677 |
-IUSE="custom-cflags debug efi flask" |
678 |
- |
679 |
-DEPEND="${PYTHON_DEPS} |
680 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
681 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
682 |
-RDEPEND="" |
683 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
684 |
- |
685 |
-# no tests are available for the hypervisor |
686 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
687 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
688 |
-RESTRICT="test splitdebug strip" |
689 |
- |
690 |
-# Approved by QA team in bug #144032 |
691 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
692 |
- |
693 |
-REQUIRED_USE="arm? ( debug )" |
694 |
- |
695 |
-S="${WORKDIR}/${MY_P}" |
696 |
- |
697 |
-pkg_setup() { |
698 |
- python-any-r1_pkg_setup |
699 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
700 |
- if use amd64; then |
701 |
- export XEN_TARGET_ARCH="x86_64" |
702 |
- elif use arm; then |
703 |
- export XEN_TARGET_ARCH="arm32" |
704 |
- elif use arm64; then |
705 |
- export XEN_TARGET_ARCH="arm64" |
706 |
- else |
707 |
- die "Unsupported architecture!" |
708 |
- fi |
709 |
- fi |
710 |
- |
711 |
- if use flask ; then |
712 |
- export "XSM_ENABLE=y" |
713 |
- export "FLASK_ENABLE=y" |
714 |
- fi |
715 |
-} |
716 |
- |
717 |
-src_prepare() { |
718 |
- # Upstream's patchset |
719 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
720 |
- EPATCH_SUFFIX="patch" \ |
721 |
- EPATCH_FORCE="yes" \ |
722 |
- EPATCH_OPTS="-p1" \ |
723 |
- epatch "${WORKDIR}"/patches-upstream |
724 |
- fi |
725 |
- |
726 |
- if [[ -n ${SECURITY_VER} ]]; then |
727 |
- einfo "Try to apply Xen Security patcheset" |
728 |
- # apply main xen patches |
729 |
- # Two parallel systems, both work side by side |
730 |
- # Over time they may concdense into one. This will suffice for now |
731 |
- EPATCH_SUFFIX="patch" |
732 |
- EPATCH_FORCE="yes" |
733 |
- for i in ${XEN_SECURITY_MAIN}; do |
734 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
735 |
- done |
736 |
- |
737 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
738 |
- epatch $i |
739 |
- done |
740 |
- fi |
741 |
- |
742 |
- # Gentoo's patchset |
743 |
- if [[ -n ${GENTOO_VER} ]]; then |
744 |
- EPATCH_SUFFIX="patch" \ |
745 |
- EPATCH_FORCE="yes" \ |
746 |
- epatch "${WORKDIR}"/patches-gentoo |
747 |
- fi |
748 |
- |
749 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
750 |
- |
751 |
- # Drop .config |
752 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
753 |
- |
754 |
- if use efi; then |
755 |
- export EFI_VENDOR="gentoo" |
756 |
- export EFI_MOUNTPOINT="boot" |
757 |
- fi |
758 |
- |
759 |
- # if the user *really* wants to use their own custom-cflags, let them |
760 |
- if use custom-cflags; then |
761 |
- einfo "User wants their own CFLAGS - removing defaults" |
762 |
- # try and remove all the default custom-cflags |
763 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
764 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
765 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
766 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
767 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
768 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
769 |
- -i {} \; || die "failed to re-set custom-cflags" |
770 |
- fi |
771 |
- |
772 |
- # remove -Werror for gcc-4.6's sake |
773 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
774 |
- xargs sed -i 's/ *-Werror */ /' |
775 |
- # not strictly necessary to fix this |
776 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
777 |
- |
778 |
- epatch_user |
779 |
-} |
780 |
- |
781 |
-src_configure() { |
782 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
783 |
- |
784 |
- use debug && myopt="${myopt} debug=y" |
785 |
- |
786 |
- if use custom-cflags; then |
787 |
- filter-flags -fPIE -fstack-protector |
788 |
- replace-flags -O3 -O2 |
789 |
- else |
790 |
- unset CFLAGS |
791 |
- unset LDFLAGS |
792 |
- unset ASFLAGS |
793 |
- fi |
794 |
-} |
795 |
- |
796 |
-src_compile() { |
797 |
- # Send raw LDFLAGS so that --as-needed works |
798 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
799 |
-} |
800 |
- |
801 |
-src_install() { |
802 |
- local myopt |
803 |
- use debug && myopt="${myopt} debug=y" |
804 |
- |
805 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
806 |
- if use efi; then |
807 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
808 |
- fi |
809 |
- |
810 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
811 |
- |
812 |
- # make install likes to throw in some extra EFI bits if it built |
813 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
814 |
-} |
815 |
- |
816 |
-pkg_postinst() { |
817 |
- elog "Official Xen Guide and the unoffical wiki page:" |
818 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
819 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
820 |
- |
821 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
822 |
- |
823 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
824 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
825 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
826 |
-} |
827 |
|
828 |
diff --git a/app-emulation/xen/xen-4.6.0-r7.ebuild b/app-emulation/xen/xen-4.6.0-r7.ebuild |
829 |
deleted file mode 100644 |
830 |
index c9b19e3..0000000 |
831 |
--- a/app-emulation/xen/xen-4.6.0-r7.ebuild |
832 |
+++ /dev/null |
833 |
@@ -1,197 +0,0 @@ |
834 |
-# Copyright 1999-2016 Gentoo Foundation |
835 |
-# Distributed under the terms of the GNU General Public License v2 |
836 |
-# $Id$ |
837 |
- |
838 |
-EAPI=5 |
839 |
- |
840 |
-PYTHON_COMPAT=( python2_7 ) |
841 |
- |
842 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
843 |
- |
844 |
-MY_PV=${PV/_/-} |
845 |
-MY_P=${PN}-${PV/_/-} |
846 |
- |
847 |
-if [[ $PV == *9999 ]]; then |
848 |
- inherit git-r3 |
849 |
- KEYWORDS="" |
850 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
851 |
- SRC_URI="" |
852 |
-else |
853 |
- KEYWORDS="~amd64 ~arm ~arm64 -x86" |
854 |
- UPSTREAM_VER=0 |
855 |
- SECURITY_VER=0 |
856 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
857 |
- # first instance of UPS_VER (usptream ver) |
858 |
- UPS_VER=0 |
859 |
- SEC_VER=4 |
860 |
- GENTOO_VER= |
861 |
- |
862 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
863 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
864 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz" |
865 |
- [[ -n ${SECURITY_VER} ]] && \ |
866 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
867 |
- https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SEC_VER}.tar.gz" |
868 |
- [[ -n ${GENTOO_VER} ]] && \ |
869 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
870 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
871 |
- ${UPSTREAM_PATCHSET_URI} |
872 |
- ${SECURITY_PATCHSET_URI} |
873 |
- ${GENTOO_PATCHSET_URI}" |
874 |
-fi |
875 |
- |
876 |
-DESCRIPTION="The Xen virtual machine monitor" |
877 |
-HOMEPAGE="http://xen.org/" |
878 |
-LICENSE="GPL-2" |
879 |
-SLOT="0" |
880 |
-IUSE="custom-cflags debug efi flask" |
881 |
- |
882 |
-DEPEND="${PYTHON_DEPS} |
883 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
884 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
885 |
-RDEPEND="" |
886 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
887 |
- |
888 |
-# no tests are available for the hypervisor |
889 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
890 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
891 |
-RESTRICT="test splitdebug strip" |
892 |
- |
893 |
-# Approved by QA team in bug #144032 |
894 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
895 |
- |
896 |
-REQUIRED_USE="arm? ( debug )" |
897 |
- |
898 |
-S="${WORKDIR}/${MY_P}" |
899 |
- |
900 |
-pkg_setup() { |
901 |
- python-any-r1_pkg_setup |
902 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
903 |
- if use amd64; then |
904 |
- export XEN_TARGET_ARCH="x86_64" |
905 |
- elif use arm; then |
906 |
- export XEN_TARGET_ARCH="arm32" |
907 |
- elif use arm64; then |
908 |
- export XEN_TARGET_ARCH="arm64" |
909 |
- else |
910 |
- die "Unsupported architecture!" |
911 |
- fi |
912 |
- fi |
913 |
- |
914 |
- if use flask ; then |
915 |
- export "XSM_ENABLE=y" |
916 |
- export "FLASK_ENABLE=y" |
917 |
- fi |
918 |
-} |
919 |
- |
920 |
-src_prepare() { |
921 |
- # Upstream's patchset |
922 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
923 |
- EPATCH_SUFFIX="patch" \ |
924 |
- EPATCH_FORCE="yes" \ |
925 |
- EPATCH_OPTS="-p1" \ |
926 |
- epatch "${WORKDIR}"/patches-upstream \ |
927 |
- "${WORKDIR}"/libexec.patch |
928 |
- fi |
929 |
- |
930 |
- if [[ -n ${SECURITY_VER} ]]; then |
931 |
- einfo "Try to apply Xen Security patcheset" |
932 |
- # apply main xen patches |
933 |
- # Two parallel systems, both work side by side |
934 |
- # Over time they may concdense into one. This will suffice for now |
935 |
- EPATCH_SUFFIX="patch" |
936 |
- EPATCH_FORCE="yes" |
937 |
- for i in ${XEN_SECURITY_MAIN}; do |
938 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
939 |
- done |
940 |
- |
941 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
942 |
- epatch $i |
943 |
- done |
944 |
- fi |
945 |
- |
946 |
- # Gentoo's patchset |
947 |
- if [[ -n ${GENTOO_VER} ]]; then |
948 |
- EPATCH_SUFFIX="patch" \ |
949 |
- EPATCH_FORCE="yes" \ |
950 |
- epatch "${WORKDIR}"/patches-gentoo |
951 |
- fi |
952 |
- |
953 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
954 |
- |
955 |
- # Drop .config |
956 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
957 |
- |
958 |
- if use efi; then |
959 |
- export EFI_VENDOR="gentoo" |
960 |
- export EFI_MOUNTPOINT="boot" |
961 |
- fi |
962 |
- |
963 |
- # if the user *really* wants to use their own custom-cflags, let them |
964 |
- if use custom-cflags; then |
965 |
- einfo "User wants their own CFLAGS - removing defaults" |
966 |
- # try and remove all the default custom-cflags |
967 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
968 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
969 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
970 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
971 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
972 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
973 |
- -i {} \; || die "failed to re-set custom-cflags" |
974 |
- fi |
975 |
- |
976 |
- # remove -Werror for gcc-4.6's sake |
977 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
978 |
- xargs sed -i 's/ *-Werror */ /' |
979 |
- # not strictly necessary to fix this |
980 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
981 |
- |
982 |
- epatch_user |
983 |
-} |
984 |
- |
985 |
-src_configure() { |
986 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
987 |
- |
988 |
- use debug && myopt="${myopt} debug=y" |
989 |
- |
990 |
- if use custom-cflags; then |
991 |
- filter-flags -fPIE -fstack-protector |
992 |
- replace-flags -O3 -O2 |
993 |
- else |
994 |
- unset CFLAGS |
995 |
- unset LDFLAGS |
996 |
- unset ASFLAGS |
997 |
- fi |
998 |
-} |
999 |
- |
1000 |
-src_compile() { |
1001 |
- # Send raw LDFLAGS so that --as-needed works |
1002 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
1003 |
-} |
1004 |
- |
1005 |
-src_install() { |
1006 |
- local myopt |
1007 |
- use debug && myopt="${myopt} debug=y" |
1008 |
- |
1009 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
1010 |
- if use efi; then |
1011 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
1012 |
- fi |
1013 |
- |
1014 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
1015 |
- |
1016 |
- # make install likes to throw in some extra EFI bits if it built |
1017 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
1018 |
-} |
1019 |
- |
1020 |
-pkg_postinst() { |
1021 |
- elog "Official Xen Guide and the unoffical wiki page:" |
1022 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
1023 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
1024 |
- |
1025 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
1026 |
- |
1027 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
1028 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
1029 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
1030 |
-} |