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