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