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: Fri, 11 Jun 2021 12:53:26
Message-Id: 1623415741.cf5f56e2ffe5aa3e7fe2e9d8c55a57fc1f5864f5.whissi@gentoo
1 commit: cf5f56e2ffe5aa3e7fe2e9d8c55a57fc1f5864f5
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Wed Jun 9 07:18:46 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 11 12:49:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf5f56e2
7
8 app-emulation/xen: drop vulnerable
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-emulation/xen/Manifest | 1 -
14 app-emulation/xen/xen-4.14.2.ebuild | 169 ------------------------------------
15 app-emulation/xen/xen-4.15.0.ebuild | 169 ------------------------------------
16 3 files changed, 339 deletions(-)
17
18 diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest
19 index 9576a401e2b..e8907dcf663 100644
20 --- a/app-emulation/xen/Manifest
21 +++ b/app-emulation/xen/Manifest
22 @@ -1,6 +1,5 @@
23 DIST xen-4.13.3.tar.gz 39044539 BLAKE2B 5d0e57c76e12e1b86b78bbf561e947d70b9569a24412617a640346d2358b141a2741e7a3be454df52d198ad63e58b1519288de62330417c70e72445703f3fac2 SHA512 622127d824b9c49b57282a887fb404e0bad05ff60bccade82e4e0e9b5ad975ff9aa1fba83392e6d8379e9a15340e8ae9785c0913eb11027816e4600432eea6b6
24 DIST xen-4.14.2-upstream-patches-0.tar.xz 23304 BLAKE2B 954e0a49e5c3ec122aefe52afe328f440b8a4c8db966e0fa91e0b6d6cb3c0462b75fb99b3e7392811bd2e680cd7945e8a4d68317245fd42fdf0ad6cab33fbc68 SHA512 64d243f0c8acfec87812e4d78e3d8b24a86315824853f4f3b17122b7119425d180650695bc12e1a30f5b30c6ef684be7c08b2bc677ca2f0668d0335d92e2bf78
25 DIST xen-4.14.2.tar.gz 39973157 BLAKE2B db5d3570f79e0fd97872f5e5dd57a4eb39e005728387bfef3b51fabe1c693cfd8108d09b1026f5a5a7eb79de71be6f4af36d252f7e0b35a65a1567b7949e3e29 SHA512 83c9333b70dbee3e29c6bf08e5ad030676e6c4a32b976f3f5e6a8f8d0dd9e4898bac88dd8e1c9d2ad3509cebb5d212e1745f9392a469d7afeb841d79801ccf39
26 -DIST xen-4.15.0-upstream-patches-0.tar.xz 15744 BLAKE2B e2abb68524a7c190db8d91beb79731aea5290e82f54fb21218739dab666f6f5ea85c203575ec248b46830f1862408d50d3ceea1104fcd9325babfccf3574c515 SHA512 f1a2800d15a61f08eda4d6bafaead95a9d72cc9e4d90a19278d89c696b7e2d5d6353b28dba7ed0eb0c9aeb8604d3697db6a8f4ac38047e2510279d88181752f9
27 DIST xen-4.15.0-upstream-patches-1.tar.xz 35180 BLAKE2B eb3b2a44b717a04daa4a2f158040cce78b42cba5a72c437d7b2f8f1237b808f6f13c2140d82e95056818db6c0eb706ebd7dead822a6a4e689e5d5e7c83523fdb SHA512 a7cfe2dbc82b15c48fa781a77b3ca1622fc2feac3874bf17cf56e82be46e9817913f94992e0e1a1cd2be2e719d4abb9a15744c8a1017e30c0d5c01d7db64dbb5
28 DIST xen-4.15.0.tar.gz 40785399 BLAKE2B 8b0530f5516c39656506f4bb705952da0555a8ab7f47323473b171caeb7692f3107e9d94f13171d40576600064589eed35f4d210af02db4cc4706dd4fc202100 SHA512 93683b8a97387ca5f003c635a11d163e61c87dbdc9a03081f9155fe87b49f1dfa74ce243fcd5e04dc009353a36e2375b786f1ebde828b5951a094cd64197b4c7
29
30 diff --git a/app-emulation/xen/xen-4.14.2.ebuild b/app-emulation/xen/xen-4.14.2.ebuild
31 deleted file mode 100644
32 index 93ea93f278a..00000000000
33 --- a/app-emulation/xen/xen-4.14.2.ebuild
34 +++ /dev/null
35 @@ -1,169 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -PYTHON_COMPAT=( python3_{7..9} )
42 -
43 -inherit flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
44 -
45 -MY_PV=${PV/_/-}
46 -MY_P=${PN}-${MY_PV}
47 -
48 -if [[ ${PV} == *9999 ]]; then
49 - inherit git-r3
50 - EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
51 - SRC_URI=""
52 -else
53 - KEYWORDS="~amd64 ~arm -x86"
54 - UPSTREAM_VER=
55 - SECURITY_VER=
56 - GENTOO_VER=
57 -
58 - [[ -n ${UPSTREAM_VER} ]] && \
59 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
60 - https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
61 - [[ -n ${SECURITY_VER} ]] && \
62 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
63 - [[ -n ${GENTOO_VER} ]] && \
64 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
65 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
66 - ${UPSTREAM_PATCHSET_URI}
67 - ${SECURITY_PATCHSET_URI}
68 - ${GENTOO_PATCHSET_URI}"
69 -fi
70 -
71 -DESCRIPTION="The Xen virtual machine monitor"
72 -HOMEPAGE="https://www.xenproject.org"
73 -LICENSE="GPL-2"
74 -SLOT="0"
75 -IUSE="debug efi flask"
76 -
77 -DEPEND="${PYTHON_DEPS}
78 - efi? ( >=sys-devel/binutils-2.22[multitarget] )
79 - !efi? ( >=sys-devel/binutils-2.22 )"
80 -RDEPEND=""
81 -PDEPEND="~app-emulation/xen-tools-${PV}"
82 -
83 -# no tests are available for the hypervisor
84 -# prevent the silliness of /usr/lib/debug/usr/lib/debug files
85 -# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
86 -RESTRICT="test splitdebug strip"
87 -
88 -# Approved by QA team in bug #144032
89 -QA_WX_LOAD="boot/xen-syms-${PV}"
90 -
91 -REQUIRED_USE="arm? ( debug )"
92 -
93 -S="${WORKDIR}/${MY_P}"
94 -
95 -pkg_setup() {
96 - python-any-r1_pkg_setup
97 - if [[ -z ${XEN_TARGET_ARCH} ]]; then
98 - if use amd64; then
99 - export XEN_TARGET_ARCH="x86_64"
100 - elif use arm; then
101 - export XEN_TARGET_ARCH="arm32"
102 - elif use arm64; then
103 - export XEN_TARGET_ARCH="arm64"
104 - else
105 - die "Unsupported architecture!"
106 - fi
107 - fi
108 -
109 - if use flask ; then
110 - export "XSM_ENABLE=y"
111 - export "FLASK_ENABLE=y"
112 - fi
113 -}
114 -
115 -src_prepare() {
116 - # Upstream's patchset
117 - [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
118 -
119 - # Security patchset
120 - if [[ -n ${SECURITY_VER} ]]; then
121 - einfo "Try to apply Xen Security patch set"
122 - # apply main xen patches
123 - # Two parallel systems, both work side by side
124 - # Over time they may concdense into one. This will suffice for now
125 - source "${WORKDIR}"/patches-security/${PV}.conf
126 -
127 - local i
128 - for i in ${XEN_SECURITY_MAIN}; do
129 - eapply "${WORKDIR}"/patches-security/xen/$i
130 - done
131 - fi
132 -
133 - # Gentoo's patchset
134 - [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
135 -
136 - # Symlinks do not work on fat32 volumes
137 - eapply "${FILESDIR}"/${PN}-4.14-efi.patch
138 -
139 - # Workaround new gcc-11 options
140 - sed -e '/^CFLAGS/s/-Werror//g' -i xen/Makefile || die
141 -
142 - # Drop .config
143 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
144 -
145 - if use efi; then
146 - export EFI_VENDOR="gentoo"
147 - export EFI_MOUNTPOINT="/boot"
148 - fi
149 -
150 - default
151 -}
152 -
153 -src_configure() {
154 - use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
155 -
156 - use debug && myopt="${myopt} debug=y"
157 -
158 - # remove flags
159 - unset CFLAGS
160 - unset LDFLAGS
161 - unset ASFLAGS
162 -
163 - tc-ld-disable-gold # Bug 700374
164 -}
165 -
166 -src_compile() {
167 - # Send raw LDFLAGS so that --as-needed works
168 - emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
169 -}
170 -
171 -src_install() {
172 - local myopt
173 - use debug && myopt="${myopt} debug=y"
174 -
175 - # The 'make install' doesn't 'mkdir -p' the subdirs
176 - if use efi; then
177 - mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
178 - fi
179 -
180 - emake LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" DESTDIR="${D}" -C xen ${myopt} install
181 -
182 - # make install likes to throw in some extra EFI bits if it built
183 - use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
184 -}
185 -
186 -pkg_postinst() {
187 - elog "Official Xen Guide:"
188 - elog " https://wiki.gentoo.org/wiki/Xen"
189 -
190 - use efi && einfo "The efi executable is installed in /boot/efi/gentoo"
191 -
192 - elog "You can optionally block the installation of /boot/xen-syms by an entry"
193 - elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
194 - elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
195 -
196 - ewarn
197 - ewarn "Xen 4.12+ changed the default scheduler to credit2 which can cause"
198 - ewarn "domU lockups on multi-cpu systems. The legacy credit scheduler seems"
199 - ewarn "to work fine."
200 - ewarn
201 - ewarn "Add sched=credit to xen command line options to use the legacy scheduler."
202 - ewarn
203 - ewarn "https://wiki.gentoo.org/wiki/Xen#Xen_domU_hanging_with_Xen_4.12.2B"
204 -}
205
206 diff --git a/app-emulation/xen/xen-4.15.0.ebuild b/app-emulation/xen/xen-4.15.0.ebuild
207 deleted file mode 100644
208 index eaf463b8786..00000000000
209 --- a/app-emulation/xen/xen-4.15.0.ebuild
210 +++ /dev/null
211 @@ -1,169 +0,0 @@
212 -# Copyright 1999-2021 Gentoo Authors
213 -# Distributed under the terms of the GNU General Public License v2
214 -
215 -EAPI=7
216 -
217 -PYTHON_COMPAT=( python3_{7..9} )
218 -
219 -inherit flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
220 -
221 -MY_PV=${PV/_/-}
222 -MY_P=${PN}-${MY_PV}
223 -
224 -if [[ ${PV} == *9999 ]]; then
225 - inherit git-r3
226 - EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
227 - SRC_URI=""
228 -else
229 - KEYWORDS="~amd64 ~arm -x86"
230 - UPSTREAM_VER=0
231 - SECURITY_VER=
232 - GENTOO_VER=
233 -
234 - [[ -n ${UPSTREAM_VER} ]] && \
235 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz
236 - https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
237 - [[ -n ${SECURITY_VER} ]] && \
238 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz"
239 - [[ -n ${GENTOO_VER} ]] && \
240 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz"
241 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz
242 - ${UPSTREAM_PATCHSET_URI}
243 - ${SECURITY_PATCHSET_URI}
244 - ${GENTOO_PATCHSET_URI}"
245 -fi
246 -
247 -DESCRIPTION="The Xen virtual machine monitor"
248 -HOMEPAGE="https://www.xenproject.org"
249 -LICENSE="GPL-2"
250 -SLOT="0"
251 -IUSE="debug efi flask"
252 -
253 -DEPEND="${PYTHON_DEPS}
254 - efi? ( >=sys-devel/binutils-2.22[multitarget] )
255 - !efi? ( >=sys-devel/binutils-2.22 )"
256 -RDEPEND=""
257 -PDEPEND="~app-emulation/xen-tools-${PV}"
258 -
259 -# no tests are available for the hypervisor
260 -# prevent the silliness of /usr/lib/debug/usr/lib/debug files
261 -# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
262 -RESTRICT="test splitdebug strip"
263 -
264 -# Approved by QA team in bug #144032
265 -QA_WX_LOAD="boot/xen-syms-${PV}"
266 -
267 -REQUIRED_USE="arm? ( debug )"
268 -
269 -S="${WORKDIR}/${MY_P}"
270 -
271 -pkg_setup() {
272 - python-any-r1_pkg_setup
273 - if [[ -z ${XEN_TARGET_ARCH} ]]; then
274 - if use amd64; then
275 - export XEN_TARGET_ARCH="x86_64"
276 - elif use arm; then
277 - export XEN_TARGET_ARCH="arm32"
278 - elif use arm64; then
279 - export XEN_TARGET_ARCH="arm64"
280 - else
281 - die "Unsupported architecture!"
282 - fi
283 - fi
284 -
285 - if use flask ; then
286 - export "XSM_ENABLE=y"
287 - export "FLASK_ENABLE=y"
288 - fi
289 -}
290 -
291 -src_prepare() {
292 - # Upstream's patchset
293 - [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
294 -
295 - # Security patchset
296 - if [[ -n ${SECURITY_VER} ]]; then
297 - einfo "Try to apply Xen Security patch set"
298 - # apply main xen patches
299 - # Two parallel systems, both work side by side
300 - # Over time they may concdense into one. This will suffice for now
301 - source "${WORKDIR}"/patches-security/${PV}.conf
302 -
303 - local i
304 - for i in ${XEN_SECURITY_MAIN}; do
305 - eapply "${WORKDIR}"/patches-security/xen/$i
306 - done
307 - fi
308 -
309 - # Gentoo's patchset
310 - [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
311 -
312 - # Symlinks do not work on fat32 volumes
313 - eapply "${FILESDIR}"/${PN}-4.15-efi.patch
314 -
315 - # Workaround new gcc-11 options
316 - sed -e '/^CFLAGS/s/-Werror//g' -i xen/Makefile || die
317 -
318 - # Drop .config
319 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
320 -
321 - if use efi; then
322 - export EFI_VENDOR="gentoo"
323 - export EFI_MOUNTPOINT="/boot"
324 - fi
325 -
326 - default
327 -}
328 -
329 -src_configure() {
330 - use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i"
331 -
332 - use debug && myopt="${myopt} debug=y"
333 -
334 - # remove flags
335 - unset CFLAGS
336 - unset LDFLAGS
337 - unset ASFLAGS
338 -
339 - tc-ld-disable-gold # Bug 700374
340 -}
341 -
342 -src_compile() {
343 - # Send raw LDFLAGS so that --as-needed works
344 - emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
345 -}
346 -
347 -src_install() {
348 - local myopt
349 - use debug && myopt="${myopt} debug=y"
350 -
351 - # The 'make install' doesn't 'mkdir -p' the subdirs
352 - if use efi; then
353 - mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
354 - fi
355 -
356 - emake LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" DESTDIR="${D}" -C xen ${myopt} install
357 -
358 - # make install likes to throw in some extra EFI bits if it built
359 - use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
360 -}
361 -
362 -pkg_postinst() {
363 - elog "Official Xen Guide:"
364 - elog " https://wiki.gentoo.org/wiki/Xen"
365 -
366 - use efi && einfo "The efi executable is installed in /boot/efi/gentoo"
367 -
368 - elog "You can optionally block the installation of /boot/xen-syms by an entry"
369 - elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK"
370 - elog "e.g. echo ${msg} > /etc/portage/env/xen.conf"
371 -
372 - ewarn
373 - ewarn "Xen 4.12+ changed the default scheduler to credit2 which can cause"
374 - ewarn "domU lockups on multi-cpu systems. The legacy credit scheduler seems"
375 - ewarn "to work fine."
376 - ewarn
377 - ewarn "Add sched=credit to xen command line options to use the legacy scheduler."
378 - ewarn
379 - ewarn "https://wiki.gentoo.org/wiki/Xen#Xen_domU_hanging_with_Xen_4.12.2B"
380 -}