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: Sun, 29 Nov 2015 07:57:07
Message-Id: 1448783810.0dc0f01fedc4c51ea1b7b9ebfbeec16ac4439cbd.idella4@gentoo
1 commit: 0dc0f01fedc4c51ea1b7b9ebfbeec16ac4439cbd
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 07:55:34 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 07:56:50 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dc0f01f
7
8 app-emulation/xen-tools: clean old vns.: 4.5.1-r3, 4.6.0-r1
9
10 Package-Manager: portage-2.2.24
11
12 app-emulation/xen-tools/Manifest | 2 -
13 app-emulation/xen-tools/xen-tools-4.5.1-r3.ebuild | 458 ----------------------
14 app-emulation/xen-tools/xen-tools-4.6.0-r1.ebuild | 458 ----------------------
15 3 files changed, 918 deletions(-)
16
17 diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
18 index e0d8fa6..ae27247 100644
19 --- a/app-emulation/xen-tools/Manifest
20 +++ b/app-emulation/xen-tools/Manifest
21 @@ -5,8 +5,6 @@ DIST seabios-1.8.2.tar.gz 538497 SHA256 f59479307fdae840de398b75aacb2333c8eba24a
22 DIST xen-4.2.5-upstream-patches-10.tar.xz 41428 SHA256 b29ce85b049420838c3386b67184f4ba56794846d056837fa780ae89a80b40d0 SHA512 9e8046e27506d864e2d69728897cbba3eea1dd5ca748a3febb722901c5a67cca2ab49bb420071292538bd0345023fa337eb2d176b9ca05ca6bce47562f6710ec WHIRLPOOL 29e534ef6b951cf220a3a9476d1f76ac344bfc5c74998f2b472ec83cbe4781746298272e3c1fe8661a838cbc7d734d2730de6a1e9985b8a60f40c98f54449e2a
23 DIST xen-4.2.5-upstream-patches-9.tar.xz 23208 SHA256 2206e9a8aeeed207abbae995c5d2baa14d5f0da4120ae44f2de733ecf7ea5af1 SHA512 8a2edaba48002449a521edf2ae078ffe1b3db4f491a85b063886a147a0be3ec7fdb819ce84c90cdae80ed34c10ab2d637506700be10052a67be6ef128fa40fb1 WHIRLPOOL 037820e0fad60d1f7ed054efa797585c992d08f1ffd533705c515ad289f8cdddc72b97f2a3d75ebd683c6bb6988d7285452b4f3cebbe9a879f701156e387ff3b
24 DIST xen-4.2.5.tar.gz 15671925 SHA256 3cf440866315e8085050eb0586f0447b6b47a08dbed6a72226bf5ed5d89ec567 SHA512 42c0fc241952fc55fc44480fb6752b004b54ae40e946159ec047adf229b65cbfbd810271d01b064ad8fdbddb73c640dcdcb6bc19f91e8968829889c129920dac WHIRLPOOL 762a91c0111892b33e6bd3e7f7714709b04697ad7c2b0919fef6cc9570a343a77fd5a2b82833e75dac9d12d4e41acdcf0743b0d593595910ddd326f5cd721368
25 -DIST xen-4.5.1-upstream-patches-0.tar.xz 18236 SHA256 95910023cb99f11b4df6d57d82000bbd67714d4ed0700e152619c5b82c1bc6e5 SHA512 531e5bbe6b9920a58361f11bb1bb6df65ebaf01e3af13f9aca018e8512727d950009257dfc9b3d0b0f847968da499cf9423716de8a04869cec6f92f5274462e2 WHIRLPOOL 3e6dda862d1bbe736b85422117148c3db91a308a58eb1476e27bbb7355ea7793269cdfc489697c9e5eea5f0ac5319df5c88f2707b10c9a96b8142927a4169819
26 -DIST xen-4.5.1.tar.gz 18410400 SHA256 668c11d4fca67ac44329e369f810356eacd37b28d28fb96e66aac77f3c5e1371 SHA512 9436243e26bc64bc836a179abdc3a6b1b6fa9d3f2170453092c18be71fa62e18cd4465a9154c0f28a7ac8d69d08361ba1defef240a51197f058c012c3855ba04 WHIRLPOOL 71d8559f86683dd9fb3eb09d3f602de227f281fbd3c8cc258bfdb67c425d9e7c4d21cb0284c123e4263262c1b821fea6d28109861ce60d627f6426d352808d99
27 DIST xen-4.5.2.tar.gz 18416220 SHA256 4c9e5dac4eea484974e9f76da2756c8e0973b4e884d28d37e955df9ebf00e7e8 SHA512 e0ce01a5356c254bfde48fae0b0e005c42c1615a7ccf4c1ba7dcf90784777b53995e9a9ae4575e3f19ef341014b34cb8c06e39d68be359f7fd69830501a144dd WHIRLPOOL b50ce28e58d8419915f7f85de7ab23128719fa07c54f28165c4ba864ffe57230230fa7cb61dd2ed7608b8bc178a072124aedc30c61a45fb8b745fc616715219b
28 DIST xen-4.6.0-upstream-patches-0.tar.xz 19280 SHA256 8ef2d139f86cb52d2208a17c974e5a85356183ee359ab4b91882067548806e0c SHA512 9fde8d9def1d75e50c10069af7f9fea4b5b6992b7089eb554e1e2a4c78dd080f2977128d0dd541eeb735b951e7d6614a07101f7703457e7743ac6b3be962cdfe WHIRLPOOL 861c7f150811912422f6f5eb77437744d1456740a43bef3dfd88a2e6d6836c0e8460b788ccd4f14a7144652d65a825c08aa984ec4240b2b1ac6d09237695d19d
29 DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8
30
31 diff --git a/app-emulation/xen-tools/xen-tools-4.5.1-r3.ebuild b/app-emulation/xen-tools/xen-tools-4.5.1-r3.ebuild
32 deleted file mode 100644
33 index 80484cd..0000000
34 --- a/app-emulation/xen-tools/xen-tools-4.5.1-r3.ebuild
35 +++ /dev/null
36 @@ -1,458 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -# $Id$
40 -
41 -EAPI=5
42 -
43 -MY_PV=${PV/_/-}
44 -
45 -PYTHON_COMPAT=( python2_7 )
46 -PYTHON_REQ_USE='xml,threads'
47 -
48 -if [[ $PV == *9999 ]]; then
49 - KEYWORDS=""
50 - REPO="xen-unstable.hg"
51 - EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
52 - S="${WORKDIR}/${REPO}"
53 - live_eclass="mercurial"
54 -else
55 - KEYWORDS="amd64 ~arm ~arm64 -x86"
56 - UPSTREAM_VER=0
57 - SECURITY_VER=6
58 - # xen-tools's gentoo patches tarball
59 - GENTOO_VER=4
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=1
64 -
65 - SEABIOS_VER=1.7.5
66 - OVMF_PV=20150629
67 -
68 - [[ -n ${UPSTREAM_VER} ]] && \
69 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
70 - [[ -n ${SECURITY_VER} ]] && \
71 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
72 - [[ -n ${GENTOO_VER} ]] && \
73 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
74 - [[ -n ${OVMF_VER} ]] && \
75 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
76 -
77 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
78 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
79 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
80 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
81 - ${OVMF_PATCHSET_URI} )
82 - ${UPSTREAM_PATCHSET_URI}
83 - ${SECURITY_PATCHSET_URI}
84 - ${GENTOO_PATCHSET_URI}"
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 - dev-python/markdown[${PYTHON_USEDEP}]
134 - doc? (
135 - app-doc/doxygen
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 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
221 - for i in ${XEN_SECURITY_QEMUT}; do
222 - EPATCH_SUFFIX="patch" \
223 - EPATCH_FORCE="yes" \
224 - epatch "${WORKDIR}"/patches-security/qemut/$i
225 - done
226 - popd > /dev/null
227 -
228 - # apply qemu-xen/upstream patches
229 - pushd "${S}"/tools/qemu-xen/ > /dev/null
230 - for i in ${XEN_SECURITY_QEMUU}; do
231 - EPATCH_SUFFIX="patch" \
232 - EPATCH_FORCE="yes" \
233 - epatch "${WORKDIR}"/patches-security/qemuu/$i
234 - done
235 - popd > /dev/null
236 - fi
237 -
238 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
239 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
240 - pushd tools/firmware/ > /dev/null
241 - ln -s seabios-dir-remote seabios-dir || die
242 - popd > /dev/null
243 -
244 - # Gentoo's patchset
245 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
246 - einfo "Try to apply Gentoo specific patcheset"
247 - source "${FILESDIR}"/gentoo-patches.conf
248 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
249 - for i in ${!_gpv}; do
250 - EPATCH_SUFFIX="patch" \
251 - EPATCH_FORCE="yes" \
252 - epatch "${WORKDIR}"/patches-gentoo/$i
253 - done
254 - fi
255 -
256 - # Ovmf's patchset
257 - if [[ -n ${OVMF_VER} ]] && use ovmf; then
258 - einfo "Try to apply Ovmf patcheset"
259 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
260 - EPATCH_SUFFIX="patch" \
261 - EPATCH_FORCE="yes" \
262 - EPATCH_OPTS="-p1" \
263 - epatch "${WORKDIR}"/patches-ovmf
264 - popd > /dev/null
265 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
266 - fi
267 -
268 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
269 -
270 - # Fix texi2html build error with new texi2html, qemu.doc.html
271 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
272 -
273 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
274 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
275 - -i tools/firmware/Makefile || die
276 -
277 - # Drop .config, fixes to gcc-4.6
278 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
279 -
280 - # if the user *really* wants to use their own custom-cflags, let them
281 - if use custom-cflags; then
282 - einfo "User wants their own CFLAGS - removing defaults"
283 -
284 - # try and remove all the default cflags
285 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
286 - -exec sed \
287 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
288 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
289 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
290 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
291 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
292 - -i {} + || die "failed to re-set custom-cflags"
293 - fi
294 -
295 - if ! use pygrub; then
296 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
297 - fi
298 -
299 - if ! use python; then
300 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
301 - fi
302 -
303 - if ! use hvm; then
304 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
305 - # Bug 351648
306 - elif ! use x86 && ! has x86 $(get_all_abis); then
307 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
308 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
309 - export CPATH="${WORKDIR}"/extra-headers
310 - fi
311 -
312 - # Don't bother with qemu, only needed for fully virtualised guests
313 - if ! use qemu; then
314 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
315 - fi
316 -
317 - # Reset bash completion dir; Bug 472438
318 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
319 - -i Config.mk || die
320 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
321 -
322 - # xencommons, Bug #492332, sed lighter weight than patching
323 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
324 - -i tools/hotplug/Linux/init.d/xencommons.in || die
325 -
326 - # respect multilib, usr/lib/libcacard.so.0.0.0
327 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
328 - -i tools/qemu-xen/configure || die
329 -
330 - #bug 518136, don't build 32bit exactuable for nomultilib profile
331 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
332 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
333 - fi
334 -
335 - # use /var instead of /var/lib, consistat with previous ebuild
336 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
337 - m4/paths.m4 configure tools/configure || die
338 - # use /run instead of /var/run
339 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
340 - m4/paths.m4 configure tools/configure || die
341 -
342 - # uncomment lines in xl.conf
343 - sed -e 's:^#autoballoon=:autoballoon=:' \
344 - -e 's:^#lockfile=:lockfile=:' \
345 - -e 's:^#vif.default.script=:vif.default.script=:' \
346 - -i tools/examples/xl.conf || die
347 -
348 - epatch_user
349 -}
350 -
351 -src_configure() {
352 - local myconf="--prefix=${PREFIX}/usr \
353 - --libdir=${PREFIX}/usr/$(get_libdir) \
354 - --libexecdir=${PREFIX}/usr/libexec \
355 - --disable-werror \
356 - --disable-xen \
357 - --enable-tools \
358 - --enable-docs \
359 - $(use_with system-qemu) \
360 - $(use_enable pam) \
361 - $(use_enable api xenapi) \
362 - $(use_enable ovmf) \
363 - $(use_enable ocaml ocamltools) \
364 - "
365 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
366 - use qemu || myconf+=" --with-system-qemu"
367 - use amd64 && myconf+=" --enable-qemu-traditional"
368 - econf ${myconf}
369 -}
370 -
371 -src_compile() {
372 - export VARTEXFONTS="${T}/fonts"
373 - local myopt
374 - use debug && myopt="${myopt} debug=y"
375 -
376 - use custom-cflags || unset CFLAGS
377 - if test-flag-CC -fno-strict-overflow; then
378 - append-flags -fno-strict-overflow
379 - fi
380 -
381 - unset LDFLAGS
382 - unset CFLAGS
383 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
384 -
385 - use doc && emake -C docs txt html
386 - emake -C docs man-pages
387 -}
388 -
389 -src_install() {
390 - # Override auto-detection in the build system, bug #382573
391 - export INITD_DIR=/tmp/init.d
392 - export CONFIG_LEAF_DIR=../tmp/default
393 -
394 - # Let the build system compile installed Python modules.
395 - local PYTHONDONTWRITEBYTECODE
396 - export PYTHONDONTWRITEBYTECODE
397 -
398 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
399 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
400 -
401 - # Fix the remaining Python shebangs.
402 - python_fix_shebang "${D}"
403 -
404 - # Remove RedHat-specific stuff
405 - rm -rf "${D}"tmp || die
406 -
407 - if use doc; then
408 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
409 -
410 - dohtml -r docs/
411 - docinto pdf
412 - dodoc ${DOCS[@]}
413 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
414 - fi
415 -
416 - rm -rf "${D}"/usr/share/doc/xen/
417 - doman docs/man?/*
418 -
419 - newconfd "${FILESDIR}"/xendomains.confd xendomains
420 - newconfd "${FILESDIR}"/xenstored.confd xenstored
421 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
422 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
423 - newinitd "${FILESDIR}"/xenstored.initd xenstored
424 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
425 - newinitd "${FILESDIR}"/xencommons.initd xencommons
426 - newconfd "${FILESDIR}"/xencommons.confd xencommons
427 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
428 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
429 -
430 - if use screen; then
431 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
432 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
433 - keepdir /var/log/xen-consoles
434 - fi
435 -
436 - # For -static-libs wrt Bug 384355
437 - if ! use static-libs; then
438 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
439 - fi
440 -
441 - # for xendomains
442 - keepdir /etc/xen/auto
443 -
444 - # Temp QA workaround
445 - dodir "$(get_udevdir)"
446 - mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
447 - rm -rf "${D}"/etc/udev
448 -
449 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
450 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
451 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
452 -}
453 -
454 -pkg_postinst() {
455 - elog "Official Xen Guide and the offical wiki page:"
456 - elog "https://wiki.gentoo.org/wiki/Xen"
457 - elog "http://wiki.xen.org/wiki/Main_Page"
458 - elog ""
459 - elog "Recommended to utilise the xencommons script to config sytem At boot"
460 - elog "Add by use of rc-update on completion of the install"
461 -
462 - # TODO: we need to have the current Python slot here.
463 - if ! has_version "dev-lang/python[ncurses]"; then
464 - echo
465 - ewarn "NB: Your dev-lang/python is built without USE=ncurses."
466 - ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
467 - fi
468 -
469 - if has_version "sys-apps/iproute2[minimal]"; then
470 - echo
471 - ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
472 - ewarn "will not work until you rebuild iproute2 without USE=minimal."
473 - fi
474 -
475 - if ! use hvm; then
476 - echo
477 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
478 - elog "support enable the hvm use flag."
479 - elog "An x86 or amd64 system is required to build HVM support."
480 - fi
481 -
482 - if use qemu; then
483 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
484 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
485 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
486 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
487 - fi
488 -
489 - if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
490 - echo
491 - elog "xensv is broken upstream (Gentoo bug #142011)."
492 - elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
493 - fi
494 -}
495
496 diff --git a/app-emulation/xen-tools/xen-tools-4.6.0-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.6.0-r1.ebuild
497 deleted file mode 100644
498 index 4b02971..0000000
499 --- a/app-emulation/xen-tools/xen-tools-4.6.0-r1.ebuild
500 +++ /dev/null
501 @@ -1,458 +0,0 @@
502 -# Copyright 1999-2015 Gentoo Foundation
503 -# Distributed under the terms of the GNU General Public License v2
504 -# $Id$
505 -
506 -EAPI=5
507 -
508 -MY_PV=${PV/_/-}
509 -
510 -PYTHON_COMPAT=( python2_7 )
511 -PYTHON_REQ_USE='xml,threads'
512 -
513 -if [[ $PV == *9999 ]]; then
514 - KEYWORDS=""
515 - REPO="xen-unstable.hg"
516 - EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
517 - S="${WORKDIR}/${REPO}"
518 - live_eclass="mercurial"
519 -else
520 - KEYWORDS="~amd64 ~arm ~arm64 -x86"
521 - UPSTREAM_VER=0
522 - SECURITY_VER=7
523 - # xen-tools's gentoo patches tarball
524 - GENTOO_VER=4
525 - # xen-tools's gentoo patches version which apply to this specific ebuild
526 - GENTOO_GPV=0
527 - # xen-tools ovmf's patches
528 - OVMF_VER=1
529 -
530 - SEABIOS_VER=1.7.5
531 - OVMF_PV=20150629
532 -
533 - [[ -n ${UPSTREAM_VER} ]] && \
534 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
535 - [[ -n ${SECURITY_VER} ]] && \
536 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
537 - [[ -n ${GENTOO_VER} ]] && \
538 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
539 - [[ -n ${OVMF_VER} ]] && \
540 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
541 -
542 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
543 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
544 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
545 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
546 - ${OVMF_PATCHSET_URI} )
547 - ${UPSTREAM_PATCHSET_URI}
548 - ${SECURITY_PATCHSET_URI}
549 - ${GENTOO_PATCHSET_URI}"
550 - S="${WORKDIR}/xen-${MY_PV}"
551 -fi
552 -
553 -inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
554 -
555 -DESCRIPTION="Xend daemon and tools"
556 -HOMEPAGE="http://xen.org/"
557 -DOCS=( README docs/README.xen-bugtool )
558 -
559 -LICENSE="GPL-2"
560 -SLOT="0"
561 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
562 -# >=dev-lang/ocaml-4 stable
563 -# Masked in profiles/eapi-5-files instead
564 -IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam python pygrub screen static-libs system-qemu system-seabios"
565 -
566 -REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
567 - ${PYTHON_REQUIRED_USE}
568 - pygrub? ( python )
569 - ovmf? ( hvm )
570 - qemu? ( !system-qemu )"
571 -
572 -COMMON_DEPEND="
573 - dev-libs/lzo:2
574 - dev-libs/glib:2
575 - dev-libs/yajl
576 - dev-libs/libaio
577 - dev-libs/libgcrypt:0
578 - sys-libs/zlib
579 -"
580 -
581 -DEPEND="${COMMON_DEPEND}
582 - dev-python/lxml[${PYTHON_USEDEP}]
583 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
584 - hvm? ( media-libs/libsdl )
585 - ${PYTHON_DEPS}
586 - api? ( dev-libs/libxml2
587 - net-misc/curl )
588 - pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
589 - ovmf? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/sqlite} )
590 - !amd64? ( >=sys-apps/dtc-1.4.0 )
591 - amd64? ( sys-devel/bin86
592 - system-seabios? ( sys-firmware/seabios )
593 - sys-firmware/ipxe
594 - sys-devel/dev86
595 - sys-power/iasl )
596 - dev-lang/perl
597 - app-misc/pax-utils
598 - dev-python/markdown[${PYTHON_USEDEP}]
599 - doc? (
600 - app-doc/doxygen
601 - dev-tex/latex2html[png,gif]
602 - media-gfx/graphviz
603 - dev-tex/xcolor
604 - media-gfx/transfig
605 - dev-texlive/texlive-latexextra
606 - virtual/latex-base
607 - dev-tex/latexmk
608 - dev-texlive/texlive-latex
609 - dev-texlive/texlive-pictures
610 - dev-texlive/texlive-latexrecommended
611 - )
612 - hvm? ( x11-proto/xproto
613 - !net-libs/libiscsi )
614 - qemu? ( x11-libs/pixman )
615 - system-qemu? ( app-emulation/qemu[xen] )
616 - ocaml? ( dev-ml/findlib
617 - >=dev-lang/ocaml-4 )"
618 -
619 -RDEPEND="${COMMON_DEPEND}
620 - sys-apps/iproute2
621 - net-misc/bridge-utils
622 - screen? (
623 - app-misc/screen
624 - app-admin/logrotate
625 - )
626 - virtual/udev"
627 -
628 -# hvmloader is used to bootstrap a fully virtualized kernel
629 -# Approved by QA team in bug #144032
630 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
631 - usr/share/qemu-xen/qemu/s390-ccw.img"
632 -
633 -RESTRICT="test"
634 -
635 -pkg_setup() {
636 - python-single-r1_pkg_setup
637 - export "CONFIG_LOMOUNT=y"
638 -
639 - #bug 522642, disable compile tools/tests
640 - export "CONFIG_TESTS=n"
641 -
642 - if has_version dev-libs/libgcrypt:0; then
643 - export "CONFIG_GCRYPT=y"
644 - fi
645 -
646 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
647 - if use x86 && use amd64; then
648 - die "Confusion! Both x86 and amd64 are set in your use flags!"
649 - elif use x86; then
650 - export XEN_TARGET_ARCH="x86_32"
651 - elif use amd64 ; then
652 - export XEN_TARGET_ARCH="x86_64"
653 - elif use arm; then
654 - export XEN_TARGET_ARCH="arm32"
655 - elif use arm64; then
656 - export XEN_TARGET_ARCH="arm64"
657 - else
658 - die "Unsupported architecture!"
659 - fi
660 - fi
661 -}
662 -
663 -src_prepare() {
664 - # Upstream's patchset
665 - if [[ -n ${UPSTREAM_VER} ]]; then
666 - einfo "Try to apply Xen Upstream patcheset"
667 - EPATCH_SUFFIX="patch" \
668 - EPATCH_FORCE="yes" \
669 - EPATCH_OPTS="-p1" \
670 - epatch "${WORKDIR}"/patches-upstream
671 - fi
672 -
673 - # Security patchset
674 - if [[ -n ${SECURITY_VER} ]]; then
675 - einfo "Try to apply Xen Security patcheset"
676 - source "${WORKDIR}"/patches-security/${PV}.conf
677 - # apply main xen patches
678 - for i in ${XEN_SECURITY_MAIN}; do
679 - EPATCH_SUFFIX="patch" \
680 - EPATCH_FORCE="yes" \
681 - epatch "${WORKDIR}"/patches-security/xen/$i
682 - done
683 -
684 - # apply qemu-traditional patches
685 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
686 - for i in ${XEN_SECURITY_QEMUT}; do
687 - EPATCH_SUFFIX="patch" \
688 - EPATCH_FORCE="yes" \
689 - epatch "${WORKDIR}"/patches-security/qemut/$i
690 - done
691 - popd > /dev/null
692 -
693 - # apply qemu-xen/upstream patches
694 - pushd "${S}"/tools/qemu-xen/ > /dev/null
695 - for i in ${XEN_SECURITY_QEMUU}; do
696 - EPATCH_SUFFIX="patch" \
697 - EPATCH_FORCE="yes" \
698 - epatch "${WORKDIR}"/patches-security/qemuu/$i
699 - done
700 - popd > /dev/null
701 - fi
702 -
703 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
704 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
705 - pushd tools/firmware/ > /dev/null
706 - ln -s seabios-dir-remote seabios-dir || die
707 - popd > /dev/null
708 -
709 - # Gentoo's patchset
710 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
711 - einfo "Try to apply Gentoo specific patcheset"
712 - source "${FILESDIR}"/gentoo-patches.conf
713 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
714 - for i in ${!_gpv}; do
715 - EPATCH_SUFFIX="patch" \
716 - EPATCH_FORCE="yes" \
717 - epatch "${WORKDIR}"/patches-gentoo/$i
718 - done
719 - fi
720 -
721 - # Ovmf's patchset
722 - if [[ -n ${OVMF_VER} ]] && use ovmf; then
723 - einfo "Try to apply Ovmf patcheset"
724 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
725 - EPATCH_SUFFIX="patch" \
726 - EPATCH_FORCE="yes" \
727 - EPATCH_OPTS="-p1" \
728 - epatch "${WORKDIR}"/patches-ovmf
729 - popd > /dev/null
730 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
731 - fi
732 -
733 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
734 -
735 - # Fix texi2html build error with new texi2html, qemu.doc.html
736 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
737 -
738 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
739 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
740 - -i tools/firmware/Makefile || die
741 -
742 - # Drop .config, fixes to gcc-4.6
743 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
744 -
745 - # if the user *really* wants to use their own custom-cflags, let them
746 - if use custom-cflags; then
747 - einfo "User wants their own CFLAGS - removing defaults"
748 -
749 - # try and remove all the default cflags
750 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
751 - -exec sed \
752 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
753 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
754 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
755 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
756 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
757 - -i {} + || die "failed to re-set custom-cflags"
758 - fi
759 -
760 - if ! use pygrub; then
761 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
762 - fi
763 -
764 - if ! use python; then
765 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
766 - fi
767 -
768 - if ! use hvm; then
769 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
770 - # Bug 351648
771 - elif ! use x86 && ! has x86 $(get_all_abis); then
772 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
773 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
774 - export CPATH="${WORKDIR}"/extra-headers
775 - fi
776 -
777 - # Don't bother with qemu, only needed for fully virtualised guests
778 - if ! use qemu; then
779 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
780 - fi
781 -
782 - # Reset bash completion dir; Bug 472438
783 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
784 - -i Config.mk || die
785 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
786 -
787 - # xencommons, Bug #492332, sed lighter weight than patching
788 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
789 - -i tools/hotplug/Linux/init.d/xencommons.in || die
790 -
791 - # respect multilib, usr/lib/libcacard.so.0.0.0
792 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
793 - -i tools/qemu-xen/configure || die
794 -
795 - #bug 518136, don't build 32bit exactuable for nomultilib profile
796 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
797 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
798 - fi
799 -
800 - # use /var instead of /var/lib, consistat with previous ebuild
801 - sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
802 - m4/paths.m4 configure tools/configure || die
803 - # use /run instead of /var/run
804 - sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
805 - m4/paths.m4 configure tools/configure || die
806 -
807 - # uncomment lines in xl.conf
808 - sed -e 's:^#autoballoon=:autoballoon=:' \
809 - -e 's:^#lockfile=:lockfile=:' \
810 - -e 's:^#vif.default.script=:vif.default.script=:' \
811 - -i tools/examples/xl.conf || die
812 -
813 - epatch_user
814 -}
815 -
816 -src_configure() {
817 - local myconf="--prefix=${PREFIX}/usr \
818 - --libdir=${PREFIX}/usr/$(get_libdir) \
819 - --libexecdir=${PREFIX}/usr/libexec \
820 - --disable-werror \
821 - --disable-xen \
822 - --enable-tools \
823 - --enable-docs \
824 - $(use_with system-qemu) \
825 - $(use_enable pam) \
826 - $(use_enable api xenapi) \
827 - $(use_enable ovmf) \
828 - $(use_enable ocaml ocamltools) \
829 - "
830 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
831 - use qemu || myconf+=" --with-system-qemu"
832 - use amd64 && myconf+=" --enable-qemu-traditional"
833 - econf ${myconf}
834 -}
835 -
836 -src_compile() {
837 - export VARTEXFONTS="${T}/fonts"
838 - local myopt
839 - use debug && myopt="${myopt} debug=y"
840 -
841 - use custom-cflags || unset CFLAGS
842 - if test-flag-CC -fno-strict-overflow; then
843 - append-flags -fno-strict-overflow
844 - fi
845 -
846 - unset LDFLAGS
847 - unset CFLAGS
848 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
849 -
850 - use doc && emake -C docs txt html
851 - emake -C docs man-pages
852 -}
853 -
854 -src_install() {
855 - # Override auto-detection in the build system, bug #382573
856 - export INITD_DIR=/tmp/init.d
857 - export CONFIG_LEAF_DIR=../tmp/default
858 -
859 - # Let the build system compile installed Python modules.
860 - local PYTHONDONTWRITEBYTECODE
861 - export PYTHONDONTWRITEBYTECODE
862 -
863 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
864 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
865 -
866 - # Fix the remaining Python shebangs.
867 - python_fix_shebang "${D}"
868 -
869 - # Remove RedHat-specific stuff
870 - rm -rf "${D}"tmp || die
871 -
872 - if use doc; then
873 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
874 -
875 - dohtml -r docs/
876 - docinto pdf
877 - dodoc ${DOCS[@]}
878 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
879 - fi
880 -
881 - rm -rf "${D}"/usr/share/doc/xen/
882 - doman docs/man?/*
883 -
884 - newconfd "${FILESDIR}"/xendomains.confd xendomains
885 - newconfd "${FILESDIR}"/xenstored.confd xenstored
886 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
887 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
888 - newinitd "${FILESDIR}"/xenstored.initd xenstored
889 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
890 - newinitd "${FILESDIR}"/xencommons.initd xencommons
891 - newconfd "${FILESDIR}"/xencommons.confd xencommons
892 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
893 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
894 -
895 - if use screen; then
896 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
897 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
898 - keepdir /var/log/xen-consoles
899 - fi
900 -
901 - # For -static-libs wrt Bug 384355
902 - if ! use static-libs; then
903 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
904 - fi
905 -
906 - # for xendomains
907 - keepdir /etc/xen/auto
908 -
909 - # Temp QA workaround
910 - dodir "$(get_udevdir)"
911 - mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
912 - rm -rf "${D}"/etc/udev
913 -
914 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
915 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
916 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
917 -}
918 -
919 -pkg_postinst() {
920 - elog "Official Xen Guide and the offical wiki page:"
921 - elog "https://wiki.gentoo.org/wiki/Xen"
922 - elog "http://wiki.xen.org/wiki/Main_Page"
923 - elog ""
924 - elog "Recommended to utilise the xencommons script to config sytem At boot"
925 - elog "Add by use of rc-update on completion of the install"
926 -
927 - # TODO: we need to have the current Python slot here.
928 - if ! has_version "dev-lang/python[ncurses]"; then
929 - echo
930 - ewarn "NB: Your dev-lang/python is built without USE=ncurses."
931 - ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
932 - fi
933 -
934 - if has_version "sys-apps/iproute2[minimal]"; then
935 - echo
936 - ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
937 - ewarn "will not work until you rebuild iproute2 without USE=minimal."
938 - fi
939 -
940 - if ! use hvm; then
941 - echo
942 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
943 - elog "support enable the hvm use flag."
944 - elog "An x86 or amd64 system is required to build HVM support."
945 - fi
946 -
947 - if use qemu; then
948 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
949 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
950 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
951 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
952 - fi
953 -
954 - if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
955 - echo
956 - elog "xensv is broken upstream (Gentoo bug #142011)."
957 - elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
958 - fi
959 -}