Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen/
Date: Tue, 02 Oct 2018 11:03:22
Message-Id: 1538478185.0f32284515ca56d05409bbfa8cefcad9e217f845.whissi@gentoo
1 commit: 0f32284515ca56d05409bbfa8cefcad9e217f845
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 27 08:22:12 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 2 11:03:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f322845
7
8 app-emulation/xen: drop old
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 app-emulation/xen/Manifest | 6 --
15 app-emulation/xen/xen-4.10.0.ebuild | 172 ---------------------------------
16 app-emulation/xen/xen-4.10.1-r1.ebuild | 172 ---------------------------------
17 app-emulation/xen/xen-4.11.0-r1.ebuild | 172 ---------------------------------
18 app-emulation/xen/xen-4.9.2.ebuild | 171 --------------------------------
19 5 files changed, 693 deletions(-)
20
21 diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest
22 index 64535965688..f6809fe1618 100644
23 --- a/app-emulation/xen/Manifest
24 +++ b/app-emulation/xen/Manifest
25 @@ -1,12 +1,6 @@
26 -DIST xen-4.10.0-upstream-patches-0.tar.xz 70884 BLAKE2B 9a27e7989486ba3ba59548de356384527cc5b78e63b6ed042506e6534e488272369f021cd2daa516820313c3fe18625a5864794ae0806e7018b8ad28b0a294b1 SHA512 e64bf1d30d24e922c60c3b518a4de7874b43cc695134b4cdd65f6d95ae9ae579c521fab13ca82409fde55e43815d072c3194997e2bda106204cbf329e93a0a00
27 -DIST xen-4.10.0.tar.gz 24618123 BLAKE2B 009faa980f9734525c137d525e626bfa3443c285aeb6b4af91bb2c32a2e98376ded0b1114b541d11e2d4353f4f588d58e8add5b1e0d7de2fe3399d4687c5bfae SHA512 5a37935c382f9cfe3641a35c3be0ba11689bca10c7d3c2401963513e3a834ee8d0c8a0ddcf3716dbf0a795aea1bab78caf19acf1272e5e054bf012cfa06a4690
28 -DIST xen-4.10.1-upstream-patches-1.tar.xz 85048 BLAKE2B d00f01980e1c889b2f6899970999b93a7ddbaa03f88219d576bfbe4ccfe0ef3f75afad1538065045833430baa16b64d8dd7eb42af6ad7c3ef948601b941c51bc SHA512 ede74a53faf82712d6ee0cf2a995bb78b7079481e47e829243632fac40069194671e6b9b765e535aa533f618cdcd7715f540e81acd947a42f7b8cbb693a3df82
29 DIST xen-4.10.1-upstream-patches-2.tar.xz 117588 BLAKE2B ddcd58964117652b50f3524d89089e2e9b14a8399fb5bd2db5d12827035ab94cedbfd5d65134d8953e4062a50e0e8a9b320e9c34008db8fd364456f47fd9cd26 SHA512 49ee8497af3753f3d611bf12c65fb7a79abb018862f1af096e9dde3ddfe8780bb95fc3da338c8d5f16a5d6d233d606d4cf8025a3d0e2897bf2668a1d5b27b198
30 DIST xen-4.10.1.tar.gz 24674240 BLAKE2B f9a7e0c637db865ab32ad6b6185ab96022903aff65a18e194286a3fc372d4a45f6682cd636b7ac5b4fa0125e54ed51f8876a411d498cf75791718fd088c4a6d2 SHA512 236c02bee69e33644703ed26d323d4c491a91fc05bd0ee0990a7368579f7c82f5bb4510845bf80348fd923024d7d60d521f593dfd0365d971dc592f8ef10fbea
31 DIST xen-4.10.2-upstream-patches-0.tar.xz 3884 BLAKE2B 4584fbe849e80c638db07f49a19cc26fe79606b76eef96258a02b198e4a198053785e76dd82a666e1b719641f5ca675aa7d35d97a8237ccc2d22485b790ebec9 SHA512 83bb37e241efdcb5641cb5423d09c1f04d3eb5cd89c72b74934d7712705735f9cfa00b3a2291947693409f966554660abd33f07b08cc94a4a0df8ce8b359996a
32 DIST xen-4.10.2.tar.gz 24697204 BLAKE2B b331d3ad8d7842446f7d2da5dd31560f636aa1408dd3cc8798dff35b868ef5a609d17e97ef4355e1e5aa825a5abc74103796f9a8015037f0a564ffcebd825722 SHA512 2e301b4d6eb106fcb52203bc1208c8fd1fc7bb5d795166c0f86e4085227050301f7daa6f21db440c47bc2ca2c7f87d9b96753cfdf3fa724e0416b5679b84c163
33 -DIST xen-4.11.0-upstream-patches-0.tar.xz 21720 BLAKE2B 92c2ef90ca6af5032e9181d8edbe2b91a4117cc402f5abdff208aa76ee76b56ce75f576c56220d2ebf6d1a21957c10f7c45a2c88d2c77aa8b17fa9a0a99e5b57 SHA512 6ea0ee376251b20b7fa9b6334bca462f115d8a9929e31ae269ae9591b433b46e4e9076a2d2e39ec5f868d5d74739ad7b0ba0d9244e599da5255ccca0babd669e
34 DIST xen-4.11.0-upstream-patches-1.tar.xz 56664 BLAKE2B 27579f4e628bb0d3fdd59f7e133e9134d4ca175842dfdae3a3f765b133254239ae3bca94d75dd655735b5bcbd67f9b8d444dd227028642e6e459e57ed8a20341 SHA512 e90b8e7fa9433e93b1620a776833a6d3578babebe5d73dcaae11186f473945a2270046932ab314a9c6049d3b460a655456f487a5b59730fe88a4f08d482c47a1
35 DIST xen-4.11.0.tar.gz 25131533 BLAKE2B 892639b8bcd9b9956104e4d5137ffd88e17f92d965fa967b4af8d74a4fddcc21c6971c53026e0fb5ce833ab2c25c68f827abcac0b7b1dcebc21dca645c465573 SHA512 33d431c194f10d5ee767558404a1f80a66b3df019012b0bbd587fcbc9524e1bba7ea04269020ce891fe9d211d2f81c63bf78abedcdbe1595aee26251c803a50a
36 -DIST xen-4.9.2-upstream-patches-1.tar.xz 13812 BLAKE2B fe8bf636dea9fbd21c9fc432817dc8e21ffb78bf70279b86babb6963a0dbebc17493eb6c016ee1093ef36e66693df25e8aeb35a568260f2e62a97a787b3c70bb SHA512 d75ea99531a10279736f89057857c257955800df6fe42bd742babfd5a9e527a2cb0d4dc5505b41df5b9db82246a8414f14b7084997ee798ffab657a3991b17ae
37 -DIST xen-4.9.2.tar.gz 23392753 BLAKE2B 5f96f0e5062eff8ac2971eef85ea2bae0e94e7542151237937a1cf7e74690bb0ce1c952e830d2fc13b3277f70b9ed1de511afe4f780ad7b3be0c58742ece39b2 SHA512 e06aec25439abcc548c174ba8e271c23031ea704bcc2480905140aa68490064fbb1c58d9c4174f6617b4f7bbcddfda284317df6f480a6e5b5b5a2c71fbe0ac93
38
39 diff --git a/app-emulation/xen/xen-4.10.0.ebuild b/app-emulation/xen/xen-4.10.0.ebuild
40 deleted file mode 100644
41 index 8027e789237..00000000000
42 --- a/app-emulation/xen/xen-4.10.0.ebuild
43 +++ /dev/null
44 @@ -1,172 +0,0 @@
45 -# Copyright 1999-2018 Gentoo Foundation
46 -# Distributed under the terms of the GNU General Public License v2
47 -
48 -EAPI=6
49 -
50 -PYTHON_COMPAT=( python2_7 )
51 -
52 -inherit eutils flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
53 -
54 -MY_PV=${PV/_/-}
55 -MY_P=${PN}-${MY_PV}
56 -
57 -if [[ $PV == *9999 ]]; then
58 - inherit git-r3
59 - KEYWORDS=""
60 - EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
61 - SRC_URI=""
62 -else
63 - KEYWORDS="~amd64 ~arm -x86"
64 - UPSTREAM_VER=0
65 - SECURITY_VER=
66 - GENTOO_VER=
67 -
68 - [[ -n ${UPSTREAM_VER} ]] && \
69 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
70 - https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
71 - [[ -n ${SECURITY_VER} ]] && \
72 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
73 - [[ -n ${GENTOO_VER} ]] && \
74 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
75 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
76 - ${UPSTREAM_PATCHSET_URI}
77 - ${SECURITY_PATCHSET_URI}
78 - ${GENTOO_PATCHSET_URI}"
79 -fi
80 -
81 -DESCRIPTION="The Xen virtual machine monitor"
82 -HOMEPAGE="https://www.xenproject.org"
83 -LICENSE="GPL-2"
84 -SLOT="0"
85 -IUSE="custom-cflags debug efi flask"
86 -
87 -DEPEND="${PYTHON_DEPS}
88 - efi? ( >=sys-devel/binutils-2.22[multitarget] )
89 - !efi? ( >=sys-devel/binutils-2.22 )"
90 -RDEPEND=""
91 -PDEPEND="~app-emulation/xen-tools-${PV}"
92 -
93 -# no tests are available for the hypervisor
94 -# prevent the silliness of /usr/lib/debug/usr/lib/debug files
95 -# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
96 -RESTRICT="test splitdebug strip"
97 -
98 -# Approved by QA team in bug #144032
99 -QA_WX_LOAD="boot/xen-syms-${PV}"
100 -
101 -REQUIRED_USE="arm? ( debug )"
102 -
103 -S="${WORKDIR}/${MY_P}"
104 -
105 -pkg_setup() {
106 - python-any-r1_pkg_setup
107 - if [[ -z ${XEN_TARGET_ARCH} ]]; then
108 - if 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 - fi
123 -}
124 -
125 -src_prepare() {
126 - # Upstream's patchset
127 - [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
128 -
129 - # Security patchset
130 - if [[ -n ${SECURITY_VER} ]]; then
131 - einfo "Try to apply Xen Security patch set"
132 - # apply main xen patches
133 - # Two parallel systems, both work side by side
134 - # Over time they may concdense into one. This will suffice for now
135 - source "${WORKDIR}"/patches-security/${PV}.conf
136 -
137 - local i
138 - for i in ${XEN_SECURITY_MAIN}; do
139 - eapply "${WORKDIR}"/patches-security/xen/$i
140 - done
141 - fi
142 -
143 - # Gentoo's patchset
144 - [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
145 -
146 - eapply "${FILESDIR}"/${PN}-4.6-efi.patch
147 -
148 - # Drop .config
149 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
150 -
151 - if use efi; then
152 - export EFI_VENDOR="gentoo"
153 - export EFI_MOUNTPOINT="boot"
154 - fi
155 -
156 - # if the user *really* wants to use their own custom-cflags, let them
157 - if use custom-cflags; then
158 - einfo "User wants their own CFLAGS - removing defaults"
159 - # try and remove all the default custom-cflags
160 - find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
161 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
162 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
163 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
164 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
165 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
166 - -i {} \; || die "failed to re-set custom-cflags"
167 - fi
168 -
169 - default
170 -}
171 -
172 -src_configure() {
173 - use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
174 -
175 - use debug && myopt="${myopt} debug=y"
176 -
177 - if use custom-cflags; then
178 - filter-flags -fPIE -fstack-protector
179 - replace-flags -O3 -O2
180 - else
181 - unset CFLAGS
182 - unset LDFLAGS
183 - unset ASFLAGS
184 - fi
185 -}
186 -
187 -src_compile() {
188 - # Send raw LDFLAGS so that --as-needed works
189 - emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
190 -}
191 -
192 -src_install() {
193 - local myopt
194 - use debug && myopt="${myopt} debug=y"
195 -
196 - # The 'make install' doesn't 'mkdir -p' the subdirs
197 - if use efi; then
198 - mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
199 - fi
200 -
201 - emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
202 -
203 - # make install likes to throw in some extra EFI bits if it built
204 - use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
205 -}
206 -
207 -pkg_postinst() {
208 - elog "Official Xen Guide:"
209 - elog " https://wiki.gentoo.org/wiki/Xen"
210 -
211 - use efi && einfo "The efi executable is installed in boot/efi/gentoo"
212 -
213 - elog "You can optionally block the installation of /boot/xen-syms by an entry"
214 - elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
215 - elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
216 -}
217
218 diff --git a/app-emulation/xen/xen-4.10.1-r1.ebuild b/app-emulation/xen/xen-4.10.1-r1.ebuild
219 deleted file mode 100644
220 index 4a462ae958d..00000000000
221 --- a/app-emulation/xen/xen-4.10.1-r1.ebuild
222 +++ /dev/null
223 @@ -1,172 +0,0 @@
224 -# Copyright 1999-2018 Gentoo Foundation
225 -# Distributed under the terms of the GNU General Public License v2
226 -
227 -EAPI=6
228 -
229 -PYTHON_COMPAT=( python2_7 )
230 -
231 -inherit eutils flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
232 -
233 -MY_PV=${PV/_/-}
234 -MY_P=${PN}-${MY_PV}
235 -
236 -if [[ $PV == *9999 ]]; then
237 - inherit git-r3
238 - KEYWORDS=""
239 - EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
240 - SRC_URI=""
241 -else
242 - KEYWORDS="~amd64 ~arm -x86"
243 - UPSTREAM_VER=1
244 - SECURITY_VER=
245 - GENTOO_VER=
246 -
247 - [[ -n ${UPSTREAM_VER} ]] && \
248 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
249 - https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
250 - [[ -n ${SECURITY_VER} ]] && \
251 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
252 - [[ -n ${GENTOO_VER} ]] && \
253 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
254 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
255 - ${UPSTREAM_PATCHSET_URI}
256 - ${SECURITY_PATCHSET_URI}
257 - ${GENTOO_PATCHSET_URI}"
258 -fi
259 -
260 -DESCRIPTION="The Xen virtual machine monitor"
261 -HOMEPAGE="https://www.xenproject.org"
262 -LICENSE="GPL-2"
263 -SLOT="0"
264 -IUSE="custom-cflags debug efi flask"
265 -
266 -DEPEND="${PYTHON_DEPS}
267 - efi? ( >=sys-devel/binutils-2.22[multitarget] )
268 - !efi? ( >=sys-devel/binutils-2.22 )"
269 -RDEPEND=""
270 -PDEPEND="~app-emulation/xen-tools-${PV}"
271 -
272 -# no tests are available for the hypervisor
273 -# prevent the silliness of /usr/lib/debug/usr/lib/debug files
274 -# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
275 -RESTRICT="test splitdebug strip"
276 -
277 -# Approved by QA team in bug #144032
278 -QA_WX_LOAD="boot/xen-syms-${PV}"
279 -
280 -REQUIRED_USE="arm? ( debug )"
281 -
282 -S="${WORKDIR}/${MY_P}"
283 -
284 -pkg_setup() {
285 - python-any-r1_pkg_setup
286 - if [[ -z ${XEN_TARGET_ARCH} ]]; then
287 - if use amd64; then
288 - export XEN_TARGET_ARCH="x86_64"
289 - elif use arm; then
290 - export XEN_TARGET_ARCH="arm32"
291 - elif use arm64; then
292 - export XEN_TARGET_ARCH="arm64"
293 - else
294 - die "Unsupported architecture!"
295 - fi
296 - fi
297 -
298 - if use flask ; then
299 - export "XSM_ENABLE=y"
300 - export "FLASK_ENABLE=y"
301 - fi
302 -}
303 -
304 -src_prepare() {
305 - # Upstream's patchset
306 - [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
307 -
308 - # Security patchset
309 - if [[ -n ${SECURITY_VER} ]]; then
310 - einfo "Try to apply Xen Security patch set"
311 - # apply main xen patches
312 - # Two parallel systems, both work side by side
313 - # Over time they may concdense into one. This will suffice for now
314 - source "${WORKDIR}"/patches-security/${PV}.conf
315 -
316 - local i
317 - for i in ${XEN_SECURITY_MAIN}; do
318 - eapply "${WORKDIR}"/patches-security/xen/$i
319 - done
320 - fi
321 -
322 - # Gentoo's patchset
323 - [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
324 -
325 - eapply "${FILESDIR}"/${PN}-4.6-efi.patch
326 -
327 - # Drop .config
328 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
329 -
330 - if use efi; then
331 - export EFI_VENDOR="gentoo"
332 - export EFI_MOUNTPOINT="boot"
333 - fi
334 -
335 - # if the user *really* wants to use their own custom-cflags, let them
336 - if use custom-cflags; then
337 - einfo "User wants their own CFLAGS - removing defaults"
338 - # try and remove all the default custom-cflags
339 - find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
340 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
341 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
342 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
343 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
344 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
345 - -i {} \; || die "failed to re-set custom-cflags"
346 - fi
347 -
348 - default
349 -}
350 -
351 -src_configure() {
352 - use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
353 -
354 - use debug && myopt="${myopt} debug=y"
355 -
356 - if use custom-cflags; then
357 - filter-flags -fPIE -fstack-protector
358 - replace-flags -O3 -O2
359 - else
360 - unset CFLAGS
361 - unset LDFLAGS
362 - unset ASFLAGS
363 - fi
364 -}
365 -
366 -src_compile() {
367 - # Send raw LDFLAGS so that --as-needed works
368 - emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
369 -}
370 -
371 -src_install() {
372 - local myopt
373 - use debug && myopt="${myopt} debug=y"
374 -
375 - # The 'make install' doesn't 'mkdir -p' the subdirs
376 - if use efi; then
377 - mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
378 - fi
379 -
380 - emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
381 -
382 - # make install likes to throw in some extra EFI bits if it built
383 - use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
384 -}
385 -
386 -pkg_postinst() {
387 - elog "Official Xen Guide:"
388 - elog " https://wiki.gentoo.org/wiki/Xen"
389 -
390 - use efi && einfo "The efi executable is installed in boot/efi/gentoo"
391 -
392 - elog "You can optionally block the installation of /boot/xen-syms by an entry"
393 - elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
394 - elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
395 -}
396
397 diff --git a/app-emulation/xen/xen-4.11.0-r1.ebuild b/app-emulation/xen/xen-4.11.0-r1.ebuild
398 deleted file mode 100644
399 index 8027e789237..00000000000
400 --- a/app-emulation/xen/xen-4.11.0-r1.ebuild
401 +++ /dev/null
402 @@ -1,172 +0,0 @@
403 -# Copyright 1999-2018 Gentoo Foundation
404 -# Distributed under the terms of the GNU General Public License v2
405 -
406 -EAPI=6
407 -
408 -PYTHON_COMPAT=( python2_7 )
409 -
410 -inherit eutils flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
411 -
412 -MY_PV=${PV/_/-}
413 -MY_P=${PN}-${MY_PV}
414 -
415 -if [[ $PV == *9999 ]]; then
416 - inherit git-r3
417 - KEYWORDS=""
418 - EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
419 - SRC_URI=""
420 -else
421 - KEYWORDS="~amd64 ~arm -x86"
422 - UPSTREAM_VER=0
423 - SECURITY_VER=
424 - GENTOO_VER=
425 -
426 - [[ -n ${UPSTREAM_VER} ]] && \
427 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
428 - https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
429 - [[ -n ${SECURITY_VER} ]] && \
430 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
431 - [[ -n ${GENTOO_VER} ]] && \
432 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
433 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
434 - ${UPSTREAM_PATCHSET_URI}
435 - ${SECURITY_PATCHSET_URI}
436 - ${GENTOO_PATCHSET_URI}"
437 -fi
438 -
439 -DESCRIPTION="The Xen virtual machine monitor"
440 -HOMEPAGE="https://www.xenproject.org"
441 -LICENSE="GPL-2"
442 -SLOT="0"
443 -IUSE="custom-cflags debug efi flask"
444 -
445 -DEPEND="${PYTHON_DEPS}
446 - efi? ( >=sys-devel/binutils-2.22[multitarget] )
447 - !efi? ( >=sys-devel/binutils-2.22 )"
448 -RDEPEND=""
449 -PDEPEND="~app-emulation/xen-tools-${PV}"
450 -
451 -# no tests are available for the hypervisor
452 -# prevent the silliness of /usr/lib/debug/usr/lib/debug files
453 -# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
454 -RESTRICT="test splitdebug strip"
455 -
456 -# Approved by QA team in bug #144032
457 -QA_WX_LOAD="boot/xen-syms-${PV}"
458 -
459 -REQUIRED_USE="arm? ( debug )"
460 -
461 -S="${WORKDIR}/${MY_P}"
462 -
463 -pkg_setup() {
464 - python-any-r1_pkg_setup
465 - if [[ -z ${XEN_TARGET_ARCH} ]]; then
466 - if use amd64; then
467 - export XEN_TARGET_ARCH="x86_64"
468 - elif use arm; then
469 - export XEN_TARGET_ARCH="arm32"
470 - elif use arm64; then
471 - export XEN_TARGET_ARCH="arm64"
472 - else
473 - die "Unsupported architecture!"
474 - fi
475 - fi
476 -
477 - if use flask ; then
478 - export "XSM_ENABLE=y"
479 - export "FLASK_ENABLE=y"
480 - fi
481 -}
482 -
483 -src_prepare() {
484 - # Upstream's patchset
485 - [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
486 -
487 - # Security patchset
488 - if [[ -n ${SECURITY_VER} ]]; then
489 - einfo "Try to apply Xen Security patch set"
490 - # apply main xen patches
491 - # Two parallel systems, both work side by side
492 - # Over time they may concdense into one. This will suffice for now
493 - source "${WORKDIR}"/patches-security/${PV}.conf
494 -
495 - local i
496 - for i in ${XEN_SECURITY_MAIN}; do
497 - eapply "${WORKDIR}"/patches-security/xen/$i
498 - done
499 - fi
500 -
501 - # Gentoo's patchset
502 - [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
503 -
504 - eapply "${FILESDIR}"/${PN}-4.6-efi.patch
505 -
506 - # Drop .config
507 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
508 -
509 - if use efi; then
510 - export EFI_VENDOR="gentoo"
511 - export EFI_MOUNTPOINT="boot"
512 - fi
513 -
514 - # if the user *really* wants to use their own custom-cflags, let them
515 - if use custom-cflags; then
516 - einfo "User wants their own CFLAGS - removing defaults"
517 - # try and remove all the default custom-cflags
518 - find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
519 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
520 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
521 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
522 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
523 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
524 - -i {} \; || die "failed to re-set custom-cflags"
525 - fi
526 -
527 - default
528 -}
529 -
530 -src_configure() {
531 - use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
532 -
533 - use debug && myopt="${myopt} debug=y"
534 -
535 - if use custom-cflags; then
536 - filter-flags -fPIE -fstack-protector
537 - replace-flags -O3 -O2
538 - else
539 - unset CFLAGS
540 - unset LDFLAGS
541 - unset ASFLAGS
542 - fi
543 -}
544 -
545 -src_compile() {
546 - # Send raw LDFLAGS so that --as-needed works
547 - emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
548 -}
549 -
550 -src_install() {
551 - local myopt
552 - use debug && myopt="${myopt} debug=y"
553 -
554 - # The 'make install' doesn't 'mkdir -p' the subdirs
555 - if use efi; then
556 - mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
557 - fi
558 -
559 - emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
560 -
561 - # make install likes to throw in some extra EFI bits if it built
562 - use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
563 -}
564 -
565 -pkg_postinst() {
566 - elog "Official Xen Guide:"
567 - elog " https://wiki.gentoo.org/wiki/Xen"
568 -
569 - use efi && einfo "The efi executable is installed in boot/efi/gentoo"
570 -
571 - elog "You can optionally block the installation of /boot/xen-syms by an entry"
572 - elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
573 - elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
574 -}
575
576 diff --git a/app-emulation/xen/xen-4.9.2.ebuild b/app-emulation/xen/xen-4.9.2.ebuild
577 deleted file mode 100644
578 index ff12221cf11..00000000000
579 --- a/app-emulation/xen/xen-4.9.2.ebuild
580 +++ /dev/null
581 @@ -1,171 +0,0 @@
582 -# Copyright 1999-2018 Gentoo Foundation
583 -# Distributed under the terms of the GNU General Public License v2
584 -
585 -EAPI=6
586 -
587 -PYTHON_COMPAT=( python2_7 )
588 -
589 -inherit eutils flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
590 -
591 -MY_PV=${PV/_/-}
592 -MY_P=${PN}-${MY_PV}
593 -
594 -if [[ $PV == *9999 ]]; then
595 - inherit git-r3
596 - KEYWORDS="amd64"
597 - EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
598 - SRC_URI=""
599 -else
600 - KEYWORDS="amd64 ~arm -x86"
601 - UPSTREAM_VER=1
602 - SECURITY_VER=
603 - GENTOO_VER=
604 -
605 - [[ -n ${UPSTREAM_VER} ]] && \
606 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
607 - [[ -n ${SECURITY_VER} ]] && \
608 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
609 - [[ -n ${GENTOO_VER} ]] && \
610 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
611 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
612 - ${UPSTREAM_PATCHSET_URI}
613 - ${SECURITY_PATCHSET_URI}
614 - ${GENTOO_PATCHSET_URI}"
615 -fi
616 -
617 -DESCRIPTION="The Xen virtual machine monitor"
618 -HOMEPAGE="https://www.xenproject.org"
619 -LICENSE="GPL-2"
620 -SLOT="0"
621 -IUSE="custom-cflags debug efi flask"
622 -
623 -DEPEND="${PYTHON_DEPS}
624 - efi? ( >=sys-devel/binutils-2.22[multitarget] )
625 - !efi? ( >=sys-devel/binutils-2.22 )"
626 -RDEPEND=""
627 -PDEPEND="~app-emulation/xen-tools-${PV}"
628 -
629 -# no tests are available for the hypervisor
630 -# prevent the silliness of /usr/lib/debug/usr/lib/debug files
631 -# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
632 -RESTRICT="test splitdebug strip"
633 -
634 -# Approved by QA team in bug #144032
635 -QA_WX_LOAD="boot/xen-syms-${PV}"
636 -
637 -REQUIRED_USE="arm? ( debug )"
638 -
639 -S="${WORKDIR}/${MY_P}"
640 -
641 -pkg_setup() {
642 - python-any-r1_pkg_setup
643 - if [[ -z ${XEN_TARGET_ARCH} ]]; then
644 - if use amd64; then
645 - export XEN_TARGET_ARCH="x86_64"
646 - elif use arm; then
647 - export XEN_TARGET_ARCH="arm32"
648 - elif use arm64; then
649 - export XEN_TARGET_ARCH="arm64"
650 - else
651 - die "Unsupported architecture!"
652 - fi
653 - fi
654 -
655 - if use flask ; then
656 - export "XSM_ENABLE=y"
657 - export "FLASK_ENABLE=y"
658 - fi
659 -}
660 -
661 -src_prepare() {
662 - # Upstream's patchset
663 - [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
664 -
665 - # Security patchset
666 - if [[ -n ${SECURITY_VER} ]]; then
667 - einfo "Try to apply Xen Security patch set"
668 - # apply main xen patches
669 - # Two parallel systems, both work side by side
670 - # Over time they may concdense into one. This will suffice for now
671 - source "${WORKDIR}"/patches-security/${PV}.conf
672 -
673 - local i
674 - for i in ${XEN_SECURITY_MAIN}; do
675 - eapply "${WORKDIR}"/patches-security/xen/$i
676 - done
677 - fi
678 -
679 - # Gentoo's patchset
680 - [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
681 -
682 - eapply "${FILESDIR}"/${PN}-4.6-efi.patch
683 -
684 - # Drop .config
685 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
686 -
687 - if use efi; then
688 - export EFI_VENDOR="gentoo"
689 - export EFI_MOUNTPOINT="boot"
690 - fi
691 -
692 - # if the user *really* wants to use their own custom-cflags, let them
693 - if use custom-cflags; then
694 - einfo "User wants their own CFLAGS - removing defaults"
695 - # try and remove all the default custom-cflags
696 - find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
697 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
698 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
699 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
700 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
701 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
702 - -i {} \; || die "failed to re-set custom-cflags"
703 - fi
704 -
705 - default
706 -}
707 -
708 -src_configure() {
709 - use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
710 -
711 - use debug && myopt="${myopt} debug=y"
712 -
713 - if use custom-cflags; then
714 - filter-flags -fPIE -fstack-protector
715 - replace-flags -O3 -O2
716 - else
717 - unset CFLAGS
718 - unset LDFLAGS
719 - unset ASFLAGS
720 - fi
721 -}
722 -
723 -src_compile() {
724 - # Send raw LDFLAGS so that --as-needed works
725 - emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
726 -}
727 -
728 -src_install() {
729 - local myopt
730 - use debug && myopt="${myopt} debug=y"
731 -
732 - # The 'make install' doesn't 'mkdir -p' the subdirs
733 - if use efi; then
734 - mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
735 - fi
736 -
737 - emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
738 -
739 - # make install likes to throw in some extra EFI bits if it built
740 - use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
741 -}
742 -
743 -pkg_postinst() {
744 - elog "Official Xen Guide:"
745 - elog " https://wiki.gentoo.org/wiki/Xen"
746 -
747 - use efi && einfo "The efi executable is installed in boot/efi/gentoo"
748 -
749 - elog "You can optionally block the installation of /boot/xen-syms by an entry"
750 - elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
751 - elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
752 -}