1 |
commit: cbbcac46e5cf3aa5fba8fb1b2f2c92634b58fb5a |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 16:25:44 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 16:25:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbbcac46 |
7 |
|
8 |
app-emulation/xen: drop 4.16.0-r7 |
9 |
|
10 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
11 |
|
12 |
app-emulation/xen/Manifest | 2 - |
13 |
app-emulation/xen/xen-4.16.0-r7.ebuild | 190 --------------------------------- |
14 |
2 files changed, 192 deletions(-) |
15 |
|
16 |
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest |
17 |
index 71105a41171c..af198a2b542f 100644 |
18 |
--- a/app-emulation/xen/Manifest |
19 |
+++ b/app-emulation/xen/Manifest |
20 |
@@ -1,8 +1,6 @@ |
21 |
DIST xen-4.15.2-upstream-patches-2.tar.xz 93208 BLAKE2B 5b01953ba93551830e533cf7e9e8675a44ed6c2ad3da152e0b5feeb3782b9bc3a1a0a7c0a84ac1de8ed7146fcf364db7604ea269ee243438df34c91b4b6acc5b SHA512 c2f585223d3d9e08d08b295c0f35e4856e4801d214cf0a1f925585c28a7a25cb3b82a5f5e7d41d35b2c746d5a307cd5b5a369d5342f35681e227d8ce91e741c2 |
22 |
DIST xen-4.15.2.tar.gz 40773378 BLAKE2B 7c3e3bb066505f9838cd7c56d85debc64e5ed32cf4d4edf699ff843db49bee916e6eb46d07e5cd9021c2644bba0628a2aa567f60ace26c6d7ee5922643e04104 SHA512 1cbf988fa8ed38b7ad724978958092ca0e5506e38c709c7d1af196fb8cb8ec0197a79867782761ef230b268624b3d7a0d5d0cd186f37d25f495085c71bf70d54 |
23 |
DIST xen-4.15.3.tar.gz 40793144 BLAKE2B 33932d855a0502cfe2768a7c8ae19d7da285d70b4970d96fd703daf0ee24a77ad47a3d1b4bcf5f465aa81aa7eb7f9295bce96302b2149ca208fa662cd966d6af SHA512 c25903cc263891885ec76500488405226c8e025bb461d2bf0d590b9bd2d7ca5c2693de7ecc38b3655bfd6793cc96314826559f14a09cc139de8cfdbeb914cbd3 |
24 |
-DIST xen-4.16.0-upstream-patches-2.tar.xz 111668 BLAKE2B e8bbedb7cc50f7a6cb1a3869f0165cce3d02c33f04b935384e770aa5206e6aa6cb51329c5d69375391a8781ba23f20c35e06406d5164720d253b405a77f5aee9 SHA512 6b6770117e81ae407e3ded0e366b14f3fa2411cc93a95187db27548c3dd17a1f85e60fc3971b008693297ad97aa0c5fa7b4d88e01d67a972f39e51bf0a2cf39d |
25 |
-DIST xen-4.16.0.tar.gz 44982322 BLAKE2B 7e16a93b3f1131e2b10307fabc10641a9c5983173155b9a35eaf6ff317b6a747bccf6b8c87c06686830acc2c4bd3e19e5867eb443eabac9a1e4ee59124dfa87f SHA512 2869ed90d1779c9754d7f2397f5fc67a655304d9c32953ac20655ef96cb154521d8fce9f23915ac0c91f984dc54f72c67e5e619e2da318b5997748f44cf21b87 |
26 |
DIST xen-4.16.1.tar.gz 44964667 BLAKE2B 190d9c330b5dcdd47bae26b6ef42111c9c63b71b8b92e20eae268054c6b40aaabadef78c0c9634cb3c3b1bde32a746cbb1404b5eed2a82ab829ba10632103856 SHA512 eeabba9c263cd2425bca083e32b5ebfc6c716c00553759c144fd4b6f64a89836b260787fa25ba22c1f5c4ea65aaad7c95b8c2c1070d3377b1c43c9517aa7032a |
27 |
DIST xen-gentoo-patches-4.16.1-gentoo-patchset-0.tar.gz 5289 BLAKE2B 4946056ee631ec0fa4d29f1cd643f66b491ef3ea049755d10d7b8e189f02816b990e53bffbeeeae0a61fb4e20aa877f5903a8aadfb26d0c78566a0e9fde540c7 SHA512 59d4101879bd18e828349db3814a9082b85c5ba8203ce98e5082491a9ede9c832a02ac7e4d7a0a51a52e38b72e5cce1eea6a09d6c5202e96bfe2aa4d47e12e65 |
28 |
DIST xen-upstream-patches-4.16.2-pre-patchset-0.tar.gz 46026 BLAKE2B 57bca21962c9a451316f486f5db94e9c1b98b5e029a15dbd702007d573fe02571e648866c9ddbc293e53ceb5de92122b13d21e28c8879d918129134725c9ff91 SHA512 f665640fc686dfc5f718531601f66e3f30c4c8c7cb78293b6a615fe9f53a3763f2c864642a19336bb077d432b776ab1c9fa39e6fa5857ca3360e4d1b1ce63f50 |
29 |
|
30 |
diff --git a/app-emulation/xen/xen-4.16.0-r7.ebuild b/app-emulation/xen/xen-4.16.0-r7.ebuild |
31 |
deleted file mode 100644 |
32 |
index 07e9855fc988..000000000000 |
33 |
--- a/app-emulation/xen/xen-4.16.0-r7.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,190 +0,0 @@ |
36 |
-# Copyright 1999-2022 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=8 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{8..10} ) |
42 |
- |
43 |
-inherit flag-o-matic mount-boot 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=2 |
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://xenproject.org" |
73 |
-LICENSE="GPL-2" |
74 |
-SLOT="0" |
75 |
-IUSE="+boot-symlinks debug efi flask" |
76 |
-REQUIRED_USE="arm? ( debug )" |
77 |
- |
78 |
-DEPEND="${PYTHON_DEPS} |
79 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
80 |
- !efi? ( >=sys-devel/binutils-2.22 ) |
81 |
- flask? ( sys-apps/checkpolicy )" |
82 |
-RDEPEND="" |
83 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
84 |
- |
85 |
-# no tests are available for the hypervisor |
86 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
87 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
88 |
-RESTRICT="test splitdebug strip" |
89 |
- |
90 |
-# Approved by QA team in bug #144032 |
91 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
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 |
- |
110 |
-src_prepare() { |
111 |
- # Upstream's patchset |
112 |
- [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream |
113 |
- |
114 |
- # Security patchset |
115 |
- if [[ -n ${SECURITY_VER} ]]; then |
116 |
- einfo "Try to apply Xen Security patch set" |
117 |
- # apply main xen patches |
118 |
- # Two parallel systems, both work side by side |
119 |
- # Over time they may concdense into one. This will suffice for now |
120 |
- source "${WORKDIR}"/patches-security/${PV}.conf |
121 |
- |
122 |
- local i |
123 |
- for i in ${XEN_SECURITY_MAIN}; do |
124 |
- eapply "${WORKDIR}"/patches-security/xen/$i |
125 |
- done |
126 |
- fi |
127 |
- |
128 |
- # Gentoo's patchset |
129 |
- [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo |
130 |
- |
131 |
- eapply "${FILESDIR}"/${PN}-4.16-efi.patch |
132 |
- |
133 |
- # Symlinks do not work on fat32 volumes # 829765 |
134 |
- if ! use boot-symlinks || use efi; then |
135 |
- eapply "${FILESDIR}"/${PN}-4.16-no-symlink.patch |
136 |
- fi |
137 |
- |
138 |
- # Workaround new gcc-11 options |
139 |
- sed -e '/^CFLAGS/s/-Werror//g' -i xen/Makefile || die |
140 |
- |
141 |
- # Drop .config |
142 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
143 |
- |
144 |
- if use efi; then |
145 |
- export EFI_VENDOR="gentoo" |
146 |
- export EFI_MOUNTPOINT="/boot" |
147 |
- fi |
148 |
- |
149 |
- default |
150 |
-} |
151 |
- |
152 |
-xen_make() { |
153 |
- # Setting clang to either 'y' or 'n' tells Xen's build system |
154 |
- # whether or not clang is used. |
155 |
- local clang=n |
156 |
- if tc-is-clang; then |
157 |
- clang=y |
158 |
- fi |
159 |
- |
160 |
- # Send raw LDFLAGS so that --as-needed works |
161 |
- emake \ |
162 |
- V=1 \ |
163 |
- LDFLAGS="$(raw-ldflags)" \ |
164 |
- HOSTCC="$(tc-getBUILD_CC)" \ |
165 |
- HOSTCXX="$(tc-getBUILD_CXX)" \ |
166 |
- clang="${clang}" \ |
167 |
- "$@" |
168 |
-} |
169 |
- |
170 |
-src_configure() { |
171 |
- cd xen || die |
172 |
- |
173 |
- touch gentoo-config || die |
174 |
- if use arm; then |
175 |
- echo "CONFIG_EARLY_PRINTK=sun7i" >> gentoo-config || die |
176 |
- fi |
177 |
- if use debug; then |
178 |
- cat <<-EOF >> gentoo-config || die |
179 |
- CONFIG_DEBUG=y |
180 |
- CONFIG_CRASH_DEBUG=y |
181 |
-EOF |
182 |
- fi |
183 |
- if use flask; then |
184 |
- echo "CONFIG_XSM=y" >> gentoo-config || die |
185 |
- fi |
186 |
- |
187 |
- # remove flags |
188 |
- unset CFLAGS |
189 |
- |
190 |
- tc-ld-disable-gold # Bug 700374 |
191 |
- |
192 |
- xen_make KCONFIG_ALLCONFIG=gentoo-config alldefconfig |
193 |
-} |
194 |
- |
195 |
-src_compile() { |
196 |
- xen_make -C xen |
197 |
-} |
198 |
- |
199 |
-src_install() { |
200 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
201 |
- if use efi; then |
202 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
203 |
- fi |
204 |
- |
205 |
- xen_make DESTDIR="${D}" -C xen install |
206 |
- |
207 |
- # make install likes to throw in some extra EFI bits if it built |
208 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- elog "Official Xen Guide:" |
213 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
214 |
- |
215 |
- use efi && einfo "The efi executable is installed in /boot/efi/gentoo" |
216 |
- |
217 |
- ewarn |
218 |
- ewarn "Xen 4.12+ changed the default scheduler to credit2 which can cause" |
219 |
- ewarn "domU lockups on multi-cpu systems. The legacy credit scheduler seems" |
220 |
- ewarn "to work fine." |
221 |
- ewarn |
222 |
- ewarn "Add sched=credit to xen command line options to use the legacy scheduler." |
223 |
- ewarn |
224 |
- ewarn "https://wiki.gentoo.org/wiki/Xen#Xen_domU_hanging_with_Xen_4.12.2B" |
225 |
-} |