1 |
commit: 325af4306c612b55ef4ece5c924f310abfe2a515 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Nov 21 05:36:44 2018 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 22 07:03:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=325af430 |
7 |
|
8 |
app-emulation/xen-tools: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
13 |
|
14 |
app-emulation/xen-tools/Manifest | 2 - |
15 |
app-emulation/xen-tools/xen-tools-4.10.1-r2.ebuild | 456 --------------------- |
16 |
2 files changed, 458 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest |
19 |
index 98358f5622a..6e41ea982de 100644 |
20 |
--- a/app-emulation/xen-tools/Manifest |
21 |
+++ b/app-emulation/xen-tools/Manifest |
22 |
@@ -1,7 +1,5 @@ |
23 |
DIST ovmf-20170321.tar.xz 22141096 BLAKE2B 79e991c8f9deb297865c319e88b6e6d46b1d08067d3fd639c83f2a379670779ecc60c74c2671ea4eb4a6659fe08ac2d7d4ff337b010b42a908a50829a2d18eeb SHA512 f65dabde3df967224e2072817211786ee4fc3994ee31f8f9d6f67fd74e3479e1da459c720169dd81020cdc1777e4600e531bb124b4625c2ded42c6005bdc802a |
24 |
DIST seabios-1.10.0.tar.gz 588213 BLAKE2B 254eb4572a1dac06020a545820efb53a130a027aaab035cd916009b424475f89bd151f82f1bc5103c01c4657d09da3219d2fbcc7728add473011dcfc7bff7410 SHA512 f1b83ce37b59070b488e19f98c95ca9f413cf4969663331b631c3ccb884c90b2db793d32a779ef05cead538c2fd123be4b73391ad2fa20c900a1f14237178d8c |
25 |
-DIST xen-4.10.1-upstream-patches-2.tar.xz 117588 BLAKE2B ddcd58964117652b50f3524d89089e2e9b14a8399fb5bd2db5d12827035ab94cedbfd5d65134d8953e4062a50e0e8a9b320e9c34008db8fd364456f47fd9cd26 SHA512 49ee8497af3753f3d611bf12c65fb7a79abb018862f1af096e9dde3ddfe8780bb95fc3da338c8d5f16a5d6d233d606d4cf8025a3d0e2897bf2668a1d5b27b198 |
26 |
-DIST xen-4.10.1.tar.gz 24674240 BLAKE2B f9a7e0c637db865ab32ad6b6185ab96022903aff65a18e194286a3fc372d4a45f6682cd636b7ac5b4fa0125e54ed51f8876a411d498cf75791718fd088c4a6d2 SHA512 236c02bee69e33644703ed26d323d4c491a91fc05bd0ee0990a7368579f7c82f5bb4510845bf80348fd923024d7d60d521f593dfd0365d971dc592f8ef10fbea |
27 |
DIST xen-4.10.2-upstream-patches-1.tar.xz 31768 BLAKE2B 9205e5fa011426ae3eeaa19694d14ca233805be1e60326d53ec319de1fa28e3b30e7949d7d694ccc8f0e5ea77df580bb6cf22652ae1fd023fdc49b2d37dbce0a SHA512 38c2286d8c1e39d42c266c76d97b5321ca5fb931ebe33ff01c5210fdda4d64ccb39eb6463e756c5178ab7d1c8433a56668abf1dabf4b5b5e85823817d927cd33 |
28 |
DIST xen-4.10.2.tar.gz 24697204 BLAKE2B b331d3ad8d7842446f7d2da5dd31560f636aa1408dd3cc8798dff35b868ef5a609d17e97ef4355e1e5aa825a5abc74103796f9a8015037f0a564ffcebd825722 SHA512 2e301b4d6eb106fcb52203bc1208c8fd1fc7bb5d795166c0f86e4085227050301f7daa6f21db440c47bc2ca2c7f87d9b96753cfdf3fa724e0416b5679b84c163 |
29 |
DIST xen-4.11.0-upstream-patches-2.tar.xz 83788 BLAKE2B 3f612492827a1408a3ba058c64b8b9562f7415d19f15241257b7b6754aed472e37538bfed2a017c6664b276f43a1e9c5f87b60454b2eaa0613c84edeb035a28d SHA512 cddc270f2fddbf75f33b45496f5db4586b5463d65fa3604e9df48c116231f088551213c2a021f2b0ad329f7290b36bfdd577cda506c359311c65e897cdf50bd1 |
30 |
|
31 |
diff --git a/app-emulation/xen-tools/xen-tools-4.10.1-r2.ebuild b/app-emulation/xen-tools/xen-tools-4.10.1-r2.ebuild |
32 |
deleted file mode 100644 |
33 |
index 57728136499..00000000000 |
34 |
--- a/app-emulation/xen-tools/xen-tools-4.10.1-r2.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,456 +0,0 @@ |
37 |
-# Copyright 1999-2018 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-PYTHON_COMPAT=( python2_7 ) |
43 |
-PYTHON_REQ_USE='ncurses,xml,threads' |
44 |
- |
45 |
-inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs versionator |
46 |
- |
47 |
-MY_PV=${PV/_/-} |
48 |
-MAJOR_V="$(get_version_component_range 1-2)" |
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=14 |
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=3 |
65 |
- |
66 |
- SEABIOS_VER=1.10.0 |
67 |
- # OVMF upstream 5920a9d16b1ab887c2858224316a98e961d71b05 |
68 |
- OVMF_PV=20170321 |
69 |
- |
70 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
71 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz |
72 |
- https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
73 |
- [[ -n ${SECURITY_VER} ]] && \ |
74 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz" |
75 |
- [[ -n ${GENTOO_VER} ]] && \ |
76 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz |
77 |
- https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz" |
78 |
- [[ -n ${OVMF_VER} ]] && \ |
79 |
- OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz" |
80 |
- |
81 |
- SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz |
82 |
- http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz |
83 |
- https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz |
84 |
- ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.xz |
85 |
- ${OVMF_PATCHSET_URI} ) |
86 |
- ${UPSTREAM_PATCHSET_URI} |
87 |
- ${SECURITY_PATCHSET_URI} |
88 |
- ${GENTOO_PATCHSET_URI}" |
89 |
- |
90 |
- S="${WORKDIR}/xen-${MY_PV}" |
91 |
-fi |
92 |
- |
93 |
-DESCRIPTION="Xen tools including QEMU and xl" |
94 |
-HOMEPAGE="https://www.xenproject.org" |
95 |
-DOCS=( README docs/README.xen-bugtool ) |
96 |
- |
97 |
-LICENSE="GPL-2" |
98 |
-SLOT="0/${MAJOR_V}" |
99 |
-# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make |
100 |
-# >=dev-lang/ocaml-4 stable |
101 |
-# Masked in profiles/eapi-5-files instead |
102 |
-IUSE="api custom-cflags debug doc flask hvm ocaml ovmf +pam pygrub python +qemu +qemu-traditional screen sdl static-libs system-qemu system-seabios" |
103 |
- |
104 |
-REQUIRED_USE=" |
105 |
- ${PYTHON_REQUIRED_USE} |
106 |
- pygrub? ( python ) |
107 |
- ovmf? ( hvm ) |
108 |
- ^^ ( qemu system-qemu )" |
109 |
- |
110 |
-COMMON_DEPEND=" |
111 |
- sys-apps/pciutils |
112 |
- dev-libs/lzo:2 |
113 |
- dev-libs/glib:2 |
114 |
- dev-libs/yajl |
115 |
- dev-libs/libaio |
116 |
- dev-libs/libgcrypt:0 |
117 |
- sys-libs/zlib |
118 |
- ${PYTHON_DEPS} |
119 |
-" |
120 |
- |
121 |
-DEPEND="${COMMON_DEPEND} |
122 |
- >=sys-kernel/linux-headers-4.11 |
123 |
- dev-python/lxml[${PYTHON_USEDEP}] |
124 |
- x86? ( sys-devel/dev86 |
125 |
- sys-power/iasl ) |
126 |
- pam? ( dev-python/pypam[${PYTHON_USEDEP}] ) |
127 |
- api? ( dev-libs/libxml2 |
128 |
- net-misc/curl ) |
129 |
- ovmf? ( |
130 |
- !arm? ( !arm64? ( dev-lang/nasm ) ) |
131 |
- $(python_gen_impl_dep sqlite) |
132 |
- ) |
133 |
- !amd64? ( >=sys-apps/dtc-1.4.0 ) |
134 |
- amd64? ( sys-devel/bin86 |
135 |
- system-seabios? ( sys-firmware/seabios ) |
136 |
- sys-firmware/ipxe |
137 |
- sys-devel/dev86 |
138 |
- sys-power/iasl ) |
139 |
- dev-lang/perl |
140 |
- app-misc/pax-utils |
141 |
- doc? ( |
142 |
- app-text/ghostscript-gpl |
143 |
- app-text/pandoc |
144 |
- dev-python/markdown[${PYTHON_USEDEP}] |
145 |
- dev-texlive/texlive-latexextra |
146 |
- media-gfx/transfig |
147 |
- ) |
148 |
- hvm? ( x11-base/xorg-proto |
149 |
- !net-libs/libiscsi ) |
150 |
- qemu? ( |
151 |
- app-arch/snappy:= |
152 |
- x11-libs/pixman |
153 |
- sdl? ( media-libs/libsdl[X] ) |
154 |
- ) |
155 |
- system-qemu? ( app-emulation/qemu[xen] ) |
156 |
- ocaml? ( dev-ml/findlib |
157 |
- >=dev-lang/ocaml-4 )" |
158 |
- |
159 |
-RDEPEND="${COMMON_DEPEND} |
160 |
- sys-apps/iproute2[-minimal] |
161 |
- net-misc/bridge-utils |
162 |
- screen? ( |
163 |
- app-misc/screen |
164 |
- app-admin/logrotate |
165 |
- )" |
166 |
- |
167 |
-# hvmloader is used to bootstrap a fully virtualized kernel |
168 |
-# Approved by QA team in bug #144032 |
169 |
-QA_WX_LOAD=" |
170 |
- usr/libexec/xen/boot/hvmloader |
171 |
- usr/share/qemu-xen/qemu/s390-ccw.img |
172 |
- usr/share/qemu-xen/qemu/u-boot.e500 |
173 |
-" |
174 |
- |
175 |
-QA_PREBUILT=" |
176 |
- usr/libexec/xen/bin/ivshmem-client |
177 |
- usr/libexec/xen/bin/ivshmem-server |
178 |
- usr/libexec/xen/bin/qemu-img |
179 |
- usr/libexec/xen/bin/qemu-io |
180 |
- usr/libexec/xen/bin/qemu-nbd |
181 |
- usr/libexec/xen/bin/qemu-system-i386 |
182 |
- usr/libexec/xen/bin/virtfs-proxy-helper |
183 |
- usr/libexec/xen/libexec/xen-bridge-helper |
184 |
- usr/share/qemu-xen/qemu/s390-ccw.img |
185 |
- usr/share/qemu-xen/qemu/s390-netboot.img |
186 |
- usr/share/qemu-xen/qemu/u-boot.e500 |
187 |
-" |
188 |
- |
189 |
-RESTRICT="test" |
190 |
- |
191 |
-pkg_setup() { |
192 |
- python_setup |
193 |
- export "CONFIG_LOMOUNT=y" |
194 |
- |
195 |
- #bug 522642, disable compile tools/tests |
196 |
- export "CONFIG_TESTS=n" |
197 |
- |
198 |
- if [[ -z ${XEN_TARGET_ARCH} ]] ; then |
199 |
- if use x86 && use amd64; then |
200 |
- die "Confusion! Both x86 and amd64 are set in your use flags!" |
201 |
- elif use x86; then |
202 |
- export XEN_TARGET_ARCH="x86_32" |
203 |
- elif use amd64 ; then |
204 |
- export XEN_TARGET_ARCH="x86_64" |
205 |
- elif use arm; then |
206 |
- export XEN_TARGET_ARCH="arm32" |
207 |
- elif use arm64; then |
208 |
- export XEN_TARGET_ARCH="arm64" |
209 |
- else |
210 |
- die "Unsupported architecture!" |
211 |
- fi |
212 |
- fi |
213 |
-} |
214 |
- |
215 |
-src_prepare() { |
216 |
- local i |
217 |
- |
218 |
- # Upstream's patchset |
219 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
220 |
- einfo "Try to apply Xen Upstream patch set" |
221 |
- eapply "${WORKDIR}"/patches-upstream |
222 |
- fi |
223 |
- |
224 |
- # Security patchset |
225 |
- if [[ -n ${SECURITY_VER} ]]; then |
226 |
- einfo "Try to apply Xen Security patch set" |
227 |
- # apply main xen patches |
228 |
- # Two parallel systems, both work side by side |
229 |
- # Over time they may concdense into one. This will suffice for now |
230 |
- EPATCH_SUFFIX="patch" |
231 |
- EPATCH_FORCE="yes" |
232 |
- |
233 |
- source "${WORKDIR}"/patches-security/${PV}.conf || die |
234 |
- |
235 |
- for i in ${XEN_SECURITY_MAIN}; do |
236 |
- eapply "${WORKDIR}"/patches-security/xen/$i |
237 |
- done |
238 |
- |
239 |
- # apply qemu-xen/upstream patches |
240 |
- pushd "${S}"/tools/qemu-xen/ > /dev/null |
241 |
- for i in ${XEN_SECURITY_QEMUU}; do |
242 |
- eapply "${WORKDIR}"/patches-security/qemuu/$i |
243 |
- done |
244 |
- popd > /dev/null |
245 |
- |
246 |
- # apply qemu-traditional patches |
247 |
- pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null |
248 |
- for i in ${XEN_SECURITY_QEMUT}; do |
249 |
- eapply "${WORKDIR}"/patches-security/qemut/$i |
250 |
- done |
251 |
- popd > /dev/null |
252 |
- fi |
253 |
- |
254 |
- # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err |
255 |
- mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die |
256 |
- pushd tools/firmware/ > /dev/null |
257 |
- ln -s seabios-dir-remote seabios-dir || die |
258 |
- popd > /dev/null |
259 |
- |
260 |
- # Gentoo's patchset |
261 |
- if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then |
262 |
- einfo "Try to apply Gentoo specific patch set" |
263 |
- source "${FILESDIR}"/gentoo-patches.conf || die |
264 |
- _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV} |
265 |
- for i in ${!_gpv}; do |
266 |
- eapply "${WORKDIR}"/patches-gentoo/$i |
267 |
- done |
268 |
- fi |
269 |
- |
270 |
- # Ovmf's patchset |
271 |
- if use ovmf; then |
272 |
- if [[ -n ${OVMF_VER} ]];then |
273 |
- einfo "Try to apply Ovmf patch set" |
274 |
- pushd "${WORKDIR}"/ovmf-*/ > /dev/null |
275 |
- eapply "${WORKDIR}"/patches-ovmf |
276 |
- popd > /dev/null |
277 |
- fi |
278 |
- mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die |
279 |
- fi |
280 |
- |
281 |
- mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die |
282 |
- |
283 |
- # Fix texi2html build error with new texi2html, qemu.doc.html |
284 |
- sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die |
285 |
- |
286 |
- use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die |
287 |
- sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \ |
288 |
- -i tools/firmware/Makefile || die |
289 |
- |
290 |
- # Drop .config, fixes to gcc-4.6 |
291 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
292 |
- |
293 |
- # if the user *really* wants to use their own custom-cflags, let them |
294 |
- if use custom-cflags; then |
295 |
- einfo "User wants their own CFLAGS - removing defaults" |
296 |
- |
297 |
- # try and remove all the default cflags |
298 |
- find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \ |
299 |
- -exec sed \ |
300 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
301 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
302 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
303 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
304 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
305 |
- -i {} + || die "failed to re-set custom-cflags" |
306 |
- else |
307 |
- unset CFLAGS |
308 |
- unset LDFLAGS |
309 |
- unset ASFLAGS |
310 |
- unset CPPFLAGS |
311 |
- fi |
312 |
- |
313 |
- if ! use pygrub; then |
314 |
- sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die |
315 |
- fi |
316 |
- |
317 |
- if ! use python; then |
318 |
- sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die |
319 |
- fi |
320 |
- |
321 |
- if ! use hvm; then |
322 |
- sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die |
323 |
- # Bug 351648 |
324 |
- elif ! use x86 && ! has x86 $(get_all_abis); then |
325 |
- mkdir -p "${WORKDIR}"/extra-headers/gnu || die |
326 |
- touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die |
327 |
- export CPATH="${WORKDIR}"/extra-headers |
328 |
- fi |
329 |
- |
330 |
- if use qemu; then |
331 |
- if use sdl; then |
332 |
- sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \ |
333 |
- tools/Makefile || die |
334 |
- else |
335 |
- sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \ |
336 |
- tools/qemu-xen-traditional/xen-setup || die |
337 |
- sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \ |
338 |
- tools/Makefile || die |
339 |
- fi |
340 |
- else |
341 |
- # Don't bother with qemu, only needed for fully virtualised guests |
342 |
- sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die |
343 |
- fi |
344 |
- |
345 |
- # Reset bash completion dir; Bug 472438 |
346 |
- sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \ |
347 |
- -i Config.mk || die |
348 |
- sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die |
349 |
- |
350 |
- # xencommons, Bug #492332, sed lighter weight than patching |
351 |
- sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \ |
352 |
- -i tools/hotplug/Linux/init.d/xencommons.in || die |
353 |
- |
354 |
- # fix bashishm |
355 |
- sed -e '/Usage/s/\$//g' \ |
356 |
- -i tools/hotplug/Linux/init.d/xendriverdomain.in || die |
357 |
- |
358 |
- # respect multilib, usr/lib/libcacard.so.0.0.0 |
359 |
- sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \ |
360 |
- -i tools/qemu-xen/configure || die |
361 |
- |
362 |
- #bug 518136, don't build 32bit exactuable for nomultilib profile |
363 |
- if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then |
364 |
- sed -i -e "/x86_emulator/d" tools/tests/Makefile || die |
365 |
- fi |
366 |
- |
367 |
- # uncomment lines in xl.conf |
368 |
- sed -e 's:^#autoballoon=:autoballoon=:' \ |
369 |
- -e 's:^#lockfile=:lockfile=:' \ |
370 |
- -e 's:^#vif.default.script=:vif.default.script=:' \ |
371 |
- -i tools/examples/xl.conf || die |
372 |
- |
373 |
- default |
374 |
-} |
375 |
- |
376 |
-src_configure() { |
377 |
- local myconf="--prefix=${PREFIX}/usr \ |
378 |
- --libdir=${PREFIX}/usr/$(get_libdir) \ |
379 |
- --libexecdir=${PREFIX}/usr/libexec \ |
380 |
- --localstatedir=${EPREFIX}/var \ |
381 |
- --disable-werror \ |
382 |
- --disable-xen \ |
383 |
- --enable-tools \ |
384 |
- --enable-docs \ |
385 |
- $(use_enable pam) \ |
386 |
- $(use_enable api xenapi) \ |
387 |
- $(use_enable ovmf) \ |
388 |
- $(use_enable ocaml ocamltools) \ |
389 |
- --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \ |
390 |
- " |
391 |
- |
392 |
- use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin" |
393 |
- use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64" |
394 |
- use amd64 && myconf+=" $(use_enable qemu-traditional)" |
395 |
- econf ${myconf} |
396 |
-} |
397 |
- |
398 |
-src_compile() { |
399 |
- local myopt |
400 |
- use debug && myopt="${myopt} debug=y" |
401 |
- |
402 |
- if test-flag-CC -fno-strict-overflow; then |
403 |
- append-flags -fno-strict-overflow |
404 |
- fi |
405 |
- |
406 |
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" build-tools ${myopt} |
407 |
- |
408 |
- if use doc; then |
409 |
- emake -C docs build |
410 |
- else |
411 |
- emake -C docs man-pages |
412 |
- fi |
413 |
-} |
414 |
- |
415 |
-src_install() { |
416 |
- # Override auto-detection in the build system, bug #382573 |
417 |
- export INITD_DIR=/tmp/init.d |
418 |
- export CONFIG_LEAF_DIR=../tmp/default |
419 |
- |
420 |
- # Let the build system compile installed Python modules. |
421 |
- local PYTHONDONTWRITEBYTECODE |
422 |
- export PYTHONDONTWRITEBYTECODE |
423 |
- |
424 |
- emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \ |
425 |
- XEN_PYTHON_NATIVE_INSTALL=y install-tools |
426 |
- |
427 |
- # Created at runtime |
428 |
- rm -rv "${ED%/}/var/run" || die |
429 |
- |
430 |
- # Fix the remaining Python shebangs. |
431 |
- python_fix_shebang "${D}" |
432 |
- |
433 |
- # Remove RedHat-specific stuff |
434 |
- rm -rf "${D}"tmp || die |
435 |
- |
436 |
- emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs |
437 |
- use doc && dodoc -r docs/{pdf,txt} |
438 |
- dodoc ${DOCS[@]} |
439 |
- |
440 |
- newconfd "${FILESDIR}"/xendomains.confd xendomains |
441 |
- newconfd "${FILESDIR}"/xenstored.confd xenstored |
442 |
- newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled |
443 |
- newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains |
444 |
- newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored |
445 |
- newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled |
446 |
- newinitd "${FILESDIR}"/xencommons.initd xencommons |
447 |
- newconfd "${FILESDIR}"/xencommons.confd xencommons |
448 |
- newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev |
449 |
- newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev |
450 |
- newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog |
451 |
- |
452 |
- if use screen; then |
453 |
- cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die |
454 |
- cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die |
455 |
- keepdir /var/log/xen-consoles |
456 |
- fi |
457 |
- |
458 |
- # For -static-libs wrt Bug 384355 |
459 |
- if ! use static-libs; then |
460 |
- rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a |
461 |
- fi |
462 |
- |
463 |
- # for xendomains |
464 |
- keepdir /etc/xen/auto |
465 |
- |
466 |
- # Remove files failing QA AFTER emake installs them, avoiding seeking absent files |
467 |
- find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \ |
468 |
- -o -name openbios-ppc -o -name palcode-clipper \) -delete || die |
469 |
-} |
470 |
- |
471 |
-pkg_postinst() { |
472 |
- elog "Official Xen Guide and the offical wiki page:" |
473 |
- elog "https://wiki.gentoo.org/wiki/Xen" |
474 |
- elog "https://wiki.xen.org/wiki/Main_Page" |
475 |
- elog "" |
476 |
- elog "Recommended to utilise the xencommons script to config sytem At boot" |
477 |
- elog "Add by use of rc-update on completion of the install" |
478 |
- |
479 |
- if ! use hvm; then |
480 |
- echo |
481 |
- elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm" |
482 |
- elog "support enable the hvm use flag." |
483 |
- elog "An x86 or amd64 system is required to build HVM support." |
484 |
- fi |
485 |
- |
486 |
- if use qemu; then |
487 |
- elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source" |
488 |
- elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently" |
489 |
- elog "with the qemu capable xen. It is up to the user to distinguish between and utilise" |
490 |
- elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise" |
491 |
- fi |
492 |
-} |