Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen-tools/
Date: Wed, 28 Dec 2016 09:06:28
Message-Id: 1482915888.30e5d31c81de5753919218076c00821c24fbbed1.dlan@gentoo
1 commit: 30e5d31c81de5753919218076c00821c24fbbed1
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 28 09:04:48 2016 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 09:04:48 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30e5d31c
7
8 app-emulation/xen-tools: drop old vulnerables
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-emulation/xen-tools/Manifest | 3 -
13 app-emulation/xen-tools/xen-tools-4.6.4-r4.ebuild | 461 ----------------------
14 app-emulation/xen-tools/xen-tools-4.8.0.ebuild | 456 ---------------------
15 3 files changed, 920 deletions(-)
16
17 diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
18 index 9d74946..8a27775 100644
19 --- a/app-emulation/xen-tools/Manifest
20 +++ b/app-emulation/xen-tools/Manifest
21 @@ -1,13 +1,10 @@
22 DIST ovmf-20151110.tar.bz2 27518370 SHA256 74199f6b5c6f756881323242742c396c52096db5f61700a4eb839343f9ab0604 SHA512 dda185af2fc0b9a8d5fc7e1e96db6aa31807782fe77d38491896164d125c30d2277db3d71a7dce7bbd569723b344b97dfebbc78ddddca0a095721f6b1ae3a1d3 WHIRLPOOL 145fb1c873cce96b81b269b44800987ca1b7350425b682fd5a5799648b0270c6c17bb337ad7e06650e6b66a9ac6eef8d9c9239f1478a687be4af187e60c3f3f5
23 DIST seabios-1.10.0.tar.gz 588213 SHA256 8976fc4c1ebcda66ac96689762247dfc99115a5f7acb3a7d4e18d18ff5de12a9 SHA512 f1b83ce37b59070b488e19f98c95ca9f413cf4969663331b631c3ccb884c90b2db793d32a779ef05cead538c2fd123be4b73391ad2fa20c900a1f14237178d8c WHIRLPOOL 77718eac01a59f94c3fa81195925ae09c19e11f80f107b3387e910408d88d3ffc93eaca3b73d6a52b67514538c0e020b0f4078db8277a5ee6361fd0d3ada8598
24 DIST seabios-1.8.2.tar.gz 538497 SHA256 f59479307fdae840de398b75aacb2333c8eba24a5964d68c77e32ca6c987ee61 SHA512 798d222d5f5725a805cde9e6000b5ce714d0551fd4a3c2642cc6e77b2bdab1a9e239939a358a23bbe0e00112f5ad70696c87d20b90655463c835541fc04e1a00 WHIRLPOOL 9cda0ad502a59dd718c543b759ac3fcf5acb4adee70c3da9bfea95ab188415acf6425827de77f45421ec3be8fd9e0c37fb486e62828217ba3e83f88d942a3f4a
25 -DIST xen-4.6.4-upstream-patches-0.tar.xz 15280 SHA256 0f2d55e44e2c98fb7caf76997c05f44fe1efdbf7eaa971a4bf234ea3bc95e244 SHA512 26be1b03af1ac0d6a413b0ab8a30d59c733d6d5c4e29ce3b5b90818a1589cbb5c46a50b9ee42b273ef3b37df8ff403241d68e1e2221ce969054fb7e5f13516ab WHIRLPOOL 52420897c49cd1bcfd8896df45a1f9c8df6337cb68dd7a6ff962361e7ab2eab1e6d6699ae8236b105e6b700b5d5b6c8da302ff477ac6493a60a665e4225cff02
26 -DIST xen-4.6.4.tar.gz 19709274 SHA256 b795d5631a85fb68295361067195ecd00003656dacede4ec57533fce33ab5109 SHA512 e6278061a16829628030579e115a500970ff575eb6796189bfa1e2d7a8cbbf8aec2c2bd04c77cdc87226d6cc5eaee59d6c62cacb4e74b06e1f1379734b872938 WHIRLPOOL a982f7bbf2ba16781ac0f310ef27a32e9115596e91117609d22827bc1999facb12df4f33d1ba0b7015cbfae90a24302243d508e8c38ba45ea998341b76ba0567
27 DIST xen-4.7.1-upstream-patches-0.tar.xz 16420 SHA256 cb4724fedadc408ec390f99e9928a44ec75e793fb55cb97793f09980855b6a32 SHA512 79e117c48c6cc3d5783c818218ac11ec494735ce89755b5e263a64c23fb1f0a425bc65b567a24ce2e348b6e3839b26133c7e2c36411e5cc7acb54b855149dfbe WHIRLPOOL 982165da62cbb28cd72d32662c366ca7dac91a511b356eb58bced4b4af5cbc0d94c7e280a2400e5d9c92938d2afee86abd7c688926c2b9cb191d4554be828844
28 DIST xen-4.7.1.tar.gz 20706864 SHA256 e87f4b0575e78657ee23d31470a15ecf1ce8c3a92a771cda46bbcd4d0d671ffe SHA512 eb03244f5fa7b54402fcc1d38f1e69c0ea4536d5ab2f9859b41b5e94920ad9db20fb146e3c3d3635e9ca1d12e93ce0429e57f24bf53d4a2c4b69babc76ec724e WHIRLPOOL 5d7ba29ea58bdedb6a237f7cb1c0aacf361dc35ebb07ec8e55773e07b1f38c1b151615b526e14daeca7c2db235114bde0b6d124219e8818c6e529873b5151fec
29 DIST xen-4.8.0.tar.gz 22499917 SHA256 1e15c713ab7ba3bfda8b4a285ed973529364fd1100e6dd5a61f29583dc667b04 SHA512 70b95553f9813573b12e52999a4df8701dec430f23c36a8dc70d25a46bb4bc9234e5b7feb74a04062af4c8d6b6bcfe947d90b2b172416206812e54bac9797454 WHIRLPOOL 1296c25a05e3ab81730a2587ea1c07c7c022f05cfefc580224185c8d5fc9853531031c1292f69eff944ae2752492c4b95f13e160be3c449a7626aeadf1a21102
30 DIST xen-gentoo-patches-7.tar.xz 24148 SHA256 859fb6b69125c0a1079b35a74bb004dce1b04827b05f056a746cc42c1b187557 SHA512 faf2b0ecd67d545366e2af7e7ecab5f808d02354d07f23cbffe1c3cb80dbb5f88cc4aa140d928ad269612e55c41740ff5bf2af3f0a1f16e375d404c3ffa712b1 WHIRLPOOL d75c35fa10dd1f1567a82c5d5cd7ddabc72def6d74ef7095b7bca9ce9adad2b6ff9c88b55bad7cdefe88da027e5c742f9b9dcafce457cf15f408ea35652546f6
31 -DIST xen-gentoo-patches-8.tar.xz 24732 SHA256 6e114f3d3bde31f8595a51bd67fafdbb56cbd60793bafad7061fcaaef67f36fb SHA512 05da32f8fca0a9a43d419c2edd01d0c4abe233c0a8cc02e18caf6490ae9938c4302e8e61f7c67339f5fddab412be69504e1f05de895b73ac8b540914745fefd9 WHIRLPOOL 43d5114f455d2465995e9a1bffe5fff1e722540994348d05a3bac5504a970ad6af447f783ddf271a183207c21e75a0b77b6aed0a8ec8c89446e99ec1b377bcbe
32 DIST xen-gentoo-patches-9.tar.xz 27456 SHA256 67c410d12ef4628a8c0a931e5868b425f2eb4b2f0e307304a75384cbe509734b SHA512 9a797be9dd2392c34b3f6561c2274e116b4f5b114f4520dbbd0b51818c774479ceabb45aa916f93c1a2bc49787f4ca6e6c83bc743baa6bdeef91d77276b20f36 WHIRLPOOL c41cde532726bb55acd05d558b35d575b229d2ee64eba7438f7b196df313f0e44154148c1e47bf6e8c810667b3b237bcfa410371b4bb6f097b981f6b2637ead3
33 DIST xen-ovmf-patches-2.tar.xz 4344 SHA256 495d61d718440057f8b0b54fb57061450dd764c6e87fe5f8bda1785bcddba770 SHA512 0bdc83029a01b613f5c1ca029bd45aebe211c332f09db91a0cc7d6b6f85a81dbbfdc20c62f0d20e973ee41b155a6551a4fad518cb792e1d508bf070e23d6a1d3 WHIRLPOOL 8346d68fa5d2a8e8a5c007b55e2b85cf48df045cc8c4818f09c756d28a52dd856671f37b4a53478e9b96ca9d2eca0c67fd15f009a94d1d2dfed8e83e596d9633
34 DIST xen-security-patches-19.tar.xz 3336 SHA256 497a01fbd20fa45df19b41d337be0a87f4808101ac33cc9649461726abf43720 SHA512 d8a4a8ceeab9e2efedf880e7a2007b312a7f528cdb8fb1f748096621bbdc447ff8ee09b8fbe1aae657ccd7b2557e436cf60f6e70dcaef65e8959204e91f3ec57 WHIRLPOOL 26473bc9d7c2648f78f1fbf722e1ebcf42983d9d0e04d40f66eaad73c5a7ec232a397392dd5f66adb1258c571238a8faf0497ceb468674b93f7f86b91539f9b9
35
36 diff --git a/app-emulation/xen-tools/xen-tools-4.6.4-r4.ebuild b/app-emulation/xen-tools/xen-tools-4.6.4-r4.ebuild
37 deleted file mode 100644
38 index 7ac147c..00000000
39 --- a/app-emulation/xen-tools/xen-tools-4.6.4-r4.ebuild
40 +++ /dev/null
41 @@ -1,461 +0,0 @@
42 -# Copyright 1999-2016 Gentoo Foundation
43 -# Distributed under the terms of the GNU General Public License v2
44 -# $Id$
45 -
46 -EAPI=5
47 -
48 -PYTHON_COMPAT=( python2_7 )
49 -PYTHON_REQ_USE='ncurses,xml,threads'
50 -
51 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
52 -
53 -MY_PV=${PV/_/-}
54 -MAJOR_V="$(get_version_component_range 1-2)"
55 -
56 -if [[ $PV == *9999 ]]; then
57 - inherit git-r3
58 - KEYWORDS=""
59 - REPO="xen.git"
60 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
61 - S="${WORKDIR}/${REPO}"
62 -else
63 - KEYWORDS="amd64 ~arm ~arm64 x86"
64 - UPSTREAM_VER=0
65 - SECURITY_VER=19
66 - # xen-tools's gentoo patches tarball
67 - GENTOO_VER=7
68 - # xen-tools's gentoo patches version which apply to this specific ebuild
69 - GENTOO_GPV=1
70 - # xen-tools ovmf's patches
71 - OVMF_VER=2
72 -
73 - SEABIOS_VER=1.8.2
74 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
75 - OVMF_PV=20151110
76 -
77 - [[ -n ${UPSTREAM_VER} ]] && \
78 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
79 - [[ -n ${SECURITY_VER} ]] && \
80 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
81 - [[ -n ${GENTOO_VER} ]] && \
82 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
83 - [[ -n ${OVMF_VER} ]] && \
84 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
85 -
86 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
87 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
88 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
89 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
90 - ${OVMF_PATCHSET_URI} )
91 - ${UPSTREAM_PATCHSET_URI}
92 - ${SECURITY_PATCHSET_URI}
93 - ${GENTOO_PATCHSET_URI}"
94 -
95 - S="${WORKDIR}/xen-${MY_PV}"
96 -fi
97 -
98 -DESCRIPTION="Xen tools including QEMU and xl"
99 -HOMEPAGE="http://xen.org/"
100 -DOCS=( README docs/README.xen-bugtool )
101 -
102 -LICENSE="GPL-2"
103 -SLOT="0/${MAJOR_V}"
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 custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
108 -
109 -REQUIRED_USE="
110 - ${PYTHON_REQUIRED_USE}
111 - pygrub? ( python )
112 - ovmf? ( hvm )
113 - ^^ ( qemu system-qemu )"
114 -
115 -COMMON_DEPEND="
116 - dev-libs/lzo:2
117 - dev-libs/glib:2
118 - dev-libs/yajl
119 - dev-libs/libaio
120 - dev-libs/libgcrypt:0
121 - sys-libs/zlib
122 -"
123 -
124 -DEPEND="${COMMON_DEPEND}
125 - dev-python/lxml[${PYTHON_USEDEP}]
126 - x86? ( sys-devel/dev86
127 - sys-power/iasl )
128 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
129 - ${PYTHON_DEPS}
130 - api? ( dev-libs/libxml2
131 - net-misc/curl )
132 - ovmf? (
133 - !arm? ( dev-lang/nasm )
134 - $(python_gen_impl_dep sqlite)
135 - )
136 - !amd64? ( >=sys-apps/dtc-1.4.0 )
137 - amd64? ( sys-devel/bin86
138 - system-seabios? ( sys-firmware/seabios )
139 - sys-firmware/ipxe
140 - sys-devel/dev86
141 - sys-power/iasl )
142 - dev-lang/perl
143 - app-misc/pax-utils
144 - doc? (
145 - app-doc/doxygen
146 - dev-python/markdown[${PYTHON_USEDEP}]
147 - dev-tex/latex2html[png,gif]
148 - media-gfx/graphviz
149 - dev-tex/xcolor
150 - media-gfx/transfig
151 - dev-texlive/texlive-latexextra
152 - virtual/latex-base
153 - dev-tex/latexmk
154 - dev-texlive/texlive-latex
155 - dev-texlive/texlive-pictures
156 - dev-texlive/texlive-latexrecommended
157 - )
158 - hvm? ( x11-proto/xproto
159 - !net-libs/libiscsi )
160 - qemu? (
161 - x11-libs/pixman
162 - sdl? ( media-libs/libsdl[X] )
163 - )
164 - system-qemu? ( app-emulation/qemu[xen] )
165 - ocaml? ( dev-ml/findlib
166 - >=dev-lang/ocaml-4 )"
167 -
168 -RDEPEND="${COMMON_DEPEND}
169 - sys-apps/iproute2[-minimal]
170 - net-misc/bridge-utils
171 - screen? (
172 - app-misc/screen
173 - app-admin/logrotate
174 - )"
175 -
176 -# hvmloader is used to bootstrap a fully virtualized kernel
177 -# Approved by QA team in bug #144032
178 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
179 - usr/share/qemu-xen/qemu/s390-ccw.img"
180 -
181 -RESTRICT="test"
182 -
183 -pkg_setup() {
184 - python_setup
185 - export "CONFIG_LOMOUNT=y"
186 -
187 - #bug 522642, disable compile tools/tests
188 - export "CONFIG_TESTS=n"
189 -
190 - if has_version dev-libs/libgcrypt:0; then
191 - export "CONFIG_GCRYPT=y"
192 - fi
193 -
194 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
195 - if use x86 && use amd64; then
196 - die "Confusion! Both x86 and amd64 are set in your use flags!"
197 - elif use x86; then
198 - export XEN_TARGET_ARCH="x86_32"
199 - elif use amd64 ; then
200 - export XEN_TARGET_ARCH="x86_64"
201 - elif use arm; then
202 - export XEN_TARGET_ARCH="arm32"
203 - elif use arm64; then
204 - export XEN_TARGET_ARCH="arm64"
205 - else
206 - die "Unsupported architecture!"
207 - fi
208 - fi
209 -}
210 -
211 -src_prepare() {
212 - # Upstream's patchset
213 - if [[ -n ${UPSTREAM_VER} ]]; then
214 - einfo "Try to apply Xen Upstream patch set"
215 - EPATCH_SUFFIX="patch" \
216 - EPATCH_FORCE="yes" \
217 - EPATCH_OPTS="-p1" \
218 - epatch "${WORKDIR}"/patches-upstream
219 - fi
220 -
221 - # Security patchset
222 - if [[ -n ${SECURITY_VER} ]]; then
223 - einfo "Try to apply Xen Security patch set"
224 - # apply main xen patches
225 - # Two parallel systems, both work side by side
226 - # Over time they may concdense into one. This will suffice for now
227 - EPATCH_SUFFIX="patch"
228 - EPATCH_FORCE="yes"
229 -
230 - source "${WORKDIR}"/patches-security/${PV}.conf
231 -
232 - for i in ${XEN_SECURITY_MAIN}; do
233 - epatch "${WORKDIR}"/patches-security/xen/$i
234 - done
235 -
236 - # apply qemu-xen/upstream patches
237 - pushd "${S}"/tools/qemu-xen/ > /dev/null
238 - for i in ${XEN_SECURITY_QEMUU}; do
239 - epatch "${WORKDIR}"/patches-security/qemuu/$i
240 - done
241 - popd > /dev/null
242 -
243 - # apply qemu-traditional patches
244 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
245 - for i in ${XEN_SECURITY_QEMUT}; do
246 - epatch "${WORKDIR}"/patches-security/qemut/$i
247 - done
248 - popd > /dev/null
249 - fi
250 -
251 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
252 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
253 - pushd tools/firmware/ > /dev/null
254 - ln -s seabios-dir-remote seabios-dir || die
255 - popd > /dev/null
256 -
257 - # Gentoo's patchset
258 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
259 - einfo "Try to apply Gentoo specific patch set"
260 - source "${FILESDIR}"/gentoo-patches.conf
261 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
262 - for i in ${!_gpv}; do
263 - EPATCH_SUFFIX="patch" \
264 - EPATCH_FORCE="yes" \
265 - epatch "${WORKDIR}"/patches-gentoo/$i
266 - done
267 - fi
268 -
269 - # Ovmf's patchset
270 - if use ovmf; then
271 - if [[ -n ${OVMF_VER} ]];then
272 - einfo "Try to apply Ovmf patch set"
273 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
274 - EPATCH_SUFFIX="patch" \
275 - EPATCH_FORCE="yes" \
276 - EPATCH_OPTS="-p1" \
277 - epatch "${WORKDIR}"/patches-ovmf
278 - popd > /dev/null
279 - fi
280 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
281 - fi
282 -
283 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
284 -
285 - # Fix texi2html build error with new texi2html, qemu.doc.html
286 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
287 -
288 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
289 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
290 - -i tools/firmware/Makefile || die
291 -
292 - # Drop .config, fixes to gcc-4.6
293 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
294 -
295 - # if the user *really* wants to use their own custom-cflags, let them
296 - if use custom-cflags; then
297 - einfo "User wants their own CFLAGS - removing defaults"
298 -
299 - # try and remove all the default cflags
300 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
301 - -exec sed \
302 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
303 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
304 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
305 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
306 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
307 - -i {} + || die "failed to re-set custom-cflags"
308 - else
309 - unset CFLAGS
310 - unset LDFLAGS
311 - unset ASFLAGS
312 - unset CPPFLAGS
313 - fi
314 -
315 - if ! use pygrub; then
316 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
317 - fi
318 -
319 - if ! use python; then
320 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
321 - fi
322 -
323 - if ! use hvm; then
324 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
325 - # Bug 351648
326 - elif ! use x86 && ! has x86 $(get_all_abis); then
327 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
328 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
329 - export CPATH="${WORKDIR}"/extra-headers
330 - fi
331 -
332 - if use qemu; then
333 - if use sdl; then
334 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
335 - tools/Makefile || die
336 - else
337 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
338 - tools/qemu-xen-traditional/xen-setup || die
339 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
340 - tools/Makefile || die
341 - fi
342 - else
343 - # Don't bother with qemu, only needed for fully virtualised guests
344 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
345 - fi
346 -
347 - # Reset bash completion dir; Bug 472438
348 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
349 - -i Config.mk || die
350 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
351 -
352 - # xencommons, Bug #492332, sed lighter weight than patching
353 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
354 - -i tools/hotplug/Linux/init.d/xencommons.in || die
355 -
356 - # respect multilib, usr/lib/libcacard.so.0.0.0
357 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
358 - -i tools/qemu-xen/configure || die
359 -
360 - #bug 518136, don't build 32bit exactuable for nomultilib profile
361 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
362 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
363 - fi
364 -
365 - # use /var instead of /var/lib, consistat with previous ebuild
366 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
367 - m4/paths.m4 configure tools/configure || die
368 - # use /run instead of /var/run
369 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
370 - m4/paths.m4 configure tools/configure || die
371 -
372 - # uncomment lines in xl.conf
373 - sed -e 's:^#autoballoon=:autoballoon=:' \
374 - -e 's:^#lockfile=:lockfile=:' \
375 - -e 's:^#vif.default.script=:vif.default.script=:' \
376 - -i tools/examples/xl.conf || die
377 -
378 - # Bug #575868 converted to a sed statement, typo of one char
379 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
380 -
381 - epatch_user
382 -}
383 -
384 -src_configure() {
385 - local myconf="--prefix=${PREFIX}/usr \
386 - --libdir=${PREFIX}/usr/$(get_libdir) \
387 - --libexecdir=${PREFIX}/usr/libexec \
388 - --disable-werror \
389 - --disable-xen \
390 - --enable-tools \
391 - --enable-docs \
392 - $(use_with system-qemu) \
393 - $(use_enable pam) \
394 - $(use_enable api xenapi) \
395 - $(use_enable ovmf) \
396 - $(use_enable ocaml ocamltools) \
397 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
398 - "
399 -
400 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
401 - use qemu || myconf+=" --with-system-qemu"
402 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
403 - econf ${myconf}
404 -}
405 -
406 -src_compile() {
407 - export VARTEXFONTS="${T}/fonts"
408 - local myopt
409 - use debug && myopt="${myopt} debug=y"
410 -
411 - if test-flag-CC -fno-strict-overflow; then
412 - append-flags -fno-strict-overflow
413 - fi
414 -
415 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
416 -
417 - use doc && emake -C docs txt html
418 - emake -C docs man-pages
419 -}
420 -
421 -src_install() {
422 - # Override auto-detection in the build system, bug #382573
423 - export INITD_DIR=/tmp/init.d
424 - export CONFIG_LEAF_DIR=../tmp/default
425 -
426 - # Let the build system compile installed Python modules.
427 - local PYTHONDONTWRITEBYTECODE
428 - export PYTHONDONTWRITEBYTECODE
429 -
430 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
431 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
432 -
433 - # Fix the remaining Python shebangs.
434 - python_fix_shebang "${D}"
435 -
436 - # Remove RedHat-specific stuff
437 - rm -rf "${D}"tmp || die
438 -
439 - if use doc; then
440 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
441 -
442 - dohtml -r docs/
443 - docinto pdf
444 - dodoc ${DOCS[@]}
445 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
446 - fi
447 -
448 - rm -rf "${D}"/usr/share/doc/xen/
449 - doman docs/man?/*
450 -
451 - newconfd "${FILESDIR}"/xendomains.confd xendomains
452 - newconfd "${FILESDIR}"/xenstored.confd xenstored
453 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
454 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
455 - newinitd "${FILESDIR}"/xenstored.initd xenstored
456 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
457 - newinitd "${FILESDIR}"/xencommons.initd xencommons
458 - newconfd "${FILESDIR}"/xencommons.confd xencommons
459 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
460 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
461 -
462 - if use screen; then
463 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
464 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
465 - keepdir /var/log/xen-consoles
466 - fi
467 -
468 - # For -static-libs wrt Bug 384355
469 - if ! use static-libs; then
470 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
471 - fi
472 -
473 - # for xendomains
474 - keepdir /etc/xen/auto
475 -
476 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
477 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
478 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
479 -}
480 -
481 -pkg_postinst() {
482 - elog "Official Xen Guide and the offical wiki page:"
483 - elog "https://wiki.gentoo.org/wiki/Xen"
484 - elog "http://wiki.xen.org/wiki/Main_Page"
485 - elog ""
486 - elog "Recommended to utilise the xencommons script to config sytem At boot"
487 - elog "Add by use of rc-update on completion of the install"
488 -
489 - if ! use hvm; then
490 - echo
491 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
492 - elog "support enable the hvm use flag."
493 - elog "An x86 or amd64 system is required to build HVM support."
494 - fi
495 -
496 - if use qemu; then
497 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
498 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
499 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
500 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
501 - fi
502 -}
503
504 diff --git a/app-emulation/xen-tools/xen-tools-4.8.0.ebuild b/app-emulation/xen-tools/xen-tools-4.8.0.ebuild
505 deleted file mode 100644
506 index 6a2c8dc..00000000
507 --- a/app-emulation/xen-tools/xen-tools-4.8.0.ebuild
508 +++ /dev/null
509 @@ -1,456 +0,0 @@
510 -# Copyright 1999-2016 Gentoo Foundation
511 -# Distributed under the terms of the GNU General Public License v2
512 -# $Id$
513 -
514 -EAPI=5
515 -
516 -PYTHON_COMPAT=( python2_7 )
517 -PYTHON_REQ_USE='ncurses,xml,threads'
518 -
519 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
520 -
521 -MY_PV=${PV/_/-}
522 -MAJOR_V="$(get_version_component_range 1-2)"
523 -
524 -if [[ $PV == *9999 ]]; then
525 - inherit git-r3
526 - KEYWORDS=""
527 - REPO="xen.git"
528 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
529 - S="${WORKDIR}/${REPO}"
530 -else
531 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
532 - UPSTREAM_VER=
533 - SECURITY_VER=
534 - # xen-tools's gentoo patches tarball
535 - GENTOO_VER=8
536 - # xen-tools's gentoo patches version which apply to this specific ebuild
537 - GENTOO_GPV=0
538 - # xen-tools ovmf's patches
539 - OVMF_VER=2
540 -
541 - SEABIOS_VER=1.10.0
542 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
543 - OVMF_PV=20151110
544 -
545 - [[ -n ${UPSTREAM_VER} ]] && \
546 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
547 - [[ -n ${SECURITY_VER} ]] && \
548 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
549 - [[ -n ${GENTOO_VER} ]] && \
550 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
551 - [[ -n ${OVMF_VER} ]] && \
552 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
553 -
554 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
555 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
556 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
557 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
558 - ${OVMF_PATCHSET_URI} )
559 - ${UPSTREAM_PATCHSET_URI}
560 - ${SECURITY_PATCHSET_URI}
561 - ${GENTOO_PATCHSET_URI}"
562 -
563 - S="${WORKDIR}/xen-${MY_PV}"
564 -fi
565 -
566 -DESCRIPTION="Xen tools including QEMU and xl"
567 -HOMEPAGE="http://xen.org/"
568 -DOCS=( README docs/README.xen-bugtool )
569 -
570 -LICENSE="GPL-2"
571 -SLOT="0/${MAJOR_V}"
572 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
573 -# >=dev-lang/ocaml-4 stable
574 -# Masked in profiles/eapi-5-files instead
575 -IUSE="api custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
576 -
577 -REQUIRED_USE="
578 - ${PYTHON_REQUIRED_USE}
579 - pygrub? ( python )
580 - ovmf? ( hvm )
581 - ^^ ( qemu system-qemu )"
582 -
583 -COMMON_DEPEND="
584 - dev-libs/lzo:2
585 - dev-libs/glib:2
586 - dev-libs/yajl
587 - dev-libs/libaio
588 - dev-libs/libgcrypt:0
589 - sys-libs/zlib
590 -"
591 -
592 -DEPEND="${COMMON_DEPEND}
593 - dev-python/lxml[${PYTHON_USEDEP}]
594 - x86? ( sys-devel/dev86
595 - sys-power/iasl )
596 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
597 - ${PYTHON_DEPS}
598 - api? ( dev-libs/libxml2
599 - net-misc/curl )
600 - ovmf? (
601 - !arm? ( dev-lang/nasm )
602 - $(python_gen_impl_dep sqlite)
603 - )
604 - !amd64? ( >=sys-apps/dtc-1.4.0 )
605 - amd64? ( sys-devel/bin86
606 - system-seabios? ( sys-firmware/seabios )
607 - sys-firmware/ipxe
608 - sys-devel/dev86
609 - sys-power/iasl )
610 - dev-lang/perl
611 - app-misc/pax-utils
612 - doc? (
613 - app-doc/doxygen
614 - dev-python/markdown[${PYTHON_USEDEP}]
615 - dev-tex/latex2html[png,gif]
616 - media-gfx/graphviz
617 - dev-tex/xcolor
618 - media-gfx/transfig
619 - dev-texlive/texlive-latexextra
620 - virtual/latex-base
621 - dev-tex/latexmk
622 - dev-texlive/texlive-latex
623 - dev-texlive/texlive-pictures
624 - dev-texlive/texlive-latexrecommended
625 - )
626 - hvm? ( x11-proto/xproto
627 - !net-libs/libiscsi )
628 - qemu? (
629 - x11-libs/pixman
630 - sdl? ( media-libs/libsdl[X] )
631 - )
632 - system-qemu? ( app-emulation/qemu[xen] )
633 - ocaml? ( dev-ml/findlib
634 - >=dev-lang/ocaml-4 )"
635 -
636 -RDEPEND="${COMMON_DEPEND}
637 - sys-apps/iproute2[-minimal]
638 - net-misc/bridge-utils
639 - screen? (
640 - app-misc/screen
641 - app-admin/logrotate
642 - )"
643 -
644 -# hvmloader is used to bootstrap a fully virtualized kernel
645 -# Approved by QA team in bug #144032
646 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
647 - usr/share/qemu-xen/qemu/s390-ccw.img"
648 -
649 -RESTRICT="test"
650 -
651 -pkg_setup() {
652 - python_setup
653 - export "CONFIG_LOMOUNT=y"
654 -
655 - #bug 522642, disable compile tools/tests
656 - export "CONFIG_TESTS=n"
657 -
658 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
659 - if use x86 && use amd64; then
660 - die "Confusion! Both x86 and amd64 are set in your use flags!"
661 - elif use x86; then
662 - export XEN_TARGET_ARCH="x86_32"
663 - elif use amd64 ; then
664 - export XEN_TARGET_ARCH="x86_64"
665 - elif use arm; then
666 - export XEN_TARGET_ARCH="arm32"
667 - elif use arm64; then
668 - export XEN_TARGET_ARCH="arm64"
669 - else
670 - die "Unsupported architecture!"
671 - fi
672 - fi
673 -}
674 -
675 -src_prepare() {
676 - # Upstream's patchset
677 - if [[ -n ${UPSTREAM_VER} ]]; then
678 - einfo "Try to apply Xen Upstream patch set"
679 - EPATCH_SUFFIX="patch" \
680 - EPATCH_FORCE="yes" \
681 - EPATCH_OPTS="-p1" \
682 - epatch "${WORKDIR}"/patches-upstream
683 - fi
684 -
685 - # Security patchset
686 - if [[ -n ${SECURITY_VER} ]]; then
687 - einfo "Try to apply Xen Security patch set"
688 - # apply main xen patches
689 - # Two parallel systems, both work side by side
690 - # Over time they may concdense into one. This will suffice for now
691 - EPATCH_SUFFIX="patch"
692 - EPATCH_FORCE="yes"
693 -
694 - source "${WORKDIR}"/patches-security/${PV}.conf
695 -
696 - for i in ${XEN_SECURITY_MAIN}; do
697 - epatch "${WORKDIR}"/patches-security/xen/$i
698 - done
699 -
700 - # apply qemu-xen/upstream patches
701 - pushd "${S}"/tools/qemu-xen/ > /dev/null
702 - for i in ${XEN_SECURITY_QEMUU}; do
703 - epatch "${WORKDIR}"/patches-security/qemuu/$i
704 - done
705 - popd > /dev/null
706 -
707 - # apply qemu-traditional patches
708 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
709 - for i in ${XEN_SECURITY_QEMUT}; do
710 - epatch "${WORKDIR}"/patches-security/qemut/$i
711 - done
712 - popd > /dev/null
713 - fi
714 -
715 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
716 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
717 - pushd tools/firmware/ > /dev/null
718 - ln -s seabios-dir-remote seabios-dir || die
719 - popd > /dev/null
720 -
721 - # Gentoo's patchset
722 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
723 - einfo "Try to apply Gentoo specific patch set"
724 - source "${FILESDIR}"/gentoo-patches.conf
725 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
726 - for i in ${!_gpv}; do
727 - EPATCH_SUFFIX="patch" \
728 - EPATCH_FORCE="yes" \
729 - epatch "${WORKDIR}"/patches-gentoo/$i
730 - done
731 - fi
732 -
733 - # Ovmf's patchset
734 - if use ovmf; then
735 - if [[ -n ${OVMF_VER} ]];then
736 - einfo "Try to apply Ovmf patch set"
737 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
738 - EPATCH_SUFFIX="patch" \
739 - EPATCH_FORCE="yes" \
740 - EPATCH_OPTS="-p1" \
741 - epatch "${WORKDIR}"/patches-ovmf
742 - popd > /dev/null
743 - fi
744 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
745 - fi
746 -
747 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
748 -
749 - # Fix texi2html build error with new texi2html, qemu.doc.html
750 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
751 -
752 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
753 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
754 - -i tools/firmware/Makefile || die
755 -
756 - # Drop .config, fixes to gcc-4.6
757 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
758 -
759 - # if the user *really* wants to use their own custom-cflags, let them
760 - if use custom-cflags; then
761 - einfo "User wants their own CFLAGS - removing defaults"
762 -
763 - # try and remove all the default cflags
764 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
765 - -exec sed \
766 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
767 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
768 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
769 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
770 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
771 - -i {} + || die "failed to re-set custom-cflags"
772 - else
773 - unset CFLAGS
774 - unset LDFLAGS
775 - unset ASFLAGS
776 - unset CPPFLAGS
777 - fi
778 -
779 - if ! use pygrub; then
780 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
781 - fi
782 -
783 - if ! use python; then
784 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
785 - fi
786 -
787 - if ! use hvm; then
788 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
789 - # Bug 351648
790 - elif ! use x86 && ! has x86 $(get_all_abis); then
791 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
792 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
793 - export CPATH="${WORKDIR}"/extra-headers
794 - fi
795 -
796 - if use qemu; then
797 - if use sdl; then
798 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
799 - tools/Makefile || die
800 - else
801 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
802 - tools/qemu-xen-traditional/xen-setup || die
803 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
804 - tools/Makefile || die
805 - fi
806 - else
807 - # Don't bother with qemu, only needed for fully virtualised guests
808 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
809 - fi
810 -
811 - # Reset bash completion dir; Bug 472438
812 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
813 - -i Config.mk || die
814 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
815 -
816 - # xencommons, Bug #492332, sed lighter weight than patching
817 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
818 - -i tools/hotplug/Linux/init.d/xencommons.in || die
819 -
820 - # respect multilib, usr/lib/libcacard.so.0.0.0
821 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
822 - -i tools/qemu-xen/configure || die
823 -
824 - #bug 518136, don't build 32bit exactuable for nomultilib profile
825 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
826 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
827 - fi
828 -
829 - # use /var instead of /var/lib, consistat with previous ebuild
830 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
831 - m4/paths.m4 configure tools/configure || die
832 - # use /run instead of /var/run
833 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
834 - m4/paths.m4 configure tools/configure || die
835 -
836 - # uncomment lines in xl.conf
837 - sed -e 's:^#autoballoon=:autoballoon=:' \
838 - -e 's:^#lockfile=:lockfile=:' \
839 - -e 's:^#vif.default.script=:vif.default.script=:' \
840 - -i tools/examples/xl.conf || die
841 -
842 - # Bug #575868 converted to a sed statement, typo of one char
843 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
844 -
845 - epatch_user
846 -}
847 -
848 -src_configure() {
849 - local myconf="--prefix=${PREFIX}/usr \
850 - --libdir=${PREFIX}/usr/$(get_libdir) \
851 - --libexecdir=${PREFIX}/usr/libexec \
852 - --disable-werror \
853 - --disable-xen \
854 - --enable-tools \
855 - --enable-docs \
856 - $(use_enable pam) \
857 - $(use_enable api xenapi) \
858 - $(use_enable ovmf) \
859 - $(use_enable ocaml ocamltools) \
860 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
861 - "
862 -
863 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
864 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
865 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
866 - econf ${myconf}
867 -}
868 -
869 -src_compile() {
870 - export VARTEXFONTS="${T}/fonts"
871 - local myopt
872 - use debug && myopt="${myopt} debug=y"
873 -
874 - if test-flag-CC -fno-strict-overflow; then
875 - append-flags -fno-strict-overflow
876 - fi
877 -
878 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
879 -
880 - use doc && emake -C docs txt html
881 - emake -C docs man-pages
882 -}
883 -
884 -src_install() {
885 - # Override auto-detection in the build system, bug #382573
886 - export INITD_DIR=/tmp/init.d
887 - export CONFIG_LEAF_DIR=../tmp/default
888 -
889 - # Let the build system compile installed Python modules.
890 - local PYTHONDONTWRITEBYTECODE
891 - export PYTHONDONTWRITEBYTECODE
892 -
893 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
894 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
895 -
896 - # Fix the remaining Python shebangs.
897 - python_fix_shebang "${D}"
898 -
899 - # Remove RedHat-specific stuff
900 - rm -rf "${D}"tmp || die
901 -
902 - if use doc; then
903 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
904 -
905 - dohtml -r docs/
906 - docinto pdf
907 - dodoc ${DOCS[@]}
908 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
909 - fi
910 -
911 - rm -rf "${D}"/usr/share/doc/xen/
912 - doman docs/man?/*
913 -
914 - newconfd "${FILESDIR}"/xendomains.confd xendomains
915 - newconfd "${FILESDIR}"/xenstored.confd xenstored
916 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
917 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
918 - newinitd "${FILESDIR}"/xenstored.initd xenstored
919 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
920 - newinitd "${FILESDIR}"/xencommons.initd xencommons
921 - newconfd "${FILESDIR}"/xencommons.confd xencommons
922 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
923 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
924 -
925 - if use screen; then
926 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
927 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
928 - keepdir /var/log/xen-consoles
929 - fi
930 -
931 - # For -static-libs wrt Bug 384355
932 - if ! use static-libs; then
933 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
934 - fi
935 -
936 - # for xendomains
937 - keepdir /etc/xen/auto
938 -
939 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
940 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
941 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
942 -}
943 -
944 -pkg_postinst() {
945 - elog "Official Xen Guide and the offical wiki page:"
946 - elog "https://wiki.gentoo.org/wiki/Xen"
947 - elog "http://wiki.xen.org/wiki/Main_Page"
948 - elog ""
949 - elog "Recommended to utilise the xencommons script to config sytem At boot"
950 - elog "Add by use of rc-update on completion of the install"
951 -
952 - if ! use hvm; then
953 - echo
954 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
955 - elog "support enable the hvm use flag."
956 - elog "An x86 or amd64 system is required to build HVM support."
957 - fi
958 -
959 - if use qemu; then
960 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
961 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
962 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
963 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
964 - fi
965 -}