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: Mon, 10 Sep 2018 11:10:01
Message-Id: 1536577784.3f8971358d3427edd2b3052d967f06ef40be0313.whissi@gentoo
1 commit: 3f8971358d3427edd2b3052d967f06ef40be0313
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 10 10:49:45 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 11:09:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f897135
7
8 app-emulation/xen-tools: bump to 4.11.0-r2
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-emulation/xen-tools/Manifest | 1 +
13 app-emulation/xen-tools/xen-tools-4.11.0-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 8c3ab18fc4f..5c1582c8e13 100644
18 --- a/app-emulation/xen-tools/Manifest
19 +++ b/app-emulation/xen-tools/Manifest
20 @@ -6,6 +6,7 @@ DIST xen-4.10.1-upstream-patches-1.tar.xz 85048 BLAKE2B d00f01980e1c889b2f689997
21 DIST xen-4.10.1-upstream-patches-2.tar.xz 117588 BLAKE2B ddcd58964117652b50f3524d89089e2e9b14a8399fb5bd2db5d12827035ab94cedbfd5d65134d8953e4062a50e0e8a9b320e9c34008db8fd364456f47fd9cd26 SHA512 49ee8497af3753f3d611bf12c65fb7a79abb018862f1af096e9dde3ddfe8780bb95fc3da338c8d5f16a5d6d233d606d4cf8025a3d0e2897bf2668a1d5b27b198
22 DIST xen-4.10.1.tar.gz 24674240 BLAKE2B f9a7e0c637db865ab32ad6b6185ab96022903aff65a18e194286a3fc372d4a45f6682cd636b7ac5b4fa0125e54ed51f8876a411d498cf75791718fd088c4a6d2 SHA512 236c02bee69e33644703ed26d323d4c491a91fc05bd0ee0990a7368579f7c82f5bb4510845bf80348fd923024d7d60d521f593dfd0365d971dc592f8ef10fbea
23 DIST xen-4.11.0-upstream-patches-0.tar.xz 21720 BLAKE2B 92c2ef90ca6af5032e9181d8edbe2b91a4117cc402f5abdff208aa76ee76b56ce75f576c56220d2ebf6d1a21957c10f7c45a2c88d2c77aa8b17fa9a0a99e5b57 SHA512 6ea0ee376251b20b7fa9b6334bca462f115d8a9929e31ae269ae9591b433b46e4e9076a2d2e39ec5f868d5d74739ad7b0ba0d9244e599da5255ccca0babd669e
24 +DIST xen-4.11.0-upstream-patches-1.tar.xz 56664 BLAKE2B 27579f4e628bb0d3fdd59f7e133e9134d4ca175842dfdae3a3f765b133254239ae3bca94d75dd655735b5bcbd67f9b8d444dd227028642e6e459e57ed8a20341 SHA512 e90b8e7fa9433e93b1620a776833a6d3578babebe5d73dcaae11186f473945a2270046932ab314a9c6049d3b460a655456f487a5b59730fe88a4f08d482c47a1
25 DIST xen-4.11.0.tar.gz 25131533 BLAKE2B 892639b8bcd9b9956104e4d5137ffd88e17f92d965fa967b4af8d74a4fddcc21c6971c53026e0fb5ce833ab2c25c68f827abcac0b7b1dcebc21dca645c465573 SHA512 33d431c194f10d5ee767558404a1f80a66b3df019012b0bbd587fcbc9524e1bba7ea04269020ce891fe9d211d2f81c63bf78abedcdbe1595aee26251c803a50a
26 DIST xen-4.9.2-upstream-patches-2.tar.xz 16100 BLAKE2B 469b5ab7c5514a4974ba6370136d3b0b8da66a137e57ea2d8ba4341582ecc65e9131340cfc854b2e4991de778802726479176bf3a54a59660cef7337c31958e5 SHA512 900ed3a63986ad6add07fa4f2c2596c48f7e9aac18d0876229c3a0b076a6417488e0d7bd1bdbe9886e6900bbece35c378b7f8735778b4bdfa115a9662d43108b
27 DIST xen-4.9.2.tar.gz 23392753 BLAKE2B 5f96f0e5062eff8ac2971eef85ea2bae0e94e7542151237937a1cf7e74690bb0ce1c952e830d2fc13b3277f70b9ed1de511afe4f780ad7b3be0c58742ece39b2 SHA512 e06aec25439abcc548c174ba8e271c23031ea704bcc2480905140aa68490064fbb1c58d9c4174f6617b4f7bbcddfda284317df6f480a6e5b5b5a2c71fbe0ac93
28
29 diff --git a/app-emulation/xen-tools/xen-tools-4.11.0-r2.ebuild b/app-emulation/xen-tools/xen-tools-4.11.0-r2.ebuild
30 new file mode 100644
31 index 00000000000..1448504cac9
32 --- /dev/null
33 +++ b/app-emulation/xen-tools/xen-tools-4.11.0-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=7
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
44 +
45 +MY_PV=${PV/_/-}
46 +MAJOR_V="$(ver_cut 1-2)"
47 +
48 +if [[ $PV == *9999 ]]; then
49 + inherit git-r3
50 + REPO="xen.git"
51 + EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
52 + S="${WORKDIR}/${REPO}"
53 +else
54 + KEYWORDS="~amd64 ~arm ~arm64 ~x86"
55 + UPSTREAM_VER=1
56 + SECURITY_VER=
57 + # xen-tools's gentoo patches tarball
58 + GENTOO_VER=14
59 + # xen-tools's gentoo patches version which apply to this specific ebuild
60 + GENTOO_GPV=0
61 + # xen-tools ovmf's patches
62 + OVMF_VER=3
63 +
64 + SEABIOS_VER=1.10.0
65 + # OVMF upstream 5920a9d16b1ab887c2858224316a98e961d71b05
66 + OVMF_PV=20170321
67 +
68 + [[ -n ${UPSTREAM_VER} ]] && \
69 + UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz
70 + https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
71 + [[ -n ${SECURITY_VER} ]] && \
72 + SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
73 + [[ -n ${GENTOO_VER} ]] && \
74 + GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz
75 + https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz"
76 + [[ -n ${OVMF_VER} ]] && \
77 + OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
78 +
79 + SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz
80 + http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
81 + https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
82 + ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.xz
83 + ${OVMF_PATCHSET_URI} )
84 + ${UPSTREAM_PATCHSET_URI}
85 + ${SECURITY_PATCHSET_URI}
86 + ${GENTOO_PATCHSET_URI}"
87 +
88 + S="${WORKDIR}/xen-${MY_PV}"
89 +fi
90 +
91 +DESCRIPTION="Xen tools including QEMU and xl"
92 +HOMEPAGE="https://www.xenproject.org"
93 +DOCS=( README docs/README.xen-bugtool )
94 +
95 +LICENSE="GPL-2"
96 +SLOT="0/${MAJOR_V}"
97 +# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
98 +# >=dev-lang/ocaml-4 stable
99 +# Masked in profiles/eapi-5-files instead
100 +IUSE="api custom-cflags debug doc flask hvm ocaml ovmf +pam pygrub python +qemu +qemu-traditional screen sdl static-libs system-qemu system-seabios"
101 +
102 +REQUIRED_USE="
103 + ${PYTHON_REQUIRED_USE}
104 + pygrub? ( python )
105 + ovmf? ( hvm )
106 + ^^ ( qemu system-qemu )"
107 +
108 +COMMON_DEPEND="
109 + sys-apps/pciutils
110 + dev-libs/lzo:2
111 + dev-libs/glib:2
112 + dev-libs/yajl
113 + dev-libs/libaio
114 + dev-libs/libgcrypt:0
115 + sys-libs/zlib
116 + ${PYTHON_DEPS}
117 +"
118 +
119 +DEPEND="${COMMON_DEPEND}
120 + >=sys-kernel/linux-headers-4.11
121 + dev-python/lxml[${PYTHON_USEDEP}]
122 + x86? ( sys-devel/dev86
123 + sys-power/iasl )
124 + pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
125 + api? ( dev-libs/libxml2
126 + net-misc/curl )
127 + ovmf? (
128 + !arm? ( !arm64? ( dev-lang/nasm ) )
129 + $(python_gen_impl_dep sqlite)
130 + )
131 + !amd64? ( >=sys-apps/dtc-1.4.0 )
132 + amd64? ( sys-devel/bin86
133 + system-seabios? ( sys-firmware/seabios )
134 + sys-firmware/ipxe
135 + sys-devel/dev86
136 + sys-power/iasl )
137 + dev-lang/perl
138 + app-misc/pax-utils
139 + doc? (
140 + app-text/ghostscript-gpl
141 + app-text/pandoc
142 + dev-python/markdown[${PYTHON_USEDEP}]
143 + dev-texlive/texlive-latexextra
144 + media-gfx/transfig
145 + )
146 + hvm? ( x11-base/xorg-proto )
147 + qemu? (
148 + app-arch/snappy:=
149 + x11-libs/pixman
150 + sdl? ( media-libs/libsdl[X] )
151 + )
152 + system-qemu? ( app-emulation/qemu[xen] )
153 + ocaml? ( dev-ml/findlib
154 + >=dev-lang/ocaml-4 )"
155 +
156 +RDEPEND="${COMMON_DEPEND}
157 + sys-apps/iproute2[-minimal]
158 + net-misc/bridge-utils
159 + screen? (
160 + app-misc/screen
161 + app-admin/logrotate
162 + )"
163 +
164 +# hvmloader is used to bootstrap a fully virtualized kernel
165 +# Approved by QA team in bug #144032
166 +QA_WX_LOAD="
167 + usr/libexec/xen/boot/hvmloader
168 + usr/share/qemu-xen/qemu/s390-ccw.img
169 + usr/share/qemu-xen/qemu/u-boot.e500
170 +"
171 +
172 +QA_PREBUILT="
173 + usr/libexec/xen/bin/ivshmem-client
174 + usr/libexec/xen/bin/ivshmem-server
175 + usr/libexec/xen/bin/qemu-img
176 + usr/libexec/xen/bin/qemu-io
177 + usr/libexec/xen/bin/qemu-keymap
178 + usr/libexec/xen/bin/qemu-nbd
179 + usr/libexec/xen/bin/qemu-pr-helper
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 +}