1 |
patrick 10/01/06 22:05:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xen-3.4.2-r1.ebuild |
5 |
Log: |
6 |
Crashfix for xen console thanks to Andrew Lyon |
7 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.66 app-emulation/xen/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.66&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.66&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.65&r2=1.66 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v |
19 |
retrieving revision 1.65 |
20 |
retrieving revision 1.66 |
21 |
diff -u -r1.65 -r1.66 |
22 |
--- ChangeLog 1 Dec 2009 13:38:55 -0000 1.65 |
23 |
+++ ChangeLog 6 Jan 2010 22:05:27 -0000 1.66 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-emulation/xen |
26 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.65 2009/12/01 13:38:55 patrick Exp $ |
28 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.66 2010/01/06 22:05:27 patrick Exp $ |
30 |
+ |
31 |
+*xen-3.4.2-r1 (06 Jan 2010) |
32 |
+ |
33 |
+ 06 Jan 2010; Patrick Lauer <patrick@g.o> +xen-3.4.2-r1.ebuild, |
34 |
+ +files/xen-3.4.2-dump_registers-watchdog-fix.patch: |
35 |
+ Crashfix for xen console thanks to Andrew Lyon |
36 |
|
37 |
*xen-3.4.2 (01 Dec 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-emulation/xen/xen-3.4.2-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.4.2-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.4.2-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: xen-3.4.2-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.4.2-r1.ebuild,v 1.1 2010/01/06 22:05:27 patrick Exp $ |
52 |
|
53 |
inherit mount-boot flag-o-matic toolchain-funcs |
54 |
|
55 |
DESCRIPTION="The Xen virtual machine monitor" |
56 |
HOMEPAGE="http://xen.org/" |
57 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~x86" |
62 |
IUSE="debug custom-cflags pae acm flask xsm" |
63 |
|
64 |
RDEPEND="|| ( sys-boot/grub |
65 |
sys-boot/grub-static ) |
66 |
>=sys-kernel/xen-sources-2.6.18" |
67 |
PDEPEND="~app-emulation/xen-tools-${PV}" |
68 |
|
69 |
RESTRICT="test" |
70 |
|
71 |
# Approved by QA team in bug #144032 |
72 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
73 |
|
74 |
pkg_setup() { |
75 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
76 |
if use x86 && use amd64; then |
77 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
78 |
elif use x86; then |
79 |
export XEN_TARGET_ARCH="x86_32" |
80 |
elif use amd64; then |
81 |
export XEN_TARGET_ARCH="x86_64" |
82 |
else |
83 |
die "Unsupported architecture!" |
84 |
fi |
85 |
fi |
86 |
|
87 |
if use xsm ; then |
88 |
export "XSM_ENABLE=y" |
89 |
use acm && export "ACM_SECURITY=y" |
90 |
if use flask ; then |
91 |
! use acm && export "FLASK_ENABLE=y" |
92 |
use acm && ewarn "Both acm and flask XSM specified, defaulting to acm." |
93 |
fi |
94 |
elif use acm || use flask ; then |
95 |
ewarn "acm and flask require USE=xsm to be set, dropping use flags" |
96 |
fi |
97 |
} |
98 |
|
99 |
src_unpack() { |
100 |
unpack ${A} |
101 |
cd "${S}" |
102 |
|
103 |
# Fix unexport $target in xen-setup |
104 |
epatch "${FILESDIR}/"${PN}-3.3.0-unexported-target-fix.patch |
105 |
|
106 |
# Fix crash in xen console |
107 |
epatch "${FILESDIR}/"${P}-dump_registers-watchdog-fix.patch |
108 |
|
109 |
# if the user *really* wants to use their own custom-cflags, let them |
110 |
if use custom-cflags; then |
111 |
einfo "User wants their own CFLAGS - removing defaults" |
112 |
# try and remove all the default custom-cflags |
113 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
114 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
115 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
116 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
117 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
118 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
119 |
-i {} \; |
120 |
fi |
121 |
} |
122 |
|
123 |
src_compile() { |
124 |
local myopt |
125 |
use debug && myopt="${myopt} debug=y" |
126 |
use pae && myopt="${myopt} pae=y" |
127 |
|
128 |
if use custom-cflags; then |
129 |
filter-flags -fPIE -fstack-protector |
130 |
replace-flags -O3 -O2 |
131 |
else |
132 |
unset CFLAGS |
133 |
fi |
134 |
|
135 |
# Send raw LDFLAGS so that --as-needed works |
136 |
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed" |
137 |
} |
138 |
|
139 |
src_install() { |
140 |
local myopt |
141 |
use debug && myopt="${myopt} debug=y" |
142 |
use pae && myopt="${myopt} pae=y" |
143 |
|
144 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed" |
145 |
} |
146 |
|
147 |
pkg_postinst() { |
148 |
elog "Official Xen Guide and the unoffical wiki page:" |
149 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
150 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
151 |
|
152 |
if use pae; then |
153 |
echo |
154 |
ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
155 |
fi |
156 |
} |