1 |
commit: 13a0a916863718b17302a9d0f744f9154a3afeaf |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 16:25:31 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 16:25:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13a0a916 |
7 |
|
8 |
app-emulation/xen-tools: drop 4.16.0-r4 |
9 |
|
10 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
11 |
|
12 |
app-emulation/xen-tools/Manifest | 3 - |
13 |
app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild | 569 --------------------- |
14 |
2 files changed, 572 deletions(-) |
15 |
|
16 |
diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest |
17 |
index 7fe60a3ccfdc..448d9c3a557e 100644 |
18 |
--- a/app-emulation/xen-tools/Manifest |
19 |
+++ b/app-emulation/xen-tools/Manifest |
20 |
@@ -9,10 +9,7 @@ DIST seabios-1.14.0.tar.gz 628985 BLAKE2B cc1126925dab1551a655680d20d06ebf28c12c |
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-23.tar.xz 20536 BLAKE2B 0064f79f8794a21ab13047a4ee296e37efa616e16ca6cd65b31fdafeb458fd9b80f0443758343c8328b1901d7169618346becfe75f16dcaeff08fc975f1d08d5 SHA512 09248e17ff7865feb2a505169d62ee5c8c60bd672fa8c4c7c4e3a2e4af58bfad0379d37b395bab3e3393af8d53d882f56749dfeb560edeea6b7ab56c902a3c49 |
28 |
-DIST xen-gentoo-patches-24.tar.xz 20952 BLAKE2B 292ea384f007a9615ca840068c45cd0e37a63a59e596c9c87a278a0136805327c85f5e5576eac751e40bda616559e413b396d313d43f2d36d904f09a41b0d302 SHA512 26b7344cea40ef44d1eaec330465071c96ee27a5b0ca91f787fc80c6801abed47cab9050a40ef80f20471a7cd9ee0dc7aaa46b16e5af7d0e50643ccc7d3a828b |
29 |
DIST xen-gentoo-patches-4.16.1-gentoo-patchset-0.tar.gz 5289 BLAKE2B 4946056ee631ec0fa4d29f1cd643f66b491ef3ea049755d10d7b8e189f02816b990e53bffbeeeae0a61fb4e20aa877f5903a8aadfb26d0c78566a0e9fde540c7 SHA512 59d4101879bd18e828349db3814a9082b85c5ba8203ce98e5082491a9ede9c832a02ac7e4d7a0a51a52e38b72e5cce1eea6a09d6c5202e96bfe2aa4d47e12e65 |
30 |
DIST xen-upstream-patches-4.16.2-pre-patchset-0.tar.gz 46026 BLAKE2B 57bca21962c9a451316f486f5db94e9c1b98b5e029a15dbd702007d573fe02571e648866c9ddbc293e53ceb5de92122b13d21e28c8879d918129134725c9ff91 SHA512 f665640fc686dfc5f718531601f66e3f30c4c8c7cb78293b6a615fe9f53a3763f2c864642a19336bb077d432b776ab1c9fa39e6fa5857ca3360e4d1b1ce63f50 |
31 |
|
32 |
diff --git a/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild b/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild |
33 |
deleted file mode 100644 |
34 |
index 60c3e719f0c0..000000000000 |
35 |
--- a/app-emulation/xen-tools/xen-tools-4.16.0-r4.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,569 +0,0 @@ |
38 |
-# Copyright 1999-2022 Gentoo Authors |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=7 |
42 |
- |
43 |
-PYTHON_COMPAT=( python3_{8..10} ) |
44 |
-PYTHON_REQ_USE='ncurses,xml,threads(+)' |
45 |
- |
46 |
-inherit bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs |
47 |
- |
48 |
-MY_PV=${PV/_/-} |
49 |
- |
50 |
-if [[ ${PV} == *9999 ]]; then |
51 |
- inherit git-r3 |
52 |
- REPO="xen.git" |
53 |
- EGIT_REPO_URI="git://xenbits.xen.org/${REPO}" |
54 |
- S="${WORKDIR}/${REPO}" |
55 |
-else |
56 |
- KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
57 |
- UPSTREAM_VER=2 |
58 |
- SECURITY_VER= |
59 |
- # xen-tools's gentoo patches tarball |
60 |
- GENTOO_VER=24 |
61 |
- # xen-tools's gentoo patches version which apply to this specific ebuild |
62 |
- GENTOO_GPV=0 |
63 |
- # xen-tools ovmf's patches |
64 |
- OVMF_VER= |
65 |
- |
66 |
- SEABIOS_VER="1.14.0" |
67 |
- EDK2_COMMIT="7b4a99be8a39c12d3a7fc4b8db9f0eab4ac688d5" |
68 |
- EDK2_OPENSSL_VERSION="1_1_1j" |
69 |
- EDK2_SOFTFLOAT_COMMIT="b64af41c3276f97f0e181920400ee056b9c88037" |
70 |
- EDK2_BROTLI_COMMIT="666c3280cc11dc433c303d79a83d4ffbdd12cc8d" |
71 |
- IPXE_COMMIT="3c040ad387099483102708bb1839110bc788cefb" |
72 |
- |
73 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
74 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz |
75 |
- https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
76 |
- [[ -n ${SECURITY_VER} ]] && \ |
77 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
78 |
- https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-security-patches-${SECURITY_VER}.tar.xz" |
79 |
- [[ -n ${GENTOO_VER} ]] && \ |
80 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz |
81 |
- https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz" |
82 |
- [[ -n ${OVMF_VER} ]] && \ |
83 |
- OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz" |
84 |
- |
85 |
- SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz |
86 |
- https://www.seabios.org/downloads/seabios-${SEABIOS_VER}.tar.gz |
87 |
- ipxe? ( https://xenbits.xen.org/xen-extfiles/ipxe-git-${IPXE_COMMIT}.tar.gz ) |
88 |
- ovmf? ( https://github.com/tianocore/edk2/archive/${EDK2_COMMIT}.tar.gz -> edk2-${EDK2_COMMIT}.tar.gz |
89 |
- https://github.com/openssl/openssl/archive/OpenSSL_${EDK2_OPENSSL_VERSION}.tar.gz |
90 |
- https://github.com/ucb-bar/berkeley-softfloat-3/archive/${EDK2_SOFTFLOAT_COMMIT}.tar.gz -> berkeley-softfloat-${EDK2_SOFTFLOAT_COMMIT}.tar.gz |
91 |
- https://github.com/google/brotli/archive/${EDK2_BROTLI_COMMIT}.tar.gz -> brotli-${EDK2_BROTLI_COMMIT}.tar.gz |
92 |
- ${OVMF_PATCHSET_URI} ) |
93 |
- ${UPSTREAM_PATCHSET_URI} |
94 |
- ${SECURITY_PATCHSET_URI} |
95 |
- ${GENTOO_PATCHSET_URI}" |
96 |
- |
97 |
- S="${WORKDIR}/xen-${MY_PV}" |
98 |
-fi |
99 |
- |
100 |
-DESCRIPTION="Xen tools including QEMU and xl" |
101 |
-HOMEPAGE="https://xenproject.org" |
102 |
-DOCS=( README ) |
103 |
- |
104 |
-LICENSE="GPL-2" |
105 |
-SLOT="0/$(ver_cut 1-2)" |
106 |
-# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make |
107 |
-# >=dev-lang/ocaml-4 stable |
108 |
-# Masked in profiles/eapi-5-files instead |
109 |
-IUSE="api debug doc +hvm +ipxe lzma ocaml ovmf pygrub python +qemu +qemu-traditional +rombios screen selinux sdl static-libs system-ipxe system-qemu system-seabios systemd zstd" |
110 |
- |
111 |
-REQUIRED_USE=" |
112 |
- ${PYTHON_REQUIRED_USE} |
113 |
- ipxe? ( rombios ) |
114 |
- ovmf? ( hvm ) |
115 |
- pygrub? ( python ) |
116 |
- rombios? ( hvm ) |
117 |
- system-ipxe? ( rombios ) |
118 |
- ?? ( ipxe system-ipxe ) |
119 |
- ?? ( qemu system-qemu )" |
120 |
- |
121 |
-COMMON_DEPEND=" |
122 |
- lzma? ( app-arch/xz-utils ) |
123 |
- qemu? ( |
124 |
- dev-libs/glib:2 |
125 |
- sys-libs/pam |
126 |
- ) |
127 |
- zstd? ( app-arch/zstd ) |
128 |
- app-arch/bzip2 |
129 |
- app-arch/zstd |
130 |
- dev-libs/libnl:3 |
131 |
- dev-libs/lzo:2 |
132 |
- dev-libs/yajl |
133 |
- sys-apps/util-linux |
134 |
- sys-fs/e2fsprogs |
135 |
- sys-libs/ncurses |
136 |
- sys-libs/zlib |
137 |
- ${PYTHON_DEPS} |
138 |
-" |
139 |
- |
140 |
-RDEPEND="${COMMON_DEPEND} |
141 |
- sys-apps/iproute2[-minimal] |
142 |
- net-misc/bridge-utils |
143 |
- screen? ( |
144 |
- app-misc/screen |
145 |
- app-admin/logrotate |
146 |
- ) |
147 |
- selinux? ( sec-policy/selinux-xen )" |
148 |
- |
149 |
-DEPEND="${COMMON_DEPEND} |
150 |
- app-misc/pax-utils |
151 |
- >=sys-kernel/linux-headers-4.11 |
152 |
- x11-libs/pixman |
153 |
- $(python_gen_cond_dep ' |
154 |
- dev-python/lxml[${PYTHON_USEDEP}] |
155 |
- ') |
156 |
- x86? ( sys-devel/dev86 |
157 |
- system-ipxe? ( sys-firmware/ipxe[qemu] ) |
158 |
- sys-power/iasl ) |
159 |
- api? ( dev-libs/libxml2 |
160 |
- net-misc/curl ) |
161 |
- |
162 |
- ovmf? ( |
163 |
- !arm? ( !arm64? ( dev-lang/nasm ) ) |
164 |
- $(python_gen_impl_dep sqlite) |
165 |
- ) |
166 |
- !amd64? ( >=sys-apps/dtc-1.4.0 ) |
167 |
- amd64? ( sys-power/iasl |
168 |
- system-seabios? ( sys-firmware/seabios ) |
169 |
- system-ipxe? ( sys-firmware/ipxe[qemu] ) |
170 |
- rombios? ( sys-devel/bin86 sys-devel/dev86 ) ) |
171 |
- arm64? ( sys-power/iasl |
172 |
- rombios? ( sys-devel/bin86 sys-devel/dev86 ) ) |
173 |
- doc? ( |
174 |
- app-text/ghostscript-gpl |
175 |
- app-text/pandoc |
176 |
- $(python_gen_cond_dep ' |
177 |
- dev-python/markdown[${PYTHON_USEDEP}] |
178 |
- ') |
179 |
- dev-texlive/texlive-latexextra |
180 |
- media-gfx/transfig |
181 |
- ) |
182 |
- hvm? ( x11-base/xorg-proto ) |
183 |
- qemu? ( |
184 |
- app-arch/snappy:= |
185 |
- dev-util/meson |
186 |
- sdl? ( |
187 |
- media-libs/libsdl[X] |
188 |
- media-libs/libsdl2[X] |
189 |
- ) |
190 |
- ) |
191 |
- system-qemu? ( app-emulation/qemu[xen] ) |
192 |
- ocaml? ( dev-ml/findlib |
193 |
- dev-lang/ocaml[ocamlopt] ) |
194 |
- python? ( >=dev-lang/swig-4.0.0 )" |
195 |
- |
196 |
-BDEPEND="dev-lang/perl |
197 |
- sys-devel/bison |
198 |
- sys-devel/gettext" |
199 |
- |
200 |
-# hvmloader is used to bootstrap a fully virtualized kernel |
201 |
-# Approved by QA team in bug #144032 |
202 |
-QA_WX_LOAD=" |
203 |
- usr/libexec/xen/boot/hvmloader |
204 |
- usr/libexec/xen/boot/ovmf.bin |
205 |
- usr/libexec/xen/boot/xen-shim |
206 |
- usr/share/qemu-xen/qemu/hppa-firmware.img |
207 |
- usr/share/qemu-xen/qemu/opensbi-riscv32-generic-fw_dynamic.elf |
208 |
- usr/share/qemu-xen/qemu/opensbi-riscv64-generic-fw_dynamic.elf |
209 |
- usr/share/qemu-xen/qemu/s390-ccw.img |
210 |
- usr/share/qemu-xen/qemu/u-boot.e500 |
211 |
-" |
212 |
- |
213 |
-QA_EXECSTACK=" |
214 |
- usr/share/qemu-xen/qemu/hppa-firmware.img |
215 |
-" |
216 |
- |
217 |
-QA_PREBUILT=" |
218 |
- usr/libexec/xen/bin/elf2dmp |
219 |
- usr/libexec/xen/bin/ivshmem-client |
220 |
- usr/libexec/xen/bin/ivshmem-server |
221 |
- usr/libexec/xen/bin/qemu-edid |
222 |
- usr/libexec/xen/bin/qemu-img |
223 |
- usr/libexec/xen/bin/qemu-io |
224 |
- usr/libexec/xen/bin/qemu-keymap |
225 |
- usr/libexec/xen/bin/qemu-nbd |
226 |
- usr/libexec/xen/bin/qemu-pr-helper |
227 |
- usr/libexec/xen/bin/qemu-storage-daemon |
228 |
- usr/libexec/xen/bin/qemu-system-i386 |
229 |
- usr/libexec/xen/bin/virtfs-proxy-helper |
230 |
- usr/libexec/xen/boot/ovmf.bin |
231 |
- usr/libexec/xen/boot/xen-shim |
232 |
- usr/libexec/xen/libexec/qemu-pr-helper |
233 |
- usr/libexec/xen/libexec/virtfs-proxy-helper |
234 |
- usr/libexec/xen/libexec/virtiofsd |
235 |
- usr/libexec/xen/libexec/xen-bridge-helper |
236 |
- usr/share/qemu-xen/qemu/s390-ccw.img |
237 |
- usr/share/qemu-xen/qemu/s390-netboot.img |
238 |
- usr/share/qemu-xen/qemu/u-boot.e500 |
239 |
-" |
240 |
- |
241 |
-RESTRICT="test" |
242 |
- |
243 |
-pkg_setup() { |
244 |
- python_setup |
245 |
- export "CONFIG_LOMOUNT=y" |
246 |
- |
247 |
- #bug 522642, disable compile tools/tests |
248 |
- export "CONFIG_TESTS=n" |
249 |
- |
250 |
- if [[ -z ${XEN_TARGET_ARCH} ]] ; then |
251 |
- if use x86 && use amd64; then |
252 |
- die "Confusion! Both x86 and amd64 are set in your use flags!" |
253 |
- elif use x86; then |
254 |
- export XEN_TARGET_ARCH="x86_32" |
255 |
- elif use amd64 ; then |
256 |
- export XEN_TARGET_ARCH="x86_64" |
257 |
- elif use arm; then |
258 |
- export XEN_TARGET_ARCH="arm32" |
259 |
- elif use arm64; then |
260 |
- export XEN_TARGET_ARCH="arm64" |
261 |
- else |
262 |
- die "Unsupported architecture!" |
263 |
- fi |
264 |
- fi |
265 |
-} |
266 |
- |
267 |
-src_prepare() { |
268 |
- local i |
269 |
- |
270 |
- # Upstream's patchset |
271 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
272 |
- einfo "Try to apply Xen Upstream patch set" |
273 |
- eapply "${WORKDIR}"/patches-upstream |
274 |
- fi |
275 |
- |
276 |
- # Security patchset |
277 |
- if [[ -n ${SECURITY_VER} ]]; then |
278 |
- einfo "Try to apply Xen Security patch set" |
279 |
- # apply main xen patches |
280 |
- # Two parallel systems, both work side by side |
281 |
- # Over time they may concdense into one. This will suffice for now |
282 |
- EPATCH_SUFFIX="patch" |
283 |
- EPATCH_FORCE="yes" |
284 |
- |
285 |
- source "${WORKDIR}"/patches-security/${PV}.conf || die |
286 |
- |
287 |
- for i in ${XEN_SECURITY_MAIN}; do |
288 |
- eapply "${WORKDIR}"/patches-security/xen/$i |
289 |
- done |
290 |
- |
291 |
- # apply qemu-xen/upstream patches |
292 |
- pushd "${S}"/tools/qemu-xen/ > /dev/null |
293 |
- for i in ${XEN_SECURITY_QEMUU}; do |
294 |
- eapply "${WORKDIR}"/patches-security/qemuu/$i |
295 |
- done |
296 |
- popd > /dev/null |
297 |
- |
298 |
- # apply qemu-traditional patches |
299 |
- pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null |
300 |
- for i in ${XEN_SECURITY_QEMUT}; do |
301 |
- eapply "${WORKDIR}"/patches-security/qemut/$i |
302 |
- done |
303 |
- popd > /dev/null |
304 |
- fi |
305 |
- |
306 |
- # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err |
307 |
- mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die |
308 |
- pushd tools/firmware/ > /dev/null |
309 |
- ln -s seabios-dir-remote seabios-dir || die |
310 |
- popd > /dev/null |
311 |
- |
312 |
- # Gentoo's patchset |
313 |
- if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then |
314 |
- einfo "Try to apply Gentoo specific patch set" |
315 |
- source "${FILESDIR}"/gentoo-patches.conf || die |
316 |
- _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV} |
317 |
- for i in ${!_gpv}; do |
318 |
- eapply "${WORKDIR}"/patches-gentoo/$i |
319 |
- done |
320 |
- fi |
321 |
- |
322 |
- # Ovmf's patchset |
323 |
- if use ovmf; then |
324 |
- if [[ -n ${OVMF_VER} ]];then |
325 |
- einfo "Try to apply Ovmf patch set" |
326 |
- pushd "${WORKDIR}"/edk2-*/ > /dev/null |
327 |
- eapply "${WORKDIR}"/patches-ovmf |
328 |
- popd > /dev/null |
329 |
- fi |
330 |
- mv ../edk2-${EDK2_COMMIT} tools/firmware/ovmf-dir-remote || die |
331 |
- rm -r tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die |
332 |
- rm -r tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die |
333 |
- rm -r tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die |
334 |
- rm -r tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die |
335 |
- mv ../openssl-OpenSSL_${EDK2_OPENSSL_VERSION} tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die |
336 |
- mv ../berkeley-softfloat-3-${EDK2_SOFTFLOAT_COMMIT} tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die |
337 |
- cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die |
338 |
- cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die |
339 |
- cp tools/firmware/ovmf-makefile tools/firmware/ovmf-dir-remote/Makefile || die |
340 |
- |
341 |
- # Bug #816987 |
342 |
- pushd tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli > /dev/null |
343 |
- eapply "${FILESDIR}/${PN}-4.15.1-brotli-gcc11.patch" |
344 |
- popd > /dev/null |
345 |
- |
346 |
- pushd tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli > /dev/null |
347 |
- eapply "${FILESDIR}/${PN}-4.15.1-brotli-gcc11.patch" |
348 |
- popd > /dev/null |
349 |
- fi |
350 |
- |
351 |
- # ipxe |
352 |
- if use ipxe; then |
353 |
- cp "${DISTDIR}/ipxe-git-${IPXE_COMMIT}.tar.gz" tools/firmware/etherboot/ipxe.tar.gz || die |
354 |
- |
355 |
- # gcc 11 |
356 |
- cp "${WORKDIR}/patches-gentoo/${PN}-4.15.0-ipxe-gcc11.patch" tools/firmware/etherboot/patches/ipxe-gcc11.patch || die |
357 |
- echo ipxe-gcc11.patch >> tools/firmware/etherboot/patches/series || die |
358 |
- fi |
359 |
- |
360 |
- mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die |
361 |
- |
362 |
- # Fix texi2html build error with new texi2html, qemu.doc.html |
363 |
- sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die |
364 |
- |
365 |
- # Drop .config, fixes to gcc-4.6 |
366 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
367 |
- |
368 |
- # drop flags |
369 |
- unset CFLAGS |
370 |
- unset LDFLAGS |
371 |
- unset ASFLAGS |
372 |
- unset CPPFLAGS |
373 |
- |
374 |
- if ! use pygrub; then |
375 |
- sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die |
376 |
- fi |
377 |
- |
378 |
- if ! use python; then |
379 |
- sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die |
380 |
- fi |
381 |
- |
382 |
- if ! use hvm; then |
383 |
- sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die |
384 |
- # Bug 351648 |
385 |
- elif ! use x86 && ! has x86 $(get_all_abis); then |
386 |
- mkdir -p "${WORKDIR}"/extra-headers/gnu || die |
387 |
- touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die |
388 |
- export CPATH="${WORKDIR}"/extra-headers |
389 |
- fi |
390 |
- |
391 |
- if use qemu; then |
392 |
- if use sdl; then |
393 |
- sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \ |
394 |
- tools/Makefile || die |
395 |
- else |
396 |
- sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \ |
397 |
- tools/qemu-xen-traditional/xen-setup || die |
398 |
- sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \ |
399 |
- tools/Makefile || die |
400 |
- fi |
401 |
- else |
402 |
- # Don't bother with qemu, only needed for fully virtualised guests |
403 |
- sed -i '/SUBDIRS-$(CONFIG_QEMU_XEN)/s/^/#/g' tools/Makefile || die |
404 |
- fi |
405 |
- |
406 |
- # Reset bash completion dir; Bug 472438 |
407 |
- sed -e "s;^BASH_COMPLETION_DIR :=.*;BASH_COMPLETION_DIR := $(get_bashcompdir);" \ |
408 |
- -i config/Paths.mk.in || die |
409 |
- |
410 |
- # xencommons, Bug #492332, sed lighter weight than patching |
411 |
- sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \ |
412 |
- -i tools/hotplug/Linux/init.d/xencommons.in || die |
413 |
- |
414 |
- # fix bashishm |
415 |
- sed -e '/Usage/s/\$//g' \ |
416 |
- -i tools/hotplug/Linux/init.d/xendriverdomain.in || die |
417 |
- |
418 |
- # respect multilib, usr/lib/libcacard.so.0.0.0 |
419 |
- sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \ |
420 |
- -i tools/qemu-xen/configure || die |
421 |
- |
422 |
- #bug 518136, don't build 32bit exactuable for nomultilib profile |
423 |
- if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then |
424 |
- sed -i -e "/x86_emulator/d" tools/tests/Makefile || die |
425 |
- fi |
426 |
- |
427 |
- # uncomment lines in xl.conf |
428 |
- sed -e 's:^#autoballoon=:autoballoon=:' \ |
429 |
- -e 's:^#lockfile=:lockfile=:' \ |
430 |
- -e 's:^#vif.default.script=:vif.default.script=:' \ |
431 |
- -i tools/examples/xl.conf || die |
432 |
- |
433 |
- # disable capstone (Bug #673474) |
434 |
- sed -e "s:\$\$source/configure:\0 --disable-capstone:" \ |
435 |
- -i tools/Makefile || die |
436 |
- |
437 |
- # disable glusterfs |
438 |
- sed -e "s:\$\$source/configure:\0 --disable-glusterfs:" \ |
439 |
- -i tools/Makefile || die |
440 |
- |
441 |
- # disable jpeg automagic |
442 |
- sed -e "s:\$\$source/configure:\0 --disable-vnc-jpeg:" \ |
443 |
- -i tools/Makefile || die |
444 |
- |
445 |
- # disable png automagic |
446 |
- sed -e "s:\$\$source/configure:\0 --disable-vnc-png:" \ |
447 |
- -i tools/Makefile || die |
448 |
- |
449 |
- # disable docker (Bug #732970) |
450 |
- sed -e "s:\$\$source/configure:\0 --disable-containers:" \ |
451 |
- -i tools/Makefile || die |
452 |
- |
453 |
- # disable abi-dumper (Bug #791172) |
454 |
- sed -e 's/$(ABI_DUMPER) /echo /g' \ |
455 |
- -i tools/libs/libs.mk || die |
456 |
- |
457 |
- # Remove -Werror |
458 |
- find . -type f \( -name Makefile -o -name "*.mk" \) \ |
459 |
- -exec sed -i \ |
460 |
- -e 's/-Werror //g' \ |
461 |
- -e '/^CFLAGS *+= -Werror$/d' \ |
462 |
- -e 's/, "-Werror"//' \ |
463 |
- {} + || die |
464 |
- |
465 |
- default |
466 |
-} |
467 |
- |
468 |
-src_configure() { |
469 |
- local myconf=( |
470 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
471 |
- --libexecdir="${EPREFIX}/usr/libexec" |
472 |
- --localstatedir="${EPREFIX}/var" |
473 |
- --disable-golang |
474 |
- --disable-werror |
475 |
- --disable-xen |
476 |
- --enable-tools |
477 |
- --enable-docs |
478 |
- $(use_enable api xenapi) |
479 |
- $(use_enable ipxe) |
480 |
- $(usex system-ipxe '--with-system-ipxe=/usr/share/ipxe' '') |
481 |
- $(use_enable ocaml ocamltools) |
482 |
- $(use_enable ovmf) |
483 |
- $(use_enable rombios) |
484 |
- $(use_enable systemd) |
485 |
- --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') |
486 |
- ) |
487 |
- |
488 |
- use system-seabios && myconf+=( --with-system-seabios=/usr/share/seabios/bios.bin ) |
489 |
- use system-qemu && myconf+=( --with-system-qemu=/usr/bin/qemu-system-x86_64 ) |
490 |
- use amd64 && myconf+=( $(use_enable qemu-traditional) ) |
491 |
- tc-ld-disable-gold # Bug 669570 |
492 |
- econf ${myconf[@]} |
493 |
-} |
494 |
- |
495 |
-src_compile() { |
496 |
- local myopt |
497 |
- use debug && myopt="${myopt} debug=y" |
498 |
- use python && myopt="${myopt} XENSTAT_PYTHON_BINDINGS=y" |
499 |
- |
500 |
- if test-flag-CC -fno-strict-overflow; then |
501 |
- append-flags -fno-strict-overflow |
502 |
- fi |
503 |
- |
504 |
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" build-tools ${myopt} |
505 |
- |
506 |
- if use doc; then |
507 |
- emake -C docs build |
508 |
- else |
509 |
- emake -C docs man-pages |
510 |
- fi |
511 |
-} |
512 |
- |
513 |
-src_install() { |
514 |
- # Override auto-detection in the build system, bug #382573 |
515 |
- export INITD_DIR=/tmp/init.d |
516 |
- export CONFIG_LEAF_DIR=../tmp/default |
517 |
- |
518 |
- # Let the build system compile installed Python modules. |
519 |
- local PYTHONDONTWRITEBYTECODE |
520 |
- export PYTHONDONTWRITEBYTECODE |
521 |
- |
522 |
- emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \ |
523 |
- XEN_PYTHON_NATIVE_INSTALL=y install-tools |
524 |
- |
525 |
- # Created at runtime |
526 |
- rm -rv "${ED}/var/run" || die |
527 |
- |
528 |
- # Fix the remaining Python shebangs. |
529 |
- python_fix_shebang "${D}" |
530 |
- |
531 |
- # Remove RedHat-specific stuff |
532 |
- rm -rf "${D}"/tmp || die |
533 |
- |
534 |
- if use doc; then |
535 |
- emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs |
536 |
- dodoc -r docs/{pdf,txt} |
537 |
- else |
538 |
- emake -C docs DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-man-pages # Bug 668032 |
539 |
- fi |
540 |
- dodoc ${DOCS[@]} |
541 |
- |
542 |
- newconfd "${FILESDIR}"/xendomains.confd xendomains |
543 |
- newconfd "${FILESDIR}"/xenstored.confd xenstored |
544 |
- newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled |
545 |
- newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains |
546 |
- newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored |
547 |
- newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled |
548 |
- newinitd "${FILESDIR}"/xencommons.initd xencommons |
549 |
- newconfd "${FILESDIR}"/xencommons.confd xencommons |
550 |
- newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev |
551 |
- newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev |
552 |
- newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog |
553 |
- |
554 |
- if use screen; then |
555 |
- cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die |
556 |
- cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die |
557 |
- keepdir /var/log/xen-consoles |
558 |
- fi |
559 |
- |
560 |
- # For -static-libs wrt Bug 384355 |
561 |
- if ! use static-libs; then |
562 |
- rm -f "${D}"/usr/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ocaml/*/*.a |
563 |
- fi |
564 |
- |
565 |
- # for xendomains |
566 |
- keepdir /etc/xen/auto |
567 |
- |
568 |
- # Remove files failing QA AFTER emake installs them, avoiding seeking absent files |
569 |
- find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \ |
570 |
- -o -name openbios-ppc -o -name palcode-clipper \) -delete || die |
571 |
- |
572 |
- keepdir /var/lib/xen/dump |
573 |
- keepdir /var/lib/xen/xenpaging |
574 |
- keepdir /var/lib/xenstored |
575 |
- keepdir /var/log/xen |
576 |
- |
577 |
- if use python; then |
578 |
- python_domodule "${S}/tools/libs/stat/bindings/swig/python/xenstat.py" |
579 |
- python_domodule "${S}/tools/libs/stat/bindings/swig/python/_xenstat.so" |
580 |
- fi |
581 |
- |
582 |
- python_optimize |
583 |
-} |
584 |
- |
585 |
-pkg_postinst() { |
586 |
- elog "Official Xen Guide and the offical wiki page:" |
587 |
- elog "https://wiki.gentoo.org/wiki/Xen" |
588 |
- elog "https://wiki.xen.org/wiki/Main_Page" |
589 |
- elog "" |
590 |
- elog "Recommended to utilise the xencommons script to config system at boot" |
591 |
- elog "Add by use of rc-update on completion of the install" |
592 |
- |
593 |
- if ! use hvm; then |
594 |
- echo |
595 |
- elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm" |
596 |
- elog "support enable the hvm use flag." |
597 |
- elog "An x86 or amd64 system is required to build HVM support." |
598 |
- fi |
599 |
- |
600 |
- if use qemu; then |
601 |
- elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source" |
602 |
- elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently" |
603 |
- elog "with the qemu capable xen. It is up to the user to distinguish between and utilise" |
604 |
- elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise" |
605 |
- fi |
606 |
-} |