Gentoo Archives: gentoo-commits

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