Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen-tools/files/, app-emulation/xen-tools/
Date: Sat, 30 Sep 2017 05:40:16
Message-Id: 1506749666.48ab7134b69b578d5b82d80f687c1d6fe375f715.dlan@gentoo
1 commit: 48ab7134b69b578d5b82d80f687c1d6fe375f715
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 30 05:20:58 2017 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 30 05:34:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48ab7134
7
8 app-emulation/xen-tools: drop old, 4.8.2
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11
12 app-emulation/xen-tools/Manifest | 3 -
13 app-emulation/xen-tools/files/gentoo-patches.conf | 9 -
14 app-emulation/xen-tools/xen-tools-4.8.1-r1.ebuild | 449 ----------------------
15 app-emulation/xen-tools/xen-tools-4.8.1.ebuild | 449 ----------------------
16 4 files changed, 910 deletions(-)
17
18 diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
19 index c8593983685..c3c3b0b7a95 100644
20 --- a/app-emulation/xen-tools/Manifest
21 +++ b/app-emulation/xen-tools/Manifest
22 @@ -4,12 +4,9 @@ DIST seabios-1.8.2.tar.gz 538497 SHA256 f59479307fdae840de398b75aacb2333c8eba24a
23 DIST xen-4.7.2-upstream-patches-0.tar.xz 45944 SHA256 e7783bc9adc939167eaef91e96fda506d2d52815f709b31952229891357e6b67 SHA512 6d4e23fb5a63fd191f893e31194b6397a394956846f356ae0119c656a92e7e22296e728286a98109b64a5736241b2317969f54915e7b487b4d7a64aae534614c WHIRLPOOL e185ce40085559d00a302eae8814b4c013817a5e4c0a2a9c56a6b4983b38e7103e44d0407fa78ea79fdbe8eefde346b994812851d8b4bad0bf08cb5721507c37
24 DIST xen-4.7.2.tar.gz 20714281 SHA256 61494a56d9251e2108080f95b0dc8e3d175f1ba4da34603fc07b91cfebf358d5 SHA512 8f447e7feffec81fea5b5a4098968b8b8cebc6989e7b6a845413317644d5d328d6f12181d09266366200878ab6a29ab34c7235c1af7b55463a3fdaea40ee1500 WHIRLPOOL 27f3fd88846724e03bf9bb53133046cb79139950c9162dd9c9a85798e169259f73dc2fe4212e750ce9a8fd1d0abd99f1f76108faceb7bf1934ce0495377ee756
25 DIST xen-4.7.3.tar.gz 20722625 SHA256 5b5385b476e59e4cf31ecc6dd605df38814b83432b8e8d917f18c8edfdfb708f SHA512 df596bef7f0f0e7f35246fb025913721dae5aa91da27f1b47a49256e9faa8f7dcb80e8c4679345c19614093c02059b6ced54fc51e6900a372b0e76b4ad827126 WHIRLPOOL 9e88db149e216651711cd56830fba33d587de60d57d53fd3ab3db231319f74e4e88222bf1b2bb9b20fea68739bccd4b26304c73a0ae25aad6dbbac64681e3a62
26 -DIST xen-4.8.1-upstream-patches-0.tar.xz 57132 SHA256 6a6d466e74b28e50cc8ffcf56f6e3853dff73a5d936374404a2aab9dadb54566 SHA512 bcf43f7f9c15016576f225146a34e26122a6e35d953ca8df05d6d3b6b2465bd8e237e824d3d84dfd892f440b40d6e6b3bb7c16c3c79b8e04534b2bed60877f53 WHIRLPOOL 4470d244bed58f9b71a031da19cfe38a79badf426300637211c3e8dfdab02f2b87ed21d9a5340af267685aafd627451f8750b85d9afc73ed2a550c52b43c31ab
27 -DIST xen-4.8.1.tar.gz 22516631 SHA256 1d69153b94561429293015f66463ee17c26404d1c014e646ecbcca6078581395 SHA512 9f535b4bb57d285dfb92c974d55513505cf485b2d7218fe8f6ed62768e2cee7f225b08adf6706590b2c0a04feca16e10915297c33b98e1b110f8ea7035f46c15 WHIRLPOOL ea367d4d08eaa464417f6c5e7143a52e085a8d0e515c99cbb49ac3ccd5c189aa79947d233754177698a076c28abf7a32c83ae29019ca70c6300839b09ca67bad
28 DIST xen-4.8.2-upstream-patches-0.tar.xz 7540 SHA256 d4bd4ce76097c49ebbad67a64814b9b41af0528b390ade15814cf0fb144e5e77 SHA512 34118ac114773cfc01a464de2a93b14905d3fb5edd62ae093f6cb40758f89c7fdc8449d0b7e9bfbaaee812b6f32b0c21860adeebb609376a22ce231e405b0837 WHIRLPOOL 0ff8c2fe3c349e6dc85e98644a813dd590c42bc78c6bbf98cdf77ed516e73fe5ca72a44935eae77f6ff9dcba8fef5d24c181d24b63b15bc470e7ed59098d5808
29 DIST xen-4.8.2.tar.gz 22522336 SHA256 cb1cc2f0985e3d8651215e5d24c1fcc3036994fa7cc495a5091a2c85ece2aff9 SHA512 7805531f73d23ecfff3439770e62d387f4254a444875670d53a0a739323e5d4d8f8fcc478f8936ee1ae8aff3e0229549e47c01c606365a8ce060dd5c503e87da WHIRLPOOL 8e54e79219f89640162673da471a02ee8a39bb884e2376a79a09226462903185b49a771fef51ceca54c4dd42a110ee1214db6dbf94235a156a17d6c597634c3d
30 DIST xen-gentoo-patches-10.tar.xz 27876 SHA256 aa91759d25611afa2e851e190c8445b18e4262037fc06da886f2fa4a4c500b94 SHA512 2033f4cb671971c73841cfaa7eb46623c37778c5746b47302eee252c4af287ccbeb8d1884ffdf32cd97a38cd7785257d56f13ef20d4c03dc0fb1cb196dc04ece WHIRLPOOL e02cc3c6ffd701b2f04df111ab33b18f7fa09e292b94a34af4d806509a564b896a7b677ab64654523ee992f363d59bf6bd4c2cbeaea7330f368cf657bfa2d538
31 DIST xen-gentoo-patches-9.tar.xz 27456 SHA256 67c410d12ef4628a8c0a931e5868b425f2eb4b2f0e307304a75384cbe509734b SHA512 9a797be9dd2392c34b3f6561c2274e116b4f5b114f4520dbbd0b51818c774479ceabb45aa916f93c1a2bc49787f4ca6e6c83bc743baa6bdeef91d77276b20f36 WHIRLPOOL c41cde532726bb55acd05d558b35d575b229d2ee64eba7438f7b196df313f0e44154148c1e47bf6e8c810667b3b237bcfa410371b4bb6f097b981f6b2637ead3
32 DIST xen-ovmf-patches-2.tar.xz 4344 SHA256 495d61d718440057f8b0b54fb57061450dd764c6e87fe5f8bda1785bcddba770 SHA512 0bdc83029a01b613f5c1ca029bd45aebe211c332f09db91a0cc7d6b6f85a81dbbfdc20c62f0d20e973ee41b155a6551a4fad518cb792e1d508bf070e23d6a1d3 WHIRLPOOL 8346d68fa5d2a8e8a5c007b55e2b85cf48df045cc8c4818f09c756d28a52dd856671f37b4a53478e9b96ca9d2eca0c67fd15f009a94d1d2dfed8e83e596d9633
33 DIST xen-security-patches-25.tar.xz 9208 SHA256 ceaa520d4d98ab7b6ce5b58c380499372cb513dda0c8236106cdf878385d4458 SHA512 18539c1f42bc95a06f7b06855614fafb4ed7c07a145d9ab90e02954ba405d21fc4c379908e3233ddfb85ccaa04515b261ac4bbf3987ce00e4479158f03edd917 WHIRLPOOL 4cff34c29a5c38e6a5bd0d4f4fe89d8daf944740934b05cd61f4b8a345ddb4d8a8b2de6db27a723154169e3f28d5b34a43eddd08c909cfa3d6d5aee26fcae693
34 -DIST xen-security-patches-27.tar.xz 2604 SHA256 a8d01bc309894cb1bbde7a264003b873b77d1b4a1cb5c917b25a51e1b068f85b SHA512 ed9ef5ca3a39635a5ebbdc88663ea32f48c12e8ac1f193b8a66486bb62da692add38c5a89051753c992294528b4b4e92d121997317032a864f46776cb91d1897 WHIRLPOOL 07e2321959664083000a6cc90f30fa2365e206e8c1cc22e74afb085760e2c6378ba51f4ebcbf2b433c0d7a8ad9d98d0f43adb423b1bffc6a00eade362e1c59f5
35
36 diff --git a/app-emulation/xen-tools/files/gentoo-patches.conf b/app-emulation/xen-tools/files/gentoo-patches.conf
37 index 8936a3bbea0..318cdc33ce8 100644
38 --- a/app-emulation/xen-tools/files/gentoo-patches.conf
39 +++ b/app-emulation/xen-tools/files/gentoo-patches.conf
40 @@ -119,15 +119,6 @@ ${_gx028} ${_gx029} ${_gx036}
41 ${_gx037} ${_gx040}
42 "
43
44 -# xen-tools-4.8.1 patches set
45 -_gpv_xen_tools_481_0="
46 -${_gx008}
47 -${_gx038} ${_gx017} ${_gx039}
48 -${_gx027} ${_gx032}
49 -${_gx028} ${_gx029}
50 -${_gx037} ${_gx040}
51 -"
52 -
53 # xen-tools-4.8.2 patches set
54 _gpv_xen_tools_482_0="
55 ${_gx008}
56
57 diff --git a/app-emulation/xen-tools/xen-tools-4.8.1-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.8.1-r1.ebuild
58 deleted file mode 100644
59 index 4653c90e562..00000000000
60 --- a/app-emulation/xen-tools/xen-tools-4.8.1-r1.ebuild
61 +++ /dev/null
62 @@ -1,449 +0,0 @@
63 -# Copyright 1999-2017 Gentoo Foundation
64 -# Distributed under the terms of the GNU General Public License v2
65 -
66 -EAPI=5
67 -
68 -PYTHON_COMPAT=( python2_7 )
69 -PYTHON_REQ_USE='ncurses,xml,threads'
70 -
71 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
72 -
73 -MY_PV=${PV/_/-}
74 -MAJOR_V="$(get_version_component_range 1-2)"
75 -
76 -if [[ $PV == *9999 ]]; then
77 - inherit git-r3
78 - KEYWORDS=""
79 - REPO="xen.git"
80 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
81 - S="${WORKDIR}/${REPO}"
82 -else
83 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
84 - UPSTREAM_VER=0
85 - SECURITY_VER=27
86 - # xen-tools's gentoo patches tarball
87 - GENTOO_VER=9
88 - # xen-tools's gentoo patches version which apply to this specific ebuild
89 - GENTOO_GPV=0
90 - # xen-tools ovmf's patches
91 - OVMF_VER=2
92 -
93 - SEABIOS_VER=1.10.0
94 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
95 - OVMF_PV=20151110
96 -
97 - [[ -n ${UPSTREAM_VER} ]] && \
98 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
99 - [[ -n ${SECURITY_VER} ]] && \
100 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
101 - [[ -n ${GENTOO_VER} ]] && \
102 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
103 - [[ -n ${OVMF_VER} ]] && \
104 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
105 -
106 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
107 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
108 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
109 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
110 - ${OVMF_PATCHSET_URI} )
111 - ${UPSTREAM_PATCHSET_URI}
112 - ${SECURITY_PATCHSET_URI}
113 - ${GENTOO_PATCHSET_URI}"
114 -
115 - S="${WORKDIR}/xen-${MY_PV}"
116 -fi
117 -
118 -DESCRIPTION="Xen tools including QEMU and xl"
119 -HOMEPAGE="http://xen.org/"
120 -DOCS=( README docs/README.xen-bugtool )
121 -
122 -LICENSE="GPL-2"
123 -SLOT="0/${MAJOR_V}"
124 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
125 -# >=dev-lang/ocaml-4 stable
126 -# Masked in profiles/eapi-5-files instead
127 -IUSE="api custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
128 -
129 -REQUIRED_USE="
130 - ${PYTHON_REQUIRED_USE}
131 - pygrub? ( python )
132 - ovmf? ( hvm )
133 - ^^ ( qemu system-qemu )"
134 -
135 -COMMON_DEPEND="
136 - dev-libs/lzo:2
137 - dev-libs/glib:2
138 - dev-libs/yajl
139 - dev-libs/libaio
140 - dev-libs/libgcrypt:0
141 - sys-libs/zlib
142 - ${PYTHON_DEPS}
143 -"
144 -
145 -DEPEND="${COMMON_DEPEND}
146 - dev-python/lxml[${PYTHON_USEDEP}]
147 - x86? ( sys-devel/dev86
148 - sys-power/iasl )
149 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
150 - api? ( dev-libs/libxml2
151 - net-misc/curl )
152 - ovmf? (
153 - !arm? ( !arm64? ( dev-lang/nasm ) )
154 - $(python_gen_impl_dep sqlite)
155 - )
156 - !amd64? ( >=sys-apps/dtc-1.4.0 )
157 - amd64? ( sys-devel/bin86
158 - system-seabios? ( sys-firmware/seabios )
159 - sys-firmware/ipxe
160 - sys-devel/dev86
161 - sys-power/iasl )
162 - dev-lang/perl
163 - app-misc/pax-utils
164 - doc? (
165 - app-doc/doxygen
166 - dev-python/markdown[${PYTHON_USEDEP}]
167 - dev-tex/latex2html[png,gif]
168 - media-gfx/graphviz
169 - dev-tex/xcolor
170 - media-gfx/transfig
171 - dev-texlive/texlive-latexextra
172 - virtual/latex-base
173 - dev-tex/latexmk
174 - dev-texlive/texlive-latex
175 - dev-texlive/texlive-pictures
176 - dev-texlive/texlive-latexrecommended
177 - )
178 - hvm? ( x11-proto/xproto
179 - !net-libs/libiscsi )
180 - qemu? (
181 - x11-libs/pixman
182 - sdl? ( media-libs/libsdl[X] )
183 - )
184 - system-qemu? ( app-emulation/qemu[xen] )
185 - ocaml? ( dev-ml/findlib
186 - >=dev-lang/ocaml-4 )"
187 -
188 -RDEPEND="${COMMON_DEPEND}
189 - sys-apps/iproute2[-minimal]
190 - net-misc/bridge-utils
191 - screen? (
192 - app-misc/screen
193 - app-admin/logrotate
194 - )"
195 -
196 -# hvmloader is used to bootstrap a fully virtualized kernel
197 -# Approved by QA team in bug #144032
198 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
199 - usr/share/qemu-xen/qemu/s390-ccw.img"
200 -
201 -RESTRICT="test"
202 -
203 -pkg_setup() {
204 - python_setup
205 - export "CONFIG_LOMOUNT=y"
206 -
207 - #bug 522642, disable compile tools/tests
208 - export "CONFIG_TESTS=n"
209 -
210 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
211 - if use x86 && use amd64; then
212 - die "Confusion! Both x86 and amd64 are set in your use flags!"
213 - elif use x86; then
214 - export XEN_TARGET_ARCH="x86_32"
215 - elif use amd64 ; then
216 - export XEN_TARGET_ARCH="x86_64"
217 - elif use arm; then
218 - export XEN_TARGET_ARCH="arm32"
219 - elif use arm64; then
220 - export XEN_TARGET_ARCH="arm64"
221 - else
222 - die "Unsupported architecture!"
223 - fi
224 - fi
225 -}
226 -
227 -src_prepare() {
228 - # Upstream's patchset
229 - if [[ -n ${UPSTREAM_VER} ]]; then
230 - einfo "Try to apply Xen Upstream patch set"
231 - EPATCH_SUFFIX="patch" \
232 - EPATCH_FORCE="yes" \
233 - EPATCH_OPTS="-p1" \
234 - epatch "${WORKDIR}"/patches-upstream
235 - fi
236 -
237 - # Security patchset
238 - if [[ -n ${SECURITY_VER} ]]; then
239 - einfo "Try to apply Xen Security patch set"
240 - # apply main xen patches
241 - # Two parallel systems, both work side by side
242 - # Over time they may concdense into one. This will suffice for now
243 - EPATCH_SUFFIX="patch"
244 - EPATCH_FORCE="yes"
245 -
246 - source "${WORKDIR}"/patches-security/${PV}.conf || die
247 -
248 - for i in ${XEN_SECURITY_MAIN}; do
249 - epatch "${WORKDIR}"/patches-security/xen/$i
250 - done
251 -
252 - # apply qemu-xen/upstream patches
253 - pushd "${S}"/tools/qemu-xen/ > /dev/null
254 - for i in ${XEN_SECURITY_QEMUU}; do
255 - epatch "${WORKDIR}"/patches-security/qemuu/$i
256 - done
257 - popd > /dev/null
258 -
259 - # apply qemu-traditional patches
260 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
261 - for i in ${XEN_SECURITY_QEMUT}; do
262 - epatch "${WORKDIR}"/patches-security/qemut/$i
263 - done
264 - popd > /dev/null
265 - fi
266 -
267 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
268 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
269 - pushd tools/firmware/ > /dev/null
270 - ln -s seabios-dir-remote seabios-dir || die
271 - popd > /dev/null
272 -
273 - # Gentoo's patchset
274 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
275 - einfo "Try to apply Gentoo specific patch set"
276 - source "${FILESDIR}"/gentoo-patches.conf || die
277 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
278 - for i in ${!_gpv}; do
279 - EPATCH_SUFFIX="patch" \
280 - EPATCH_FORCE="yes" \
281 - epatch "${WORKDIR}"/patches-gentoo/$i
282 - done
283 - fi
284 -
285 - # Ovmf's patchset
286 - if use ovmf; then
287 - if [[ -n ${OVMF_VER} ]];then
288 - einfo "Try to apply Ovmf patch set"
289 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
290 - EPATCH_SUFFIX="patch" \
291 - EPATCH_FORCE="yes" \
292 - EPATCH_OPTS="-p1" \
293 - epatch "${WORKDIR}"/patches-ovmf
294 - popd > /dev/null
295 - fi
296 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
297 - fi
298 -
299 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
300 -
301 - # Fix texi2html build error with new texi2html, qemu.doc.html
302 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
303 -
304 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
305 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
306 - -i tools/firmware/Makefile || die
307 -
308 - # Drop .config, fixes to gcc-4.6
309 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
310 -
311 - # if the user *really* wants to use their own custom-cflags, let them
312 - if use custom-cflags; then
313 - einfo "User wants their own CFLAGS - removing defaults"
314 -
315 - # try and remove all the default cflags
316 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
317 - -exec sed \
318 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
319 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
320 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
321 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
322 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
323 - -i {} + || die "failed to re-set custom-cflags"
324 - else
325 - unset CFLAGS
326 - unset LDFLAGS
327 - unset ASFLAGS
328 - unset CPPFLAGS
329 - fi
330 -
331 - if ! use pygrub; then
332 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
333 - fi
334 -
335 - if ! use python; then
336 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
337 - fi
338 -
339 - if ! use hvm; then
340 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
341 - # Bug 351648
342 - elif ! use x86 && ! has x86 $(get_all_abis); then
343 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
344 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
345 - export CPATH="${WORKDIR}"/extra-headers
346 - fi
347 -
348 - if use qemu; then
349 - if use sdl; then
350 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
351 - tools/Makefile || die
352 - else
353 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
354 - tools/qemu-xen-traditional/xen-setup || die
355 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
356 - tools/Makefile || die
357 - fi
358 - else
359 - # Don't bother with qemu, only needed for fully virtualised guests
360 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
361 - fi
362 -
363 - # Reset bash completion dir; Bug 472438
364 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
365 - -i Config.mk || die
366 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
367 -
368 - # xencommons, Bug #492332, sed lighter weight than patching
369 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
370 - -i tools/hotplug/Linux/init.d/xencommons.in || die
371 -
372 - # respect multilib, usr/lib/libcacard.so.0.0.0
373 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
374 - -i tools/qemu-xen/configure || die
375 -
376 - #bug 518136, don't build 32bit exactuable for nomultilib profile
377 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
378 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
379 - fi
380 -
381 - # uncomment lines in xl.conf
382 - sed -e 's:^#autoballoon=:autoballoon=:' \
383 - -e 's:^#lockfile=:lockfile=:' \
384 - -e 's:^#vif.default.script=:vif.default.script=:' \
385 - -i tools/examples/xl.conf || die
386 -
387 - # Bug #575868 converted to a sed statement, typo of one char
388 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
389 -
390 - epatch_user
391 -}
392 -
393 -src_configure() {
394 - local myconf="--prefix=${PREFIX}/usr \
395 - --libdir=${PREFIX}/usr/$(get_libdir) \
396 - --libexecdir=${PREFIX}/usr/libexec \
397 - --localstatedir=${EPREFIX}/var \
398 - --disable-werror \
399 - --disable-xen \
400 - --enable-tools \
401 - --enable-docs \
402 - $(use_enable pam) \
403 - $(use_enable api xenapi) \
404 - $(use_enable ovmf) \
405 - $(use_enable ocaml ocamltools) \
406 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
407 - "
408 -
409 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
410 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
411 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
412 - econf ${myconf}
413 -}
414 -
415 -src_compile() {
416 - export VARTEXFONTS="${T}/fonts"
417 - local myopt
418 - use debug && myopt="${myopt} debug=y"
419 -
420 - if test-flag-CC -fno-strict-overflow; then
421 - append-flags -fno-strict-overflow
422 - fi
423 -
424 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
425 -
426 - use doc && emake -C docs txt html
427 - emake -C docs man-pages
428 -}
429 -
430 -src_install() {
431 - # Override auto-detection in the build system, bug #382573
432 - export INITD_DIR=/tmp/init.d
433 - export CONFIG_LEAF_DIR=../tmp/default
434 -
435 - # Let the build system compile installed Python modules.
436 - local PYTHONDONTWRITEBYTECODE
437 - export PYTHONDONTWRITEBYTECODE
438 -
439 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
440 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
441 -
442 - # Fix the remaining Python shebangs.
443 - python_fix_shebang "${D}"
444 -
445 - # Remove RedHat-specific stuff
446 - rm -rf "${D}"tmp || die
447 -
448 - if use doc; then
449 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
450 -
451 - dohtml -r docs/
452 - docinto pdf
453 - dodoc ${DOCS[@]}
454 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
455 - fi
456 -
457 - rm -rf "${D}"/usr/share/doc/xen/
458 - doman docs/man?/*
459 -
460 - newconfd "${FILESDIR}"/xendomains.confd xendomains
461 - newconfd "${FILESDIR}"/xenstored.confd xenstored
462 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
463 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
464 - newinitd "${FILESDIR}"/xenstored.initd xenstored
465 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
466 - newinitd "${FILESDIR}"/xencommons.initd xencommons
467 - newconfd "${FILESDIR}"/xencommons.confd xencommons
468 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
469 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
470 -
471 - if use screen; then
472 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
473 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
474 - keepdir /var/log/xen-consoles
475 - fi
476 -
477 - # For -static-libs wrt Bug 384355
478 - if ! use static-libs; then
479 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
480 - fi
481 -
482 - # for xendomains
483 - keepdir /etc/xen/auto
484 -
485 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
486 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
487 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
488 -}
489 -
490 -pkg_postinst() {
491 - elog "Official Xen Guide and the offical wiki page:"
492 - elog "https://wiki.gentoo.org/wiki/Xen"
493 - elog "http://wiki.xen.org/wiki/Main_Page"
494 - elog ""
495 - elog "Recommended to utilise the xencommons script to config sytem At boot"
496 - elog "Add by use of rc-update on completion of the install"
497 -
498 - if ! use hvm; then
499 - echo
500 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
501 - elog "support enable the hvm use flag."
502 - elog "An x86 or amd64 system is required to build HVM support."
503 - fi
504 -
505 - if use qemu; then
506 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
507 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
508 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
509 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
510 - fi
511 -}
512
513 diff --git a/app-emulation/xen-tools/xen-tools-4.8.1.ebuild b/app-emulation/xen-tools/xen-tools-4.8.1.ebuild
514 deleted file mode 100644
515 index 0a1b8ac77b5..00000000000
516 --- a/app-emulation/xen-tools/xen-tools-4.8.1.ebuild
517 +++ /dev/null
518 @@ -1,449 +0,0 @@
519 -# Copyright 1999-2017 Gentoo Foundation
520 -# Distributed under the terms of the GNU General Public License v2
521 -
522 -EAPI=5
523 -
524 -PYTHON_COMPAT=( python2_7 )
525 -PYTHON_REQ_USE='ncurses,xml,threads'
526 -
527 -inherit eutils bash-completion-r1 flag-o-matic multilib python-single-r1 toolchain-funcs versionator
528 -
529 -MY_PV=${PV/_/-}
530 -MAJOR_V="$(get_version_component_range 1-2)"
531 -
532 -if [[ $PV == *9999 ]]; then
533 - inherit git-r3
534 - KEYWORDS=""
535 - REPO="xen.git"
536 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
537 - S="${WORKDIR}/${REPO}"
538 -else
539 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
540 - UPSTREAM_VER=
541 - SECURITY_VER=
542 - # xen-tools's gentoo patches tarball
543 - GENTOO_VER=9
544 - # xen-tools's gentoo patches version which apply to this specific ebuild
545 - GENTOO_GPV=0
546 - # xen-tools ovmf's patches
547 - OVMF_VER=2
548 -
549 - SEABIOS_VER=1.10.0
550 - # OVMF upstream 52a99493cce88a9d4ec8a02d7f1bd1a1001ce60d
551 - OVMF_PV=20151110
552 -
553 - [[ -n ${UPSTREAM_VER} ]] && \
554 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
555 - [[ -n ${SECURITY_VER} ]] && \
556 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
557 - [[ -n ${GENTOO_VER} ]] && \
558 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
559 - [[ -n ${OVMF_VER} ]] && \
560 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
561 -
562 - SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
563 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
564 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
565 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
566 - ${OVMF_PATCHSET_URI} )
567 - ${UPSTREAM_PATCHSET_URI}
568 - ${SECURITY_PATCHSET_URI}
569 - ${GENTOO_PATCHSET_URI}"
570 -
571 - S="${WORKDIR}/xen-${MY_PV}"
572 -fi
573 -
574 -DESCRIPTION="Xen tools including QEMU and xl"
575 -HOMEPAGE="http://xen.org/"
576 -DOCS=( README docs/README.xen-bugtool )
577 -
578 -LICENSE="GPL-2"
579 -SLOT="0/${MAJOR_V}"
580 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
581 -# >=dev-lang/ocaml-4 stable
582 -# Masked in profiles/eapi-5-files instead
583 -IUSE="api custom-cflags debug doc flask hvm +qemu ocaml ovmf +qemu-traditional +pam python pygrub screen sdl static-libs system-qemu system-seabios"
584 -
585 -REQUIRED_USE="
586 - ${PYTHON_REQUIRED_USE}
587 - pygrub? ( python )
588 - ovmf? ( hvm )
589 - ^^ ( qemu system-qemu )"
590 -
591 -COMMON_DEPEND="
592 - dev-libs/lzo:2
593 - dev-libs/glib:2
594 - dev-libs/yajl
595 - dev-libs/libaio
596 - dev-libs/libgcrypt:0
597 - sys-libs/zlib
598 - ${PYTHON_DEPS}
599 -"
600 -
601 -DEPEND="${COMMON_DEPEND}
602 - dev-python/lxml[${PYTHON_USEDEP}]
603 - x86? ( sys-devel/dev86
604 - sys-power/iasl )
605 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
606 - api? ( dev-libs/libxml2
607 - net-misc/curl )
608 - ovmf? (
609 - !arm? ( !arm64? ( dev-lang/nasm ) )
610 - $(python_gen_impl_dep sqlite)
611 - )
612 - !amd64? ( >=sys-apps/dtc-1.4.0 )
613 - amd64? ( sys-devel/bin86
614 - system-seabios? ( sys-firmware/seabios )
615 - sys-firmware/ipxe
616 - sys-devel/dev86
617 - sys-power/iasl )
618 - dev-lang/perl
619 - app-misc/pax-utils
620 - doc? (
621 - app-doc/doxygen
622 - dev-python/markdown[${PYTHON_USEDEP}]
623 - dev-tex/latex2html[png,gif]
624 - media-gfx/graphviz
625 - dev-tex/xcolor
626 - media-gfx/transfig
627 - dev-texlive/texlive-latexextra
628 - virtual/latex-base
629 - dev-tex/latexmk
630 - dev-texlive/texlive-latex
631 - dev-texlive/texlive-pictures
632 - dev-texlive/texlive-latexrecommended
633 - )
634 - hvm? ( x11-proto/xproto
635 - !net-libs/libiscsi )
636 - qemu? (
637 - x11-libs/pixman
638 - sdl? ( media-libs/libsdl[X] )
639 - )
640 - system-qemu? ( app-emulation/qemu[xen] )
641 - ocaml? ( dev-ml/findlib
642 - >=dev-lang/ocaml-4 )"
643 -
644 -RDEPEND="${COMMON_DEPEND}
645 - sys-apps/iproute2[-minimal]
646 - net-misc/bridge-utils
647 - screen? (
648 - app-misc/screen
649 - app-admin/logrotate
650 - )"
651 -
652 -# hvmloader is used to bootstrap a fully virtualized kernel
653 -# Approved by QA team in bug #144032
654 -QA_WX_LOAD="usr/lib/xen/boot/hvmloader
655 - usr/share/qemu-xen/qemu/s390-ccw.img"
656 -
657 -RESTRICT="test"
658 -
659 -pkg_setup() {
660 - python_setup
661 - export "CONFIG_LOMOUNT=y"
662 -
663 - #bug 522642, disable compile tools/tests
664 - export "CONFIG_TESTS=n"
665 -
666 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
667 - if use x86 && use amd64; then
668 - die "Confusion! Both x86 and amd64 are set in your use flags!"
669 - elif use x86; then
670 - export XEN_TARGET_ARCH="x86_32"
671 - elif use amd64 ; then
672 - export XEN_TARGET_ARCH="x86_64"
673 - elif use arm; then
674 - export XEN_TARGET_ARCH="arm32"
675 - elif use arm64; then
676 - export XEN_TARGET_ARCH="arm64"
677 - else
678 - die "Unsupported architecture!"
679 - fi
680 - fi
681 -}
682 -
683 -src_prepare() {
684 - # Upstream's patchset
685 - if [[ -n ${UPSTREAM_VER} ]]; then
686 - einfo "Try to apply Xen Upstream patch set"
687 - EPATCH_SUFFIX="patch" \
688 - EPATCH_FORCE="yes" \
689 - EPATCH_OPTS="-p1" \
690 - epatch "${WORKDIR}"/patches-upstream
691 - fi
692 -
693 - # Security patchset
694 - if [[ -n ${SECURITY_VER} ]]; then
695 - einfo "Try to apply Xen Security patch set"
696 - # apply main xen patches
697 - # Two parallel systems, both work side by side
698 - # Over time they may concdense into one. This will suffice for now
699 - EPATCH_SUFFIX="patch"
700 - EPATCH_FORCE="yes"
701 -
702 - source "${WORKDIR}"/patches-security/${PV}.conf || die
703 -
704 - for i in ${XEN_SECURITY_MAIN}; do
705 - epatch "${WORKDIR}"/patches-security/xen/$i
706 - done
707 -
708 - # apply qemu-xen/upstream patches
709 - pushd "${S}"/tools/qemu-xen/ > /dev/null
710 - for i in ${XEN_SECURITY_QEMUU}; do
711 - epatch "${WORKDIR}"/patches-security/qemuu/$i
712 - done
713 - popd > /dev/null
714 -
715 - # apply qemu-traditional patches
716 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
717 - for i in ${XEN_SECURITY_QEMUT}; do
718 - epatch "${WORKDIR}"/patches-security/qemut/$i
719 - done
720 - popd > /dev/null
721 - fi
722 -
723 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
724 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
725 - pushd tools/firmware/ > /dev/null
726 - ln -s seabios-dir-remote seabios-dir || die
727 - popd > /dev/null
728 -
729 - # Gentoo's patchset
730 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
731 - einfo "Try to apply Gentoo specific patch set"
732 - source "${FILESDIR}"/gentoo-patches.conf || die
733 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
734 - for i in ${!_gpv}; do
735 - EPATCH_SUFFIX="patch" \
736 - EPATCH_FORCE="yes" \
737 - epatch "${WORKDIR}"/patches-gentoo/$i
738 - done
739 - fi
740 -
741 - # Ovmf's patchset
742 - if use ovmf; then
743 - if [[ -n ${OVMF_VER} ]];then
744 - einfo "Try to apply Ovmf patch set"
745 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
746 - EPATCH_SUFFIX="patch" \
747 - EPATCH_FORCE="yes" \
748 - EPATCH_OPTS="-p1" \
749 - epatch "${WORKDIR}"/patches-ovmf
750 - popd > /dev/null
751 - fi
752 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
753 - fi
754 -
755 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
756 -
757 - # Fix texi2html build error with new texi2html, qemu.doc.html
758 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
759 -
760 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
761 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
762 - -i tools/firmware/Makefile || die
763 -
764 - # Drop .config, fixes to gcc-4.6
765 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
766 -
767 - # if the user *really* wants to use their own custom-cflags, let them
768 - if use custom-cflags; then
769 - einfo "User wants their own CFLAGS - removing defaults"
770 -
771 - # try and remove all the default cflags
772 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
773 - -exec sed \
774 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
775 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
776 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
777 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
778 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
779 - -i {} + || die "failed to re-set custom-cflags"
780 - else
781 - unset CFLAGS
782 - unset LDFLAGS
783 - unset ASFLAGS
784 - unset CPPFLAGS
785 - fi
786 -
787 - if ! use pygrub; then
788 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
789 - fi
790 -
791 - if ! use python; then
792 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
793 - fi
794 -
795 - if ! use hvm; then
796 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
797 - # Bug 351648
798 - elif ! use x86 && ! has x86 $(get_all_abis); then
799 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
800 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
801 - export CPATH="${WORKDIR}"/extra-headers
802 - fi
803 -
804 - if use qemu; then
805 - if use sdl; then
806 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
807 - tools/Makefile || die
808 - else
809 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
810 - tools/qemu-xen-traditional/xen-setup || die
811 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
812 - tools/Makefile || die
813 - fi
814 - else
815 - # Don't bother with qemu, only needed for fully virtualised guests
816 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
817 - fi
818 -
819 - # Reset bash completion dir; Bug 472438
820 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
821 - -i Config.mk || die
822 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
823 -
824 - # xencommons, Bug #492332, sed lighter weight than patching
825 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
826 - -i tools/hotplug/Linux/init.d/xencommons.in || die
827 -
828 - # respect multilib, usr/lib/libcacard.so.0.0.0
829 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
830 - -i tools/qemu-xen/configure || die
831 -
832 - #bug 518136, don't build 32bit exactuable for nomultilib profile
833 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
834 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
835 - fi
836 -
837 - # uncomment lines in xl.conf
838 - sed -e 's:^#autoballoon=:autoballoon=:' \
839 - -e 's:^#lockfile=:lockfile=:' \
840 - -e 's:^#vif.default.script=:vif.default.script=:' \
841 - -i tools/examples/xl.conf || die
842 -
843 - # Bug #575868 converted to a sed statement, typo of one char
844 - sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die
845 -
846 - epatch_user
847 -}
848 -
849 -src_configure() {
850 - local myconf="--prefix=${PREFIX}/usr \
851 - --libdir=${PREFIX}/usr/$(get_libdir) \
852 - --libexecdir=${PREFIX}/usr/libexec \
853 - --localstatedir=${EPREFIX}/var \
854 - --disable-werror \
855 - --disable-xen \
856 - --enable-tools \
857 - --enable-docs \
858 - $(use_enable pam) \
859 - $(use_enable api xenapi) \
860 - $(use_enable ovmf) \
861 - $(use_enable ocaml ocamltools) \
862 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
863 - "
864 -
865 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
866 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
867 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
868 - econf ${myconf}
869 -}
870 -
871 -src_compile() {
872 - export VARTEXFONTS="${T}/fonts"
873 - local myopt
874 - use debug && myopt="${myopt} debug=y"
875 -
876 - if test-flag-CC -fno-strict-overflow; then
877 - append-flags -fno-strict-overflow
878 - fi
879 -
880 - emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
881 -
882 - use doc && emake -C docs txt html
883 - emake -C docs man-pages
884 -}
885 -
886 -src_install() {
887 - # Override auto-detection in the build system, bug #382573
888 - export INITD_DIR=/tmp/init.d
889 - export CONFIG_LEAF_DIR=../tmp/default
890 -
891 - # Let the build system compile installed Python modules.
892 - local PYTHONDONTWRITEBYTECODE
893 - export PYTHONDONTWRITEBYTECODE
894 -
895 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
896 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
897 -
898 - # Fix the remaining Python shebangs.
899 - python_fix_shebang "${D}"
900 -
901 - # Remove RedHat-specific stuff
902 - rm -rf "${D}"tmp || die
903 -
904 - if use doc; then
905 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
906 -
907 - dohtml -r docs/
908 - docinto pdf
909 - dodoc ${DOCS[@]}
910 - [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
911 - fi
912 -
913 - rm -rf "${D}"/usr/share/doc/xen/
914 - doman docs/man?/*
915 -
916 - newconfd "${FILESDIR}"/xendomains.confd xendomains
917 - newconfd "${FILESDIR}"/xenstored.confd xenstored
918 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
919 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
920 - newinitd "${FILESDIR}"/xenstored.initd xenstored
921 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
922 - newinitd "${FILESDIR}"/xencommons.initd xencommons
923 - newconfd "${FILESDIR}"/xencommons.confd xencommons
924 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
925 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
926 -
927 - if use screen; then
928 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
929 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
930 - keepdir /var/log/xen-consoles
931 - fi
932 -
933 - # For -static-libs wrt Bug 384355
934 - if ! use static-libs; then
935 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
936 - fi
937 -
938 - # for xendomains
939 - keepdir /etc/xen/auto
940 -
941 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
942 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
943 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
944 -}
945 -
946 -pkg_postinst() {
947 - elog "Official Xen Guide and the offical wiki page:"
948 - elog "https://wiki.gentoo.org/wiki/Xen"
949 - elog "http://wiki.xen.org/wiki/Main_Page"
950 - elog ""
951 - elog "Recommended to utilise the xencommons script to config sytem At boot"
952 - elog "Add by use of rc-update on completion of the install"
953 -
954 - if ! use hvm; then
955 - echo
956 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
957 - elog "support enable the hvm use flag."
958 - elog "An x86 or amd64 system is required to build HVM support."
959 - fi
960 -
961 - if use qemu; then
962 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
963 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
964 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
965 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
966 - fi
967 -}