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: Thu, 16 Feb 2017 18:35:15
Message-Id: 1487270109.bcb13dc45e099840f43d7d5fbe7d21af60540088.dlan@gentoo
1 commit: bcb13dc45e099840f43d7d5fbe7d21af60540088
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 16 18:34:35 2017 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 16 18:35:09 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcb13dc4
7
8 app-emulation/xen-tools: security cleanup
9
10 Gentoo-Bug: 609160
11
12 Package-Manager: Portage-2.3.3, Repoman-2.3.1
13
14 app-emulation/xen-tools/Manifest | 2 -
15 app-emulation/xen-tools/xen-tools-4.7.1-r4.ebuild | 460 ----------------------
16 app-emulation/xen-tools/xen-tools-4.7.1-r5.ebuild | 460 ----------------------
17 app-emulation/xen-tools/xen-tools-4.8.0-r1.ebuild | 456 ---------------------
18 4 files changed, 1378 deletions(-)
19
20 diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
21 index 4fe2216e04..6a15a234a9 100644
22 --- a/app-emulation/xen-tools/Manifest
23 +++ b/app-emulation/xen-tools/Manifest
24 @@ -4,8 +4,6 @@ DIST seabios-1.8.2.tar.gz 538497 SHA256 f59479307fdae840de398b75aacb2333c8eba24a
25 DIST xen-4.7.1-upstream-patches-0.tar.xz 16420 SHA256 cb4724fedadc408ec390f99e9928a44ec75e793fb55cb97793f09980855b6a32 SHA512 79e117c48c6cc3d5783c818218ac11ec494735ce89755b5e263a64c23fb1f0a425bc65b567a24ce2e348b6e3839b26133c7e2c36411e5cc7acb54b855149dfbe WHIRLPOOL 982165da62cbb28cd72d32662c366ca7dac91a511b356eb58bced4b4af5cbc0d94c7e280a2400e5d9c92938d2afee86abd7c688926c2b9cb191d4554be828844
26 DIST xen-4.7.1.tar.gz 20706864 SHA256 e87f4b0575e78657ee23d31470a15ecf1ce8c3a92a771cda46bbcd4d0d671ffe SHA512 eb03244f5fa7b54402fcc1d38f1e69c0ea4536d5ab2f9859b41b5e94920ad9db20fb146e3c3d3635e9ca1d12e93ce0429e57f24bf53d4a2c4b69babc76ec724e WHIRLPOOL 5d7ba29ea58bdedb6a237f7cb1c0aacf361dc35ebb07ec8e55773e07b1f38c1b151615b526e14daeca7c2db235114bde0b6d124219e8818c6e529873b5151fec
27 DIST xen-4.8.0.tar.gz 22499917 SHA256 1e15c713ab7ba3bfda8b4a285ed973529364fd1100e6dd5a61f29583dc667b04 SHA512 70b95553f9813573b12e52999a4df8701dec430f23c36a8dc70d25a46bb4bc9234e5b7feb74a04062af4c8d6b6bcfe947d90b2b172416206812e54bac9797454 WHIRLPOOL 1296c25a05e3ab81730a2587ea1c07c7c022f05cfefc580224185c8d5fc9853531031c1292f69eff944ae2752492c4b95f13e160be3c449a7626aeadf1a21102
28 -DIST xen-gentoo-patches-7.tar.xz 24148 SHA256 859fb6b69125c0a1079b35a74bb004dce1b04827b05f056a746cc42c1b187557 SHA512 faf2b0ecd67d545366e2af7e7ecab5f808d02354d07f23cbffe1c3cb80dbb5f88cc4aa140d928ad269612e55c41740ff5bf2af3f0a1f16e375d404c3ffa712b1 WHIRLPOOL d75c35fa10dd1f1567a82c5d5cd7ddabc72def6d74ef7095b7bca9ce9adad2b6ff9c88b55bad7cdefe88da027e5c742f9b9dcafce457cf15f408ea35652546f6
29 DIST xen-gentoo-patches-9.tar.xz 27456 SHA256 67c410d12ef4628a8c0a931e5868b425f2eb4b2f0e307304a75384cbe509734b SHA512 9a797be9dd2392c34b3f6561c2274e116b4f5b114f4520dbbd0b51818c774479ceabb45aa916f93c1a2bc49787f4ca6e6c83bc743baa6bdeef91d77276b20f36 WHIRLPOOL c41cde532726bb55acd05d558b35d575b229d2ee64eba7438f7b196df313f0e44154148c1e47bf6e8c810667b3b237bcfa410371b4bb6f097b981f6b2637ead3
30 DIST xen-ovmf-patches-2.tar.xz 4344 SHA256 495d61d718440057f8b0b54fb57061450dd764c6e87fe5f8bda1785bcddba770 SHA512 0bdc83029a01b613f5c1ca029bd45aebe211c332f09db91a0cc7d6b6f85a81dbbfdc20c62f0d20e973ee41b155a6551a4fad518cb792e1d508bf070e23d6a1d3 WHIRLPOOL 8346d68fa5d2a8e8a5c007b55e2b85cf48df045cc8c4818f09c756d28a52dd856671f37b4a53478e9b96ca9d2eca0c67fd15f009a94d1d2dfed8e83e596d9633
31 -DIST xen-security-patches-19.tar.xz 3336 SHA256 497a01fbd20fa45df19b41d337be0a87f4808101ac33cc9649461726abf43720 SHA512 d8a4a8ceeab9e2efedf880e7a2007b312a7f528cdb8fb1f748096621bbdc447ff8ee09b8fbe1aae657ccd7b2557e436cf60f6e70dcaef65e8959204e91f3ec57 WHIRLPOOL 26473bc9d7c2648f78f1fbf722e1ebcf42983d9d0e04d40f66eaad73c5a7ec232a397392dd5f66adb1258c571238a8faf0497ceb468674b93f7f86b91539f9b9
32 DIST xen-security-patches-21.tar.xz 6888 SHA256 76e43fb4c41a606cb1a5e56045dedff0ed3c94b535d89a736664965ee4a44699 SHA512 eb889d90630b6a7c4b9785bf8c2db1d83c7878cec3aa125601b38f75f70a965e52aa5003024feec40d35ee940975dfd766eeb806cdcff717991876d50ce0839b WHIRLPOOL 9039cc7410fbb0e36e1ab74d597c7b1075f92e43b9d22bcb198c0594a0802fca50f86a9fa4343cea83a68eacd6acb6fa0ef73fbd20c19a27f5e92c3f32711af8
33
34 diff --git a/app-emulation/xen-tools/xen-tools-4.7.1-r4.ebuild b/app-emulation/xen-tools/xen-tools-4.7.1-r4.ebuild
35 deleted file mode 100644
36 index 234e197802..0000000000
37 --- a/app-emulation/xen-tools/xen-tools-4.7.1-r4.ebuild
38 +++ /dev/null
39 @@ -1,460 +0,0 @@
40 -# Copyright 1999-2016 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -# $Id$
43 -
44 -EAPI=5
45 -
46 -PYTHON_COMPAT=( python2_7 )
47 -PYTHON_REQ_USE='ncurses,xml,threads'
48 -
49 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
50 -
51 -MY_PV=${PV/_/-}
52 -MAJOR_V="$(get_version_component_range 1-2)"
53 -
54 -if [[ $PV == *9999 ]]; then
55 - inherit git-r3
56 - KEYWORDS=""
57 - REPO="xen.git"
58 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
59 - S="${WORKDIR}/${REPO}"
60 -else
61 - KEYWORDS="amd64 ~arm ~arm64 x86"
62 - UPSTREAM_VER=0
63 - SECURITY_VER=19
64 - # xen-tools's gentoo patches tarball
65 - GENTOO_VER=7
66 - # xen-tools's gentoo patches version which apply to this specific ebuild
67 - GENTOO_GPV=1
68 - # xen-tools ovmf's patches
69 - OVMF_VER=2
70 -
71 - SEABIOS_VER=1.8.2
72 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
73 - OVMF_PV=20151110
74 -
75 - [[ -n ${UPSTREAM_VER} ]] && \
76 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
77 - [[ -n ${SECURITY_VER} ]] && \
78 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${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 - [[ -n ${OVMF_VER} ]] && \
82 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
83 -
84 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
85 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
86 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
87 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
88 - ${OVMF_PATCHSET_URI} )
89 - ${UPSTREAM_PATCHSET_URI}
90 - ${SECURITY_PATCHSET_URI}
91 - ${GENTOO_PATCHSET_URI}"
92 -
93 - S="${WORKDIR}/xen-${MY_PV}"
94 -fi
95 -
96 -DESCRIPTION="Xen tools including QEMU and xl"
97 -HOMEPAGE="http://xen.org/"
98 -DOCS=( README docs/README.xen-bugtool )
99 -
100 -LICENSE="GPL-2"
101 -SLOT="0/${MAJOR_V}"
102 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
103 -# >=dev-lang/ocaml-4 stable
104 -# Masked in profiles/eapi-5-files instead
105 -IUSE="api custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
106 -
107 -REQUIRED_USE="
108 - ${PYTHON_REQUIRED_USE}
109 - pygrub? ( python )
110 - ovmf? ( hvm )
111 - ^^ ( qemu system-qemu )"
112 -
113 -COMMON_DEPEND="
114 - dev-libs/lzo:2
115 - dev-libs/glib:2
116 - dev-libs/yajl
117 - dev-libs/libaio
118 - dev-libs/libgcrypt:0
119 - sys-libs/zlib
120 -"
121 -
122 -DEPEND="${COMMON_DEPEND}
123 - dev-python/lxml[${PYTHON_USEDEP}]
124 - x86? ( sys-devel/dev86
125 - sys-power/iasl )
126 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
127 - ${PYTHON_DEPS}
128 - api? ( dev-libs/libxml2
129 - net-misc/curl )
130 - ovmf? (
131 - !arm? ( dev-lang/nasm )
132 - $(python_gen_impl_dep sqlite)
133 - )
134 - !amd64? ( >=sys-apps/dtc-1.4.0 )
135 - amd64? ( sys-devel/bin86
136 - system-seabios? ( sys-firmware/seabios )
137 - sys-firmware/ipxe
138 - sys-devel/dev86
139 - sys-power/iasl )
140 - dev-lang/perl
141 - app-misc/pax-utils
142 - doc? (
143 - app-doc/doxygen
144 - dev-python/markdown[${PYTHON_USEDEP}]
145 - dev-tex/latex2html[png,gif]
146 - media-gfx/graphviz
147 - dev-tex/xcolor
148 - media-gfx/transfig
149 - dev-texlive/texlive-latexextra
150 - virtual/latex-base
151 - dev-tex/latexmk
152 - dev-texlive/texlive-latex
153 - dev-texlive/texlive-pictures
154 - dev-texlive/texlive-latexrecommended
155 - )
156 - hvm? ( x11-proto/xproto
157 - !net-libs/libiscsi )
158 - qemu? (
159 - x11-libs/pixman
160 - sdl? ( media-libs/libsdl[X] )
161 - )
162 - system-qemu? ( app-emulation/qemu[xen] )
163 - ocaml? ( dev-ml/findlib
164 - >=dev-lang/ocaml-4 )"
165 -
166 -RDEPEND="${COMMON_DEPEND}
167 - sys-apps/iproute2[-minimal]
168 - net-misc/bridge-utils
169 - screen? (
170 - app-misc/screen
171 - app-admin/logrotate
172 - )"
173 -
174 -# hvmloader is used to bootstrap a fully virtualized kernel
175 -# Approved by QA team in bug #144032
176 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
177 - usr/share/qemu-xen/qemu/s390-ccw.img"
178 -
179 -RESTRICT="test"
180 -
181 -pkg_setup() {
182 - python_setup
183 - export "CONFIG_LOMOUNT=y"
184 -
185 - #bug 522642, disable compile tools/tests
186 - export "CONFIG_TESTS=n"
187 -
188 - if has_version dev-libs/libgcrypt:0; then
189 - export "CONFIG_GCRYPT=y"
190 - fi
191 -
192 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
193 - if use x86 && use amd64; then
194 - die "Confusion! Both x86 and amd64 are set in your use flags!"
195 - elif use x86; then
196 - export XEN_TARGET_ARCH="x86_32"
197 - elif use amd64 ; then
198 - export XEN_TARGET_ARCH="x86_64"
199 - elif use arm; then
200 - export XEN_TARGET_ARCH="arm32"
201 - elif use arm64; then
202 - export XEN_TARGET_ARCH="arm64"
203 - else
204 - die "Unsupported architecture!"
205 - fi
206 - fi
207 -}
208 -
209 -src_prepare() {
210 - # Upstream's patchset
211 - if [[ -n ${UPSTREAM_VER} ]]; then
212 - einfo "Try to apply Xen Upstream patch set"
213 - EPATCH_SUFFIX="patch" \
214 - EPATCH_FORCE="yes" \
215 - EPATCH_OPTS="-p1" \
216 - epatch "${WORKDIR}"/patches-upstream
217 - fi
218 -
219 - # Security patchset
220 - if [[ -n ${SECURITY_VER} ]]; then
221 - einfo "Try to apply Xen Security patch set"
222 - # apply main xen patches
223 - # Two parallel systems, both work side by side
224 - # Over time they may concdense into one. This will suffice for now
225 - EPATCH_SUFFIX="patch"
226 - EPATCH_FORCE="yes"
227 -
228 - source "${WORKDIR}"/patches-security/${PV}.conf
229 -
230 - for i in ${XEN_SECURITY_MAIN}; do
231 - epatch "${WORKDIR}"/patches-security/xen/$i
232 - done
233 -
234 - # apply qemu-xen/upstream patches
235 - pushd "${S}"/tools/qemu-xen/ > /dev/null
236 - for i in ${XEN_SECURITY_QEMUU}; do
237 - epatch "${WORKDIR}"/patches-security/qemuu/$i
238 - done
239 - popd > /dev/null
240 -
241 - # apply qemu-traditional patches
242 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
243 - for i in ${XEN_SECURITY_QEMUT}; do
244 - epatch "${WORKDIR}"/patches-security/qemut/$i
245 - done
246 - popd > /dev/null
247 - fi
248 -
249 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
250 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
251 - pushd tools/firmware/ > /dev/null
252 - ln -s seabios-dir-remote seabios-dir || die
253 - popd > /dev/null
254 -
255 - # Gentoo's patchset
256 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
257 - einfo "Try to apply Gentoo specific patch set"
258 - source "${FILESDIR}"/gentoo-patches.conf
259 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
260 - for i in ${!_gpv}; do
261 - EPATCH_SUFFIX="patch" \
262 - EPATCH_FORCE="yes" \
263 - epatch "${WORKDIR}"/patches-gentoo/$i
264 - done
265 - fi
266 -
267 - # Ovmf's patchset
268 - if use ovmf; then
269 - if [[ -n ${OVMF_VER} ]];then
270 - einfo "Try to apply Ovmf patch set"
271 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
272 - EPATCH_SUFFIX="patch" \
273 - EPATCH_FORCE="yes" \
274 - EPATCH_OPTS="-p1" \
275 - epatch "${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 - # respect multilib, usr/lib/libcacard.so.0.0.0
355 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
356 - -i tools/qemu-xen/configure || die
357 -
358 - #bug 518136, don't build 32bit exactuable for nomultilib profile
359 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
360 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
361 - fi
362 -
363 - # use /var instead of /var/lib, consistat with previous ebuild
364 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
365 - m4/paths.m4 configure tools/configure || die
366 - # use /run instead of /var/run
367 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
368 - m4/paths.m4 configure tools/configure || die
369 -
370 - # uncomment lines in xl.conf
371 - sed -e 's:^#autoballoon=:autoballoon=:' \
372 - -e 's:^#lockfile=:lockfile=:' \
373 - -e 's:^#vif.default.script=:vif.default.script=:' \
374 - -i tools/examples/xl.conf || die
375 -
376 - # Bug #575868 converted to a sed statement, typo of one char
377 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
378 -
379 - epatch_user
380 -}
381 -
382 -src_configure() {
383 - local myconf="--prefix=${PREFIX}/usr \
384 - --libdir=${PREFIX}/usr/$(get_libdir) \
385 - --libexecdir=${PREFIX}/usr/libexec \
386 - --disable-werror \
387 - --disable-xen \
388 - --enable-tools \
389 - --enable-docs \
390 - $(use_enable pam) \
391 - $(use_enable api xenapi) \
392 - $(use_enable ovmf) \
393 - $(use_enable ocaml ocamltools) \
394 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
395 - "
396 -
397 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
398 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
399 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
400 - econf ${myconf}
401 -}
402 -
403 -src_compile() {
404 - export VARTEXFONTS="${T}/fonts"
405 - local myopt
406 - use debug && myopt="${myopt} debug=y"
407 -
408 - if test-flag-CC -fno-strict-overflow; then
409 - append-flags -fno-strict-overflow
410 - fi
411 -
412 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
413 -
414 - use doc && emake -C docs txt html
415 - emake -C docs man-pages
416 -}
417 -
418 -src_install() {
419 - # Override auto-detection in the build system, bug #382573
420 - export INITD_DIR=/tmp/init.d
421 - export CONFIG_LEAF_DIR=../tmp/default
422 -
423 - # Let the build system compile installed Python modules.
424 - local PYTHONDONTWRITEBYTECODE
425 - export PYTHONDONTWRITEBYTECODE
426 -
427 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
428 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
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 - if use doc; then
437 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
438 -
439 - dohtml -r docs/
440 - docinto pdf
441 - dodoc ${DOCS[@]}
442 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
443 - fi
444 -
445 - rm -rf "${D}"/usr/share/doc/xen/
446 - doman docs/man?/*
447 -
448 - newconfd "${FILESDIR}"/xendomains.confd xendomains
449 - newconfd "${FILESDIR}"/xenstored.confd xenstored
450 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
451 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
452 - newinitd "${FILESDIR}"/xenstored.initd xenstored
453 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
454 - newinitd "${FILESDIR}"/xencommons.initd xencommons
455 - newconfd "${FILESDIR}"/xencommons.confd xencommons
456 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
457 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
458 -
459 - if use screen; then
460 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
461 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
462 - keepdir /var/log/xen-consoles
463 - fi
464 -
465 - # For -static-libs wrt Bug 384355
466 - if ! use static-libs; then
467 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
468 - fi
469 -
470 - # for xendomains
471 - keepdir /etc/xen/auto
472 -
473 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
474 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
475 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
476 -}
477 -
478 -pkg_postinst() {
479 - elog "Official Xen Guide and the offical wiki page:"
480 - elog "https://wiki.gentoo.org/wiki/Xen"
481 - elog "http://wiki.xen.org/wiki/Main_Page"
482 - elog ""
483 - elog "Recommended to utilise the xencommons script to config sytem At boot"
484 - elog "Add by use of rc-update on completion of the install"
485 -
486 - if ! use hvm; then
487 - echo
488 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
489 - elog "support enable the hvm use flag."
490 - elog "An x86 or amd64 system is required to build HVM support."
491 - fi
492 -
493 - if use qemu; then
494 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
495 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
496 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
497 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
498 - fi
499 -}
500
501 diff --git a/app-emulation/xen-tools/xen-tools-4.7.1-r5.ebuild b/app-emulation/xen-tools/xen-tools-4.7.1-r5.ebuild
502 deleted file mode 100644
503 index 38d0816621..0000000000
504 --- a/app-emulation/xen-tools/xen-tools-4.7.1-r5.ebuild
505 +++ /dev/null
506 @@ -1,460 +0,0 @@
507 -# Copyright 1999-2016 Gentoo Foundation
508 -# Distributed under the terms of the GNU General Public License v2
509 -# $Id$
510 -
511 -EAPI=5
512 -
513 -PYTHON_COMPAT=( python2_7 )
514 -PYTHON_REQ_USE='ncurses,xml,threads'
515 -
516 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
517 -
518 -MY_PV=${PV/_/-}
519 -MAJOR_V="$(get_version_component_range 1-2)"
520 -
521 -if [[ $PV == *9999 ]]; then
522 - inherit git-r3
523 - KEYWORDS=""
524 - REPO="xen.git"
525 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
526 - S="${WORKDIR}/${REPO}"
527 -else
528 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
529 - UPSTREAM_VER=0
530 - SECURITY_VER=19
531 - # xen-tools's gentoo patches tarball
532 - GENTOO_VER=9
533 - # xen-tools's gentoo patches version which apply to this specific ebuild
534 - GENTOO_GPV=2
535 - # xen-tools ovmf's patches
536 - OVMF_VER=2
537 -
538 - SEABIOS_VER=1.8.2
539 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
540 - OVMF_PV=20151110
541 -
542 - [[ -n ${UPSTREAM_VER} ]] && \
543 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
544 - [[ -n ${SECURITY_VER} ]] && \
545 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
546 - [[ -n ${GENTOO_VER} ]] && \
547 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
548 - [[ -n ${OVMF_VER} ]] && \
549 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
550 -
551 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
552 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
553 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
554 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
555 - ${OVMF_PATCHSET_URI} )
556 - ${UPSTREAM_PATCHSET_URI}
557 - ${SECURITY_PATCHSET_URI}
558 - ${GENTOO_PATCHSET_URI}"
559 -
560 - S="${WORKDIR}/xen-${MY_PV}"
561 -fi
562 -
563 -DESCRIPTION="Xen tools including QEMU and xl"
564 -HOMEPAGE="http://xen.org/"
565 -DOCS=( README docs/README.xen-bugtool )
566 -
567 -LICENSE="GPL-2"
568 -SLOT="0/${MAJOR_V}"
569 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
570 -# >=dev-lang/ocaml-4 stable
571 -# Masked in profiles/eapi-5-files instead
572 -IUSE="api custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
573 -
574 -REQUIRED_USE="
575 - ${PYTHON_REQUIRED_USE}
576 - pygrub? ( python )
577 - ovmf? ( hvm )
578 - ^^ ( qemu system-qemu )"
579 -
580 -COMMON_DEPEND="
581 - dev-libs/lzo:2
582 - dev-libs/glib:2
583 - dev-libs/yajl
584 - dev-libs/libaio
585 - dev-libs/libgcrypt:0
586 - sys-libs/zlib
587 -"
588 -
589 -DEPEND="${COMMON_DEPEND}
590 - dev-python/lxml[${PYTHON_USEDEP}]
591 - x86? ( sys-devel/dev86
592 - sys-power/iasl )
593 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
594 - ${PYTHON_DEPS}
595 - api? ( dev-libs/libxml2
596 - net-misc/curl )
597 - ovmf? (
598 - !arm? ( dev-lang/nasm )
599 - $(python_gen_impl_dep sqlite)
600 - )
601 - !amd64? ( >=sys-apps/dtc-1.4.0 )
602 - amd64? ( sys-devel/bin86
603 - system-seabios? ( sys-firmware/seabios )
604 - sys-firmware/ipxe
605 - sys-devel/dev86
606 - sys-power/iasl )
607 - dev-lang/perl
608 - app-misc/pax-utils
609 - doc? (
610 - app-doc/doxygen
611 - dev-python/markdown[${PYTHON_USEDEP}]
612 - dev-tex/latex2html[png,gif]
613 - media-gfx/graphviz
614 - dev-tex/xcolor
615 - media-gfx/transfig
616 - dev-texlive/texlive-latexextra
617 - virtual/latex-base
618 - dev-tex/latexmk
619 - dev-texlive/texlive-latex
620 - dev-texlive/texlive-pictures
621 - dev-texlive/texlive-latexrecommended
622 - )
623 - hvm? ( x11-proto/xproto
624 - !net-libs/libiscsi )
625 - qemu? (
626 - x11-libs/pixman
627 - sdl? ( media-libs/libsdl[X] )
628 - )
629 - system-qemu? ( app-emulation/qemu[xen] )
630 - ocaml? ( dev-ml/findlib
631 - >=dev-lang/ocaml-4 )"
632 -
633 -RDEPEND="${COMMON_DEPEND}
634 - sys-apps/iproute2[-minimal]
635 - net-misc/bridge-utils
636 - screen? (
637 - app-misc/screen
638 - app-admin/logrotate
639 - )"
640 -
641 -# hvmloader is used to bootstrap a fully virtualized kernel
642 -# Approved by QA team in bug #144032
643 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
644 - usr/share/qemu-xen/qemu/s390-ccw.img"
645 -
646 -RESTRICT="test"
647 -
648 -pkg_setup() {
649 - python_setup
650 - export "CONFIG_LOMOUNT=y"
651 -
652 - #bug 522642, disable compile tools/tests
653 - export "CONFIG_TESTS=n"
654 -
655 - if has_version dev-libs/libgcrypt:0; then
656 - export "CONFIG_GCRYPT=y"
657 - fi
658 -
659 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
660 - if use x86 && use amd64; then
661 - die "Confusion! Both x86 and amd64 are set in your use flags!"
662 - elif use x86; then
663 - export XEN_TARGET_ARCH="x86_32"
664 - elif use amd64 ; then
665 - export XEN_TARGET_ARCH="x86_64"
666 - elif use arm; then
667 - export XEN_TARGET_ARCH="arm32"
668 - elif use arm64; then
669 - export XEN_TARGET_ARCH="arm64"
670 - else
671 - die "Unsupported architecture!"
672 - fi
673 - fi
674 -}
675 -
676 -src_prepare() {
677 - # Upstream's patchset
678 - if [[ -n ${UPSTREAM_VER} ]]; then
679 - einfo "Try to apply Xen Upstream patch set"
680 - EPATCH_SUFFIX="patch" \
681 - EPATCH_FORCE="yes" \
682 - EPATCH_OPTS="-p1" \
683 - epatch "${WORKDIR}"/patches-upstream
684 - fi
685 -
686 - # Security patchset
687 - if [[ -n ${SECURITY_VER} ]]; then
688 - einfo "Try to apply Xen Security patch set"
689 - # apply main xen patches
690 - # Two parallel systems, both work side by side
691 - # Over time they may concdense into one. This will suffice for now
692 - EPATCH_SUFFIX="patch"
693 - EPATCH_FORCE="yes"
694 -
695 - source "${WORKDIR}"/patches-security/${PV}.conf
696 -
697 - for i in ${XEN_SECURITY_MAIN}; do
698 - epatch "${WORKDIR}"/patches-security/xen/$i
699 - done
700 -
701 - # apply qemu-xen/upstream patches
702 - pushd "${S}"/tools/qemu-xen/ > /dev/null
703 - for i in ${XEN_SECURITY_QEMUU}; do
704 - epatch "${WORKDIR}"/patches-security/qemuu/$i
705 - done
706 - popd > /dev/null
707 -
708 - # apply qemu-traditional patches
709 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
710 - for i in ${XEN_SECURITY_QEMUT}; do
711 - epatch "${WORKDIR}"/patches-security/qemut/$i
712 - done
713 - popd > /dev/null
714 - fi
715 -
716 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
717 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
718 - pushd tools/firmware/ > /dev/null
719 - ln -s seabios-dir-remote seabios-dir || die
720 - popd > /dev/null
721 -
722 - # Gentoo's patchset
723 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
724 - einfo "Try to apply Gentoo specific patch set"
725 - source "${FILESDIR}"/gentoo-patches.conf
726 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
727 - for i in ${!_gpv}; do
728 - EPATCH_SUFFIX="patch" \
729 - EPATCH_FORCE="yes" \
730 - epatch "${WORKDIR}"/patches-gentoo/$i
731 - done
732 - fi
733 -
734 - # Ovmf's patchset
735 - if use ovmf; then
736 - if [[ -n ${OVMF_VER} ]];then
737 - einfo "Try to apply Ovmf patch set"
738 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
739 - EPATCH_SUFFIX="patch" \
740 - EPATCH_FORCE="yes" \
741 - EPATCH_OPTS="-p1" \
742 - epatch "${WORKDIR}"/patches-ovmf
743 - popd > /dev/null
744 - fi
745 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
746 - fi
747 -
748 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
749 -
750 - # Fix texi2html build error with new texi2html, qemu.doc.html
751 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
752 -
753 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
754 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
755 - -i tools/firmware/Makefile || die
756 -
757 - # Drop .config, fixes to gcc-4.6
758 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
759 -
760 - # if the user *really* wants to use their own custom-cflags, let them
761 - if use custom-cflags; then
762 - einfo "User wants their own CFLAGS - removing defaults"
763 -
764 - # try and remove all the default cflags
765 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
766 - -exec sed \
767 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
768 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
769 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
770 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
771 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
772 - -i {} + || die "failed to re-set custom-cflags"
773 - else
774 - unset CFLAGS
775 - unset LDFLAGS
776 - unset ASFLAGS
777 - unset CPPFLAGS
778 - fi
779 -
780 - if ! use pygrub; then
781 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
782 - fi
783 -
784 - if ! use python; then
785 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
786 - fi
787 -
788 - if ! use hvm; then
789 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
790 - # Bug 351648
791 - elif ! use x86 && ! has x86 $(get_all_abis); then
792 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
793 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
794 - export CPATH="${WORKDIR}"/extra-headers
795 - fi
796 -
797 - if use qemu; then
798 - if use sdl; then
799 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
800 - tools/Makefile || die
801 - else
802 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
803 - tools/qemu-xen-traditional/xen-setup || die
804 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
805 - tools/Makefile || die
806 - fi
807 - else
808 - # Don't bother with qemu, only needed for fully virtualised guests
809 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
810 - fi
811 -
812 - # Reset bash completion dir; Bug 472438
813 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
814 - -i Config.mk || die
815 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
816 -
817 - # xencommons, Bug #492332, sed lighter weight than patching
818 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
819 - -i tools/hotplug/Linux/init.d/xencommons.in || die
820 -
821 - # respect multilib, usr/lib/libcacard.so.0.0.0
822 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
823 - -i tools/qemu-xen/configure || die
824 -
825 - #bug 518136, don't build 32bit exactuable for nomultilib profile
826 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
827 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
828 - fi
829 -
830 - # use /var instead of /var/lib, consistat with previous ebuild
831 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
832 - m4/paths.m4 configure tools/configure || die
833 - # use /run instead of /var/run
834 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
835 - m4/paths.m4 configure tools/configure || die
836 -
837 - # uncomment lines in xl.conf
838 - sed -e 's:^#autoballoon=:autoballoon=:' \
839 - -e 's:^#lockfile=:lockfile=:' \
840 - -e 's:^#vif.default.script=:vif.default.script=:' \
841 - -i tools/examples/xl.conf || die
842 -
843 - # Bug #575868 converted to a sed statement, typo of one char
844 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
845 -
846 - epatch_user
847 -}
848 -
849 -src_configure() {
850 - local myconf="--prefix=${PREFIX}/usr \
851 - --libdir=${PREFIX}/usr/$(get_libdir) \
852 - --libexecdir=${PREFIX}/usr/libexec \
853 - --disable-werror \
854 - --disable-xen \
855 - --enable-tools \
856 - --enable-docs \
857 - $(use_enable pam) \
858 - $(use_enable api xenapi) \
859 - $(use_enable ovmf) \
860 - $(use_enable ocaml ocamltools) \
861 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
862 - "
863 -
864 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
865 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
866 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
867 - econf ${myconf}
868 -}
869 -
870 -src_compile() {
871 - export VARTEXFONTS="${T}/fonts"
872 - local myopt
873 - use debug && myopt="${myopt} debug=y"
874 -
875 - if test-flag-CC -fno-strict-overflow; then
876 - append-flags -fno-strict-overflow
877 - fi
878 -
879 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
880 -
881 - use doc && emake -C docs txt html
882 - emake -C docs man-pages
883 -}
884 -
885 -src_install() {
886 - # Override auto-detection in the build system, bug #382573
887 - export INITD_DIR=/tmp/init.d
888 - export CONFIG_LEAF_DIR=../tmp/default
889 -
890 - # Let the build system compile installed Python modules.
891 - local PYTHONDONTWRITEBYTECODE
892 - export PYTHONDONTWRITEBYTECODE
893 -
894 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
895 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
896 -
897 - # Fix the remaining Python shebangs.
898 - python_fix_shebang "${D}"
899 -
900 - # Remove RedHat-specific stuff
901 - rm -rf "${D}"tmp || die
902 -
903 - if use doc; then
904 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
905 -
906 - dohtml -r docs/
907 - docinto pdf
908 - dodoc ${DOCS[@]}
909 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
910 - fi
911 -
912 - rm -rf "${D}"/usr/share/doc/xen/
913 - doman docs/man?/*
914 -
915 - newconfd "${FILESDIR}"/xendomains.confd xendomains
916 - newconfd "${FILESDIR}"/xenstored.confd xenstored
917 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
918 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
919 - newinitd "${FILESDIR}"/xenstored.initd xenstored
920 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
921 - newinitd "${FILESDIR}"/xencommons.initd xencommons
922 - newconfd "${FILESDIR}"/xencommons.confd xencommons
923 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
924 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
925 -
926 - if use screen; then
927 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
928 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
929 - keepdir /var/log/xen-consoles
930 - fi
931 -
932 - # For -static-libs wrt Bug 384355
933 - if ! use static-libs; then
934 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
935 - fi
936 -
937 - # for xendomains
938 - keepdir /etc/xen/auto
939 -
940 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
941 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
942 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
943 -}
944 -
945 -pkg_postinst() {
946 - elog "Official Xen Guide and the offical wiki page:"
947 - elog "https://wiki.gentoo.org/wiki/Xen"
948 - elog "http://wiki.xen.org/wiki/Main_Page"
949 - elog ""
950 - elog "Recommended to utilise the xencommons script to config sytem At boot"
951 - elog "Add by use of rc-update on completion of the install"
952 -
953 - if ! use hvm; then
954 - echo
955 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
956 - elog "support enable the hvm use flag."
957 - elog "An x86 or amd64 system is required to build HVM support."
958 - fi
959 -
960 - if use qemu; then
961 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
962 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
963 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
964 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
965 - fi
966 -}
967
968 diff --git a/app-emulation/xen-tools/xen-tools-4.8.0-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.8.0-r1.ebuild
969 deleted file mode 100644
970 index 13be2a8e4a..0000000000
971 --- a/app-emulation/xen-tools/xen-tools-4.8.0-r1.ebuild
972 +++ /dev/null
973 @@ -1,456 +0,0 @@
974 -# Copyright 1999-2016 Gentoo Foundation
975 -# Distributed under the terms of the GNU General Public License v2
976 -# $Id$
977 -
978 -EAPI=5
979 -
980 -PYTHON_COMPAT=( python2_7 )
981 -PYTHON_REQ_USE='ncurses,xml,threads'
982 -
983 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
984 -
985 -MY_PV=${PV/_/-}
986 -MAJOR_V="$(get_version_component_range 1-2)"
987 -
988 -if [[ $PV == *9999 ]]; then
989 - inherit git-r3
990 - KEYWORDS=""
991 - REPO="xen.git"
992 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
993 - S="${WORKDIR}/${REPO}"
994 -else
995 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
996 - UPSTREAM_VER=
997 - SECURITY_VER=
998 - # xen-tools's gentoo patches tarball
999 - GENTOO_VER=9
1000 - # xen-tools's gentoo patches version which apply to this specific ebuild
1001 - GENTOO_GPV=1
1002 - # xen-tools ovmf's patches
1003 - OVMF_VER=2
1004 -
1005 - SEABIOS_VER=1.10.0
1006 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
1007 - OVMF_PV=20151110
1008 -
1009 - [[ -n ${UPSTREAM_VER} ]] && \
1010 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
1011 - [[ -n ${SECURITY_VER} ]] && \
1012 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
1013 - [[ -n ${GENTOO_VER} ]] && \
1014 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
1015 - [[ -n ${OVMF_VER} ]] && \
1016 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
1017 -
1018 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
1019 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
1020 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
1021 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
1022 - ${OVMF_PATCHSET_URI} )
1023 - ${UPSTREAM_PATCHSET_URI}
1024 - ${SECURITY_PATCHSET_URI}
1025 - ${GENTOO_PATCHSET_URI}"
1026 -
1027 - S="${WORKDIR}/xen-${MY_PV}"
1028 -fi
1029 -
1030 -DESCRIPTION="Xen tools including QEMU and xl"
1031 -HOMEPAGE="http://xen.org/"
1032 -DOCS=( README docs/README.xen-bugtool )
1033 -
1034 -LICENSE="GPL-2"
1035 -SLOT="0/${MAJOR_V}"
1036 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
1037 -# >=dev-lang/ocaml-4 stable
1038 -# Masked in profiles/eapi-5-files instead
1039 -IUSE="api custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
1040 -
1041 -REQUIRED_USE="
1042 - ${PYTHON_REQUIRED_USE}
1043 - pygrub? ( python )
1044 - ovmf? ( hvm )
1045 - ^^ ( qemu system-qemu )"
1046 -
1047 -COMMON_DEPEND="
1048 - dev-libs/lzo:2
1049 - dev-libs/glib:2
1050 - dev-libs/yajl
1051 - dev-libs/libaio
1052 - dev-libs/libgcrypt:0
1053 - sys-libs/zlib
1054 -"
1055 -
1056 -DEPEND="${COMMON_DEPEND}
1057 - dev-python/lxml[${PYTHON_USEDEP}]
1058 - x86? ( sys-devel/dev86
1059 - sys-power/iasl )
1060 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
1061 - ${PYTHON_DEPS}
1062 - api? ( dev-libs/libxml2
1063 - net-misc/curl )
1064 - ovmf? (
1065 - !arm? ( dev-lang/nasm )
1066 - $(python_gen_impl_dep sqlite)
1067 - )
1068 - !amd64? ( >=sys-apps/dtc-1.4.0 )
1069 - amd64? ( sys-devel/bin86
1070 - system-seabios? ( sys-firmware/seabios )
1071 - sys-firmware/ipxe
1072 - sys-devel/dev86
1073 - sys-power/iasl )
1074 - dev-lang/perl
1075 - app-misc/pax-utils
1076 - doc? (
1077 - app-doc/doxygen
1078 - dev-python/markdown[${PYTHON_USEDEP}]
1079 - dev-tex/latex2html[png,gif]
1080 - media-gfx/graphviz
1081 - dev-tex/xcolor
1082 - media-gfx/transfig
1083 - dev-texlive/texlive-latexextra
1084 - virtual/latex-base
1085 - dev-tex/latexmk
1086 - dev-texlive/texlive-latex
1087 - dev-texlive/texlive-pictures
1088 - dev-texlive/texlive-latexrecommended
1089 - )
1090 - hvm? ( x11-proto/xproto
1091 - !net-libs/libiscsi )
1092 - qemu? (
1093 - x11-libs/pixman
1094 - sdl? ( media-libs/libsdl[X] )
1095 - )
1096 - system-qemu? ( app-emulation/qemu[xen] )
1097 - ocaml? ( dev-ml/findlib
1098 - >=dev-lang/ocaml-4 )"
1099 -
1100 -RDEPEND="${COMMON_DEPEND}
1101 - sys-apps/iproute2[-minimal]
1102 - net-misc/bridge-utils
1103 - screen? (
1104 - app-misc/screen
1105 - app-admin/logrotate
1106 - )"
1107 -
1108 -# hvmloader is used to bootstrap a fully virtualized kernel
1109 -# Approved by QA team in bug #144032
1110 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
1111 - usr/share/qemu-xen/qemu/s390-ccw.img"
1112 -
1113 -RESTRICT="test"
1114 -
1115 -pkg_setup() {
1116 - python_setup
1117 - export "CONFIG_LOMOUNT=y"
1118 -
1119 - #bug 522642, disable compile tools/tests
1120 - export "CONFIG_TESTS=n"
1121 -
1122 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
1123 - if use x86 && use amd64; then
1124 - die "Confusion! Both x86 and amd64 are set in your use flags!"
1125 - elif use x86; then
1126 - export XEN_TARGET_ARCH="x86_32"
1127 - elif use amd64 ; then
1128 - export XEN_TARGET_ARCH="x86_64"
1129 - elif use arm; then
1130 - export XEN_TARGET_ARCH="arm32"
1131 - elif use arm64; then
1132 - export XEN_TARGET_ARCH="arm64"
1133 - else
1134 - die "Unsupported architecture!"
1135 - fi
1136 - fi
1137 -}
1138 -
1139 -src_prepare() {
1140 - # Upstream's patchset
1141 - if [[ -n ${UPSTREAM_VER} ]]; then
1142 - einfo "Try to apply Xen Upstream patch set"
1143 - EPATCH_SUFFIX="patch" \
1144 - EPATCH_FORCE="yes" \
1145 - EPATCH_OPTS="-p1" \
1146 - epatch "${WORKDIR}"/patches-upstream
1147 - fi
1148 -
1149 - # Security patchset
1150 - if [[ -n ${SECURITY_VER} ]]; then
1151 - einfo "Try to apply Xen Security patch set"
1152 - # apply main xen patches
1153 - # Two parallel systems, both work side by side
1154 - # Over time they may concdense into one. This will suffice for now
1155 - EPATCH_SUFFIX="patch"
1156 - EPATCH_FORCE="yes"
1157 -
1158 - source "${WORKDIR}"/patches-security/${PV}.conf
1159 -
1160 - for i in ${XEN_SECURITY_MAIN}; do
1161 - epatch "${WORKDIR}"/patches-security/xen/$i
1162 - done
1163 -
1164 - # apply qemu-xen/upstream patches
1165 - pushd "${S}"/tools/qemu-xen/ > /dev/null
1166 - for i in ${XEN_SECURITY_QEMUU}; do
1167 - epatch "${WORKDIR}"/patches-security/qemuu/$i
1168 - done
1169 - popd > /dev/null
1170 -
1171 - # apply qemu-traditional patches
1172 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
1173 - for i in ${XEN_SECURITY_QEMUT}; do
1174 - epatch "${WORKDIR}"/patches-security/qemut/$i
1175 - done
1176 - popd > /dev/null
1177 - fi
1178 -
1179 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
1180 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
1181 - pushd tools/firmware/ > /dev/null
1182 - ln -s seabios-dir-remote seabios-dir || die
1183 - popd > /dev/null
1184 -
1185 - # Gentoo's patchset
1186 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
1187 - einfo "Try to apply Gentoo specific patch set"
1188 - source "${FILESDIR}"/gentoo-patches.conf
1189 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
1190 - for i in ${!_gpv}; do
1191 - EPATCH_SUFFIX="patch" \
1192 - EPATCH_FORCE="yes" \
1193 - epatch "${WORKDIR}"/patches-gentoo/$i
1194 - done
1195 - fi
1196 -
1197 - # Ovmf's patchset
1198 - if use ovmf; then
1199 - if [[ -n ${OVMF_VER} ]];then
1200 - einfo "Try to apply Ovmf patch set"
1201 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
1202 - EPATCH_SUFFIX="patch" \
1203 - EPATCH_FORCE="yes" \
1204 - EPATCH_OPTS="-p1" \
1205 - epatch "${WORKDIR}"/patches-ovmf
1206 - popd > /dev/null
1207 - fi
1208 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
1209 - fi
1210 -
1211 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
1212 -
1213 - # Fix texi2html build error with new texi2html, qemu.doc.html
1214 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
1215 -
1216 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
1217 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
1218 - -i tools/firmware/Makefile || die
1219 -
1220 - # Drop .config, fixes to gcc-4.6
1221 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
1222 -
1223 - # if the user *really* wants to use their own custom-cflags, let them
1224 - if use custom-cflags; then
1225 - einfo "User wants their own CFLAGS - removing defaults"
1226 -
1227 - # try and remove all the default cflags
1228 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
1229 - -exec sed \
1230 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
1231 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
1232 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
1233 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
1234 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
1235 - -i {} + || die "failed to re-set custom-cflags"
1236 - else
1237 - unset CFLAGS
1238 - unset LDFLAGS
1239 - unset ASFLAGS
1240 - unset CPPFLAGS
1241 - fi
1242 -
1243 - if ! use pygrub; then
1244 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
1245 - fi
1246 -
1247 - if ! use python; then
1248 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
1249 - fi
1250 -
1251 - if ! use hvm; then
1252 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
1253 - # Bug 351648
1254 - elif ! use x86 && ! has x86 $(get_all_abis); then
1255 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
1256 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
1257 - export CPATH="${WORKDIR}"/extra-headers
1258 - fi
1259 -
1260 - if use qemu; then
1261 - if use sdl; then
1262 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
1263 - tools/Makefile || die
1264 - else
1265 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
1266 - tools/qemu-xen-traditional/xen-setup || die
1267 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
1268 - tools/Makefile || die
1269 - fi
1270 - else
1271 - # Don't bother with qemu, only needed for fully virtualised guests
1272 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
1273 - fi
1274 -
1275 - # Reset bash completion dir; Bug 472438
1276 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
1277 - -i Config.mk || die
1278 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
1279 -
1280 - # xencommons, Bug #492332, sed lighter weight than patching
1281 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
1282 - -i tools/hotplug/Linux/init.d/xencommons.in || die
1283 -
1284 - # respect multilib, usr/lib/libcacard.so.0.0.0
1285 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
1286 - -i tools/qemu-xen/configure || die
1287 -
1288 - #bug 518136, don't build 32bit exactuable for nomultilib profile
1289 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
1290 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
1291 - fi
1292 -
1293 - # use /var instead of /var/lib, consistat with previous ebuild
1294 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
1295 - m4/paths.m4 configure tools/configure || die
1296 - # use /run instead of /var/run
1297 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
1298 - m4/paths.m4 configure tools/configure || die
1299 -
1300 - # uncomment lines in xl.conf
1301 - sed -e 's:^#autoballoon=:autoballoon=:' \
1302 - -e 's:^#lockfile=:lockfile=:' \
1303 - -e 's:^#vif.default.script=:vif.default.script=:' \
1304 - -i tools/examples/xl.conf || die
1305 -
1306 - # Bug #575868 converted to a sed statement, typo of one char
1307 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
1308 -
1309 - epatch_user
1310 -}
1311 -
1312 -src_configure() {
1313 - local myconf="--prefix=${PREFIX}/usr \
1314 - --libdir=${PREFIX}/usr/$(get_libdir) \
1315 - --libexecdir=${PREFIX}/usr/libexec \
1316 - --disable-werror \
1317 - --disable-xen \
1318 - --enable-tools \
1319 - --enable-docs \
1320 - $(use_enable pam) \
1321 - $(use_enable api xenapi) \
1322 - $(use_enable ovmf) \
1323 - $(use_enable ocaml ocamltools) \
1324 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
1325 - "
1326 -
1327 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
1328 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
1329 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
1330 - econf ${myconf}
1331 -}
1332 -
1333 -src_compile() {
1334 - export VARTEXFONTS="${T}/fonts"
1335 - local myopt
1336 - use debug && myopt="${myopt} debug=y"
1337 -
1338 - if test-flag-CC -fno-strict-overflow; then
1339 - append-flags -fno-strict-overflow
1340 - fi
1341 -
1342 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
1343 -
1344 - use doc && emake -C docs txt html
1345 - emake -C docs man-pages
1346 -}
1347 -
1348 -src_install() {
1349 - # Override auto-detection in the build system, bug #382573
1350 - export INITD_DIR=/tmp/init.d
1351 - export CONFIG_LEAF_DIR=../tmp/default
1352 -
1353 - # Let the build system compile installed Python modules.
1354 - local PYTHONDONTWRITEBYTECODE
1355 - export PYTHONDONTWRITEBYTECODE
1356 -
1357 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
1358 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
1359 -
1360 - # Fix the remaining Python shebangs.
1361 - python_fix_shebang "${D}"
1362 -
1363 - # Remove RedHat-specific stuff
1364 - rm -rf "${D}"tmp || die
1365 -
1366 - if use doc; then
1367 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
1368 -
1369 - dohtml -r docs/
1370 - docinto pdf
1371 - dodoc ${DOCS[@]}
1372 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
1373 - fi
1374 -
1375 - rm -rf "${D}"/usr/share/doc/xen/
1376 - doman docs/man?/*
1377 -
1378 - newconfd "${FILESDIR}"/xendomains.confd xendomains
1379 - newconfd "${FILESDIR}"/xenstored.confd xenstored
1380 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
1381 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
1382 - newinitd "${FILESDIR}"/xenstored.initd xenstored
1383 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
1384 - newinitd "${FILESDIR}"/xencommons.initd xencommons
1385 - newconfd "${FILESDIR}"/xencommons.confd xencommons
1386 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
1387 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
1388 -
1389 - if use screen; then
1390 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
1391 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
1392 - keepdir /var/log/xen-consoles
1393 - fi
1394 -
1395 - # For -static-libs wrt Bug 384355
1396 - if ! use static-libs; then
1397 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
1398 - fi
1399 -
1400 - # for xendomains
1401 - keepdir /etc/xen/auto
1402 -
1403 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
1404 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
1405 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
1406 -}
1407 -
1408 -pkg_postinst() {
1409 - elog "Official Xen Guide and the offical wiki page:"
1410 - elog "https://wiki.gentoo.org/wiki/Xen"
1411 - elog "http://wiki.xen.org/wiki/Main_Page"
1412 - elog ""
1413 - elog "Recommended to utilise the xencommons script to config sytem At boot"
1414 - elog "Add by use of rc-update on completion of the install"
1415 -
1416 - if ! use hvm; then
1417 - echo
1418 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
1419 - elog "support enable the hvm use flag."
1420 - elog "An x86 or amd64 system is required to build HVM support."
1421 - fi
1422 -
1423 - if use qemu; then
1424 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
1425 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
1426 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
1427 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
1428 - fi
1429 -}