Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen-tools/
Date: Wed, 23 Dec 2015 02:21:28
Message-Id: 1450837262.15376b7a9fc87586a7767a2f5456dd861d9d0028.idella4@gentoo
1 commit: 15376b7a9fc87586a7767a2f5456dd861d9d0028
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 23 00:22:13 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 23 02:21:02 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15376b7a
7
8 app-emulation/xen-tools: clean vn. 4.5.2-r1 re sec bug #566842
9
10 Package-Manager: portage-2.2.24
11
12 app-emulation/xen-tools/Manifest | 1 -
13 app-emulation/xen-tools/xen-tools-4.5.2-r1.ebuild | 466 ----------------------
14 2 files changed, 467 deletions(-)
15
16 diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
17 index e75efab..69abb00 100644
18 --- a/app-emulation/xen-tools/Manifest
19 +++ b/app-emulation/xen-tools/Manifest
20 @@ -13,7 +13,6 @@ DIST xen-gentoo-patches-4.tar.xz 23632 SHA256 5cdb0f93ee32d0a5fc4fc7282270ace73a
21 DIST xen-gentoo-patches-5.tar.xz 23664 SHA256 41e23ec6fb5a4ef5a1f8746de0e33579de2c725368afed6bd2b7506df5e8c2b5 SHA512 8370cef1aa06585e8fa8f8c6eb7f29375ac6f5a240c859ebb6982d1c1ec159c9c331c861f39838f53093cdceca24ee1b0d98c1c92874dd4113e73eb884842eac WHIRLPOOL 4b65283220b66555a69b65331d3dcb8b8353fef584eb723c2a703712bc6eac57b70f500eeeffc511e75d3ab5d3a1eac8aac83133baf4c90ab498b1843764eb9f
22 DIST xen-ovmf-patches-1.tar.xz 4724 SHA256 d14e98e62c78c9f4b8a7e7b4a04de6dabf300f393eff44154d06f93aa43d7703 SHA512 a17467762f6d92018ff9bce783ce148039f23159405e801ec2aef4c3db72c3976c6f1e41d8c2a2cb704a9654556a2050302f284cfe8e32f28f393b8e2c6d2f1c WHIRLPOOL de53ad07f20aa14fe76d974db92d5b6808f0a2dd26a627b818914990add7adad8e6135d42641819dc22947031981c5815bae5aeeed0f28785c90beda0a6ff6c8
23 DIST xen-qemu-patches-0.tar.gz 3224 SHA256 ff1ac02a6d91e4abdbe069e1bb75d0b798deff5c2c72d1efb5459c72f4278f00 SHA512 4fd0c663a733436188aca364e927ac430d9bbef9859da65c074d7fd66c330645b05ff1f3e849f4581dfcd7054801d65edcff8445c1c63c2725f11e3903415af0 WHIRLPOOL 5504d7ffbd3c1970026c1f43252d9c76f10c5448ede247719e2698aa8f8e93b20e4cc353da5582b3b6887fb3fd7d1e13765f664ea60daeb6020f052eaca9b9f4
24 -DIST xen-security-patches-0.tar.gz 1034 SHA256 283dfdf73735d1ce45db7d5b9880fec378317ebda097423b36d61aa1bf2146a8 SHA512 c15374546ddab803f1b1a2bc961f8d8b0ec04c141036f6a0c6a4d60129e23ace2d88ba6b292d6382463fa80d8bf8dbdfd788b325b1baa8a9aa5df63be26f8ed4 WHIRLPOOL 08fe26578f796a97e486e178a1b7b8e515e1d9797bdb868b487eabc95fa4f2063e5d08b554689fdb0392cc85643aaa22a93df197fd68729d4581c127df84fa5a
25 DIST xen-security-patches-1.tar.gz 7040 SHA256 30733e9ca71bf4291ff212eb191afb22687ccd9b2579767fe0ee013152980c76 SHA512 89c72897f18a86c2060bb76a182e7cca72ad2f33a3aab964ecae66e057aeecafee2e9986204d6feb98f81ccb740460ee2cb37663b1ab79f47adc1dd73e0091bc WHIRLPOOL c27e612b87b4a30abbf59e6be019e2c21a78bfbdf1715da5498d95607d390d616251768d419ac5ce76087bbf7cdfc410dd0088ba48e425082cea971efcb64346
26 DIST xen-security-patches-2.tar.gz 7370 SHA256 f24bf4b0cba29b51ee71f6ef82654cddf157c63d62fc1119f17255b2388e03ab SHA512 209dea670467ff1df18428c15b25229c05d676d1a2f646cddb221544ae888241ade48a22be037f97dce249ac322c1f30bb477675e5e2cc04a2fbd839e02f1f57 WHIRLPOOL ae66a2fbc0d0f0a555d407ebd3198fa58ee043515fb9821d7b9eda46d088bc87b3de16fe015fd1142294429dd2c1c7826e414a55980e27123185c1a86fb0a8a6
27 DIST xen-security-patches-3.tar.gz 7349 SHA256 a1876b918c0a608618f349deed11b547a65c5909c31d72a89340d4908c572f46 SHA512 f5e8e7ab5d9be6aa036e52627931f1b2648de642664b2922f9cab64f44d19ac8682f5beb7fdbcb842ee19346202093fade3f10e39ba60fcb12a101deb4408818 WHIRLPOOL 14ee65babe4edd901914c8b8ddb5d7b54e6738d77642514fe611bf84541ae0a932bcb48f86179d5e7a6741135b9c7b129e8244cc22922c4e592604a696b6082f
28
29 diff --git a/app-emulation/xen-tools/xen-tools-4.5.2-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.5.2-r1.ebuild
30 deleted file mode 100644
31 index 86df54d..0000000
32 --- a/app-emulation/xen-tools/xen-tools-4.5.2-r1.ebuild
33 +++ /dev/null
34 @@ -1,466 +0,0 @@
35 -# Copyright 1999-2015 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -# $Id$
38 -
39 -EAPI=5
40 -
41 -MY_PV=${PV/_/-}
42 -
43 -PYTHON_COMPAT=( python2_7 )
44 -PYTHON_REQ_USE='xml,threads'
45 -
46 -if [[ $PV == *9999 ]]; then
47 - KEYWORDS=""
48 - REPO="xen-unstable.hg"
49 - EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
50 - S="${WORKDIR}/${REPO}"
51 - live_eclass="mercurial"
52 -else
53 - KEYWORDS="amd64 ~arm ~arm64 -x86"
54 - UPSTREAM_VER=
55 - SECURITY_VER=7
56 - # xen-tools's gentoo patches tarball
57 - GENTOO_VER=4
58 - # xen-tools's gentoo patches version which apply to this specific ebuild
59 - GENTOO_GPV=0
60 - # xen-tools ovmf's patches
61 - OVMF_VER=1
62 -
63 - SEABIOS_VER=1.7.5
64 - OVMF_PV=20150629
65 -
66 - [[ -n ${UPSTREAM_VER} ]] && \
67 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
68 - [[ -n ${SECURITY_VER} ]] && \
69 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
70 - [[ -n ${GENTOO_VER} ]] && \
71 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
72 - [[ -n ${OVMF_VER} ]] && \
73 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
74 -
75 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
76 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
77 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
78 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
79 - ${OVMF_PATCHSET_URI} )
80 - ${UPSTREAM_PATCHSET_URI}
81 - ${SECURITY_PATCHSET_URI}
82 - ${GENTOO_PATCHSET_URI}
83 - https://dev.gentoo.org/~idella4/distfiles/xen-security-patches-0.tar.gz"
84 -
85 - S="${WORKDIR}/xen-${MY_PV}"
86 -fi
87 -
88 -inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
89 -
90 -DESCRIPTION="Xend daemon and tools"
91 -HOMEPAGE="http://xen.org/"
92 -DOCS=( README docs/README.xen-bugtool )
93 -
94 -LICENSE="GPL-2"
95 -SLOT="0"
96 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
97 -# >=dev-lang/ocaml-4 stable
98 -# Masked in profiles/eapi-5-files instead
99 -IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam python pygrub screen static-libs system-qemu system-seabios"
100 -
101 -REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
102 - ${PYTHON_REQUIRED_USE}
103 - pygrub? ( python )
104 - ovmf? ( hvm )
105 - qemu? ( !system-qemu )"
106 -
107 -COMMON_DEPEND="
108 - dev-libs/lzo:2
109 - dev-libs/glib:2
110 - dev-libs/yajl
111 - dev-libs/libaio
112 - dev-libs/libgcrypt:0
113 - sys-libs/zlib
114 -"
115 -
116 -DEPEND="${COMMON_DEPEND}
117 - dev-python/lxml[${PYTHON_USEDEP}]
118 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
119 - hvm? ( media-libs/libsdl )
120 - ${PYTHON_DEPS}
121 - api? ( dev-libs/libxml2
122 - net-misc/curl )
123 - pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
124 - ovmf? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/sqlite} )
125 - !amd64? ( >=sys-apps/dtc-1.4.0 )
126 - amd64? ( sys-devel/bin86
127 - system-seabios? ( sys-firmware/seabios )
128 - sys-firmware/ipxe
129 - sys-devel/dev86
130 - sys-power/iasl )
131 - dev-lang/perl
132 - app-misc/pax-utils
133 - doc? (
134 - app-doc/doxygen
135 - dev-python/markdown[${PYTHON_USEDEP}]
136 - dev-tex/latex2html[png,gif]
137 - media-gfx/graphviz
138 - dev-tex/xcolor
139 - media-gfx/transfig
140 - dev-texlive/texlive-latexextra
141 - virtual/latex-base
142 - dev-tex/latexmk
143 - dev-texlive/texlive-latex
144 - dev-texlive/texlive-pictures
145 - dev-texlive/texlive-latexrecommended
146 - )
147 - hvm? ( x11-proto/xproto
148 - !net-libs/libiscsi )
149 - qemu? ( x11-libs/pixman )
150 - system-qemu? ( app-emulation/qemu[xen] )
151 - ocaml? ( dev-ml/findlib
152 - >=dev-lang/ocaml-4 )"
153 -
154 -RDEPEND="${COMMON_DEPEND}
155 - sys-apps/iproute2
156 - net-misc/bridge-utils
157 - screen? (
158 - app-misc/screen
159 - app-admin/logrotate
160 - )
161 - virtual/udev"
162 -
163 -# hvmloader is used to bootstrap a fully virtualized kernel
164 -# Approved by QA team in bug #144032
165 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
166 - usr/share/qemu-xen/qemu/s390-ccw.img"
167 -
168 -RESTRICT="test"
169 -
170 -pkg_setup() {
171 - python-single-r1_pkg_setup
172 - export "CONFIG_LOMOUNT=y"
173 -
174 - #bug 522642, disable compile tools/tests
175 - export "CONFIG_TESTS=n"
176 -
177 - if has_version dev-libs/libgcrypt:0; then
178 - export "CONFIG_GCRYPT=y"
179 - fi
180 -
181 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
182 - if use x86 && use amd64; then
183 - die "Confusion! Both x86 and amd64 are set in your use flags!"
184 - elif use x86; then
185 - export XEN_TARGET_ARCH="x86_32"
186 - elif use amd64 ; then
187 - export XEN_TARGET_ARCH="x86_64"
188 - elif use arm; then
189 - export XEN_TARGET_ARCH="arm32"
190 - elif use arm64; then
191 - export XEN_TARGET_ARCH="arm64"
192 - else
193 - die "Unsupported architecture!"
194 - fi
195 - fi
196 -}
197 -
198 -src_prepare() {
199 - # Upstream's patchset
200 - if [[ -n ${UPSTREAM_VER} ]]; then
201 - einfo "Try to apply Xen Upstream patcheset"
202 - EPATCH_SUFFIX="patch" \
203 - EPATCH_FORCE="yes" \
204 - EPATCH_OPTS="-p1" \
205 - epatch "${WORKDIR}"/patches-upstream
206 - fi
207 -
208 - # Security patchset
209 - if [[ -n ${SECURITY_VER} ]]; then
210 - einfo "Try to apply Xen Security patcheset"
211 - source "${WORKDIR}"/patches-security/${PV}.conf
212 - # apply main xen patches
213 - for i in ${XEN_SECURITY_MAIN}; do
214 - EPATCH_SUFFIX="patch" \
215 - EPATCH_FORCE="yes" \
216 - epatch "${WORKDIR}"/patches-security/xen/$i
217 - done
218 -
219 - # apply qemu-traditional patches
220 - mv "${WORKDIR}"/xsa162-qemut.patch \
221 - "${WORKDIR}"/patches-security/qemut/ || die
222 - XEN_SECURITY_QEMUT="xsa162-qemut.patch"
223 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
224 - for i in ${XEN_SECURITY_QEMUT}; do
225 - EPATCH_SUFFIX="patch" \
226 - EPATCH_FORCE="yes" \
227 - epatch "${WORKDIR}"/patches-security/qemut/$i
228 - done
229 - popd > /dev/null
230 -
231 - # apply qemu-xen/upstream patches
232 - mv "${WORKDIR}"/xsa162-qemuu.patch \
233 - "${WORKDIR}"/patches-security/qemuu/ || die
234 - XEN_SECURITY_QEMUU="xsa162-qemuu.patch"
235 - pushd "${S}"/tools/qemu-xen/ > /dev/null
236 - for i in ${XEN_SECURITY_QEMUU}; do
237 - EPATCH_SUFFIX="patch" \
238 - EPATCH_FORCE="yes" \
239 - epatch "${WORKDIR}"/patches-security/qemuu/$i
240 - done
241 - popd > /dev/null
242 - fi
243 -
244 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
245 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
246 - pushd tools/firmware/ > /dev/null
247 - ln -s seabios-dir-remote seabios-dir || die
248 - popd > /dev/null
249 -
250 - # Gentoo's patchset
251 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
252 - einfo "Try to apply Gentoo specific patch set"
253 - source "${FILESDIR}"/gentoo-patches.conf
254 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
255 - for i in ${!_gpv}; do
256 - EPATCH_SUFFIX="patch" \
257 - EPATCH_FORCE="yes" \
258 - epatch "${WORKDIR}"/patches-gentoo/$i
259 - done
260 - fi
261 -
262 - # Ovmf's patchset
263 - if [[ -n ${OVMF_VER} ]] && use ovmf; then
264 - einfo "Try to apply Ovmf patch set"
265 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
266 - EPATCH_SUFFIX="patch" \
267 - EPATCH_FORCE="yes" \
268 - EPATCH_OPTS="-p1" \
269 - epatch "${WORKDIR}"/patches-ovmf
270 - popd > /dev/null
271 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
272 - fi
273 -
274 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
275 -
276 - # Fix texi2html build error with new texi2html, qemu.doc.html
277 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
278 -
279 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
280 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
281 - -i tools/firmware/Makefile || die
282 -
283 - # Drop .config, fixes to gcc-4.6
284 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
285 -
286 - # if the user *really* wants to use their own custom-cflags, let them
287 - if use custom-cflags; then
288 - einfo "User wants their own CFLAGS - removing defaults"
289 -
290 - # try and remove all the default cflags
291 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
292 - -exec sed \
293 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
294 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
295 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
296 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
297 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
298 - -i {} + || die "failed to re-set custom-cflags"
299 - fi
300 -
301 - if ! use pygrub; then
302 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
303 - fi
304 -
305 - if ! use python; then
306 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
307 - fi
308 -
309 - if ! use hvm; then
310 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
311 - # Bug 351648
312 - elif ! use x86 && ! has x86 $(get_all_abis); then
313 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
314 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
315 - export CPATH="${WORKDIR}"/extra-headers
316 - fi
317 -
318 - # Don't bother with qemu, only needed for fully virtualised guests
319 - if ! use qemu; then
320 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
321 - fi
322 -
323 - # Reset bash completion dir; Bug 472438
324 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
325 - -i Config.mk || die
326 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
327 -
328 - # xencommons, Bug #492332, sed lighter weight than patching
329 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
330 - -i tools/hotplug/Linux/init.d/xencommons.in || die
331 -
332 - # respect multilib, usr/lib/libcacard.so.0.0.0
333 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
334 - -i tools/qemu-xen/configure || die
335 -
336 - #bug 518136, don't build 32bit exactuable for nomultilib profile
337 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
338 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
339 - fi
340 -
341 - # use /var instead of /var/lib, consistat with previous ebuild
342 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
343 - m4/paths.m4 configure tools/configure || die
344 - # use /run instead of /var/run
345 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
346 - m4/paths.m4 configure tools/configure || die
347 -
348 - # uncomment lines in xl.conf
349 - sed -e 's:^#autoballoon=:autoballoon=:' \
350 - -e 's:^#lockfile=:lockfile=:' \
351 - -e 's:^#vif.default.script=:vif.default.script=:' \
352 - -i tools/examples/xl.conf || die
353 -
354 - epatch_user
355 -}
356 -
357 -src_configure() {
358 - local myconf="--prefix=${PREFIX}/usr \
359 - --libdir=${PREFIX}/usr/$(get_libdir) \
360 - --libexecdir=${PREFIX}/usr/libexec \
361 - --disable-werror \
362 - --disable-xen \
363 - --enable-tools \
364 - --enable-docs \
365 - $(use_with system-qemu) \
366 - $(use_enable pam) \
367 - $(use_enable api xenapi) \
368 - $(use_enable ovmf) \
369 - $(use_enable ocaml ocamltools) \
370 - "
371 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
372 - use qemu || myconf+=" --with-system-qemu"
373 - use amd64 && myconf+=" --enable-qemu-traditional"
374 - econf ${myconf}
375 -}
376 -
377 -src_compile() {
378 - export VARTEXFONTS="${T}/fonts"
379 - local myopt
380 - use debug && myopt="${myopt} debug=y"
381 -
382 - use custom-cflags || unset CFLAGS
383 - if test-flag-CC -fno-strict-overflow; then
384 - append-flags -fno-strict-overflow
385 - fi
386 -
387 - unset LDFLAGS
388 - unset CFLAGS
389 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
390 -
391 - use doc && emake -C docs txt html
392 - emake -C docs man-pages
393 -}
394 -
395 -src_install() {
396 - # Override auto-detection in the build system, bug #382573
397 - export INITD_DIR=/tmp/init.d
398 - export CONFIG_LEAF_DIR=../tmp/default
399 -
400 - # Let the build system compile installed Python modules.
401 - local PYTHONDONTWRITEBYTECODE
402 - export PYTHONDONTWRITEBYTECODE
403 -
404 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
405 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
406 -
407 - # Fix the remaining Python shebangs.
408 - python_fix_shebang "${D}"
409 -
410 - # Remove RedHat-specific stuff
411 - rm -rf "${D}"tmp || die
412 -
413 - if use doc; then
414 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
415 -
416 - dohtml -r docs/
417 - docinto pdf
418 - dodoc ${DOCS[@]}
419 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
420 - fi
421 -
422 - rm -rf "${D}"/usr/share/doc/xen/
423 - doman docs/man?/*
424 -
425 - newconfd "${FILESDIR}"/xendomains.confd xendomains
426 - newconfd "${FILESDIR}"/xenstored.confd xenstored
427 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
428 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
429 - newinitd "${FILESDIR}"/xenstored.initd xenstored
430 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
431 - newinitd "${FILESDIR}"/xencommons.initd xencommons
432 - newconfd "${FILESDIR}"/xencommons.confd xencommons
433 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
434 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
435 -
436 - if use screen; then
437 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
438 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
439 - keepdir /var/log/xen-consoles
440 - fi
441 -
442 - # For -static-libs wrt Bug 384355
443 - if ! use static-libs; then
444 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
445 - fi
446 -
447 - # for xendomains
448 - keepdir /etc/xen/auto
449 -
450 - # Temp QA workaround
451 - dodir "$(get_udevdir)"
452 - mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
453 - rm -rf "${D}"/etc/udev
454 -
455 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
456 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
457 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
458 -}
459 -
460 -pkg_postinst() {
461 - elog "Official Xen Guide and the offical wiki page:"
462 - elog "https://wiki.gentoo.org/wiki/Xen"
463 - elog "http://wiki.xen.org/wiki/Main_Page"
464 - elog ""
465 - elog "Recommended to utilise the xencommons script to config sytem At boot"
466 - elog "Add by use of rc-update on completion of the install"
467 -
468 - # TODO: we need to have the current Python slot here.
469 - if ! has_version "dev-lang/python[ncurses]"; then
470 - echo
471 - ewarn "NB: Your dev-lang/python is built without USE=ncurses."
472 - ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
473 - fi
474 -
475 - if has_version "sys-apps/iproute2[minimal]"; then
476 - echo
477 - ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
478 - ewarn "will not work until you rebuild iproute2 without USE=minimal."
479 - fi
480 -
481 - if ! use hvm; then
482 - echo
483 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
484 - elog "support enable the hvm use flag."
485 - elog "An x86 or amd64 system is required to build HVM support."
486 - fi
487 -
488 - if use qemu; then
489 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
490 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
491 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
492 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
493 - fi
494 -
495 - if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
496 - echo
497 - elog "xensv is broken upstream (Gentoo bug #142011)."
498 - elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
499 - fi
500 -}