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