Gentoo Archives: gentoo-commits

From: "Robert Buchholz (rbu)" <rbu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen: ChangeLog metadata.xml xen-3.2.1.ebuild xen-3.3.0.ebuild xen-3.2.0.ebuild
Date: Mon, 01 Sep 2008 00:30:59
Message-Id: E1KZxJl-0003U8-Ly@stork.gentoo.org
1 rbu 08/09/01 00:30:53
2
3 Modified: ChangeLog metadata.xml xen-3.2.1.ebuild
4 Added: xen-3.3.0.ebuild
5 Removed: xen-3.2.0.ebuild
6 Log:
7 Version bump to Xen 3.3 (bug #201792).
8 Bugs fixed:
9 * Fix invalid sed that broke gcc-4.3 (bug #217151)
10 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc4-git1 x86_64)
11
12 Revision Changes Path
13 1.56 app-emulation/xen/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.56&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.56&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.55&r2=1.56
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v
22 retrieving revision 1.55
23 retrieving revision 1.56
24 diff -u -r1.55 -r1.56
25 --- ChangeLog 28 Jul 2008 20:50:09 -0000 1.55
26 +++ ChangeLog 1 Sep 2008 00:30:53 -0000 1.56
27 @@ -1,6 +1,14 @@
28 # ChangeLog for app-emulation/xen
29 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.55 2008/07/28 20:50:09 cardoe Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.56 2008/09/01 00:30:53 rbu Exp $
32 +
33 +*xen-3.3.0 (01 Sep 2008)
34 +
35 + 01 Sep 2008; Robert Buchholz <rbu@g.o> +files/xen-sed-gcc.patch,
36 + metadata.xml, -xen-3.2.0.ebuild, xen-3.2.1.ebuild, +xen-3.3.0.ebuild:
37 + Version bump to Xen 3.3 (bug #201792).
38 + Bugs fixed:
39 + * Fix invalid sed that broke gcc-4.3 (bug #217151)
40
41 28 Jul 2008; Doug Goldstein <cardoe@g.o> metadata.xml:
42 add GLEP 56 USE flag desc from use.local.desc
43
44
45
46 1.6 app-emulation/xen/metadata.xml
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/metadata.xml?rev=1.6&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/metadata.xml?rev=1.6&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/metadata.xml?r1=1.5&r2=1.6
51
52 Index: metadata.xml
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/metadata.xml,v
55 retrieving revision 1.5
56 retrieving revision 1.6
57 diff -u -r1.5 -r1.6
58 --- metadata.xml 28 Jul 2008 20:50:09 -0000 1.5
59 +++ metadata.xml 1 Sep 2008 00:30:53 -0000 1.6
60 @@ -7,5 +7,8 @@
61 default Xen CFLAGS (not supported)</flag>
62 <flag name='pae'>Enable support for PAE kernels (usually x86-32 with >4GB
63 memory)</flag>
64 + <flag name='xsm'>Enable the Xen Security Modules (XSM)</flag>
65 + <flag name='acm'>Enable the ACM/sHype XSM module from IBM</flag>
66 + <flag name='flask'>Enable the Flask XSM module from NSA</flag>
67 </use>
68 </pkgmetadata>
69
70
71
72 1.2 app-emulation/xen/xen-3.2.1.ebuild
73
74 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild?rev=1.2&view=markup
75 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild?rev=1.2&content-type=text/plain
76 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild?r1=1.1&r2=1.2
77
78 Index: xen-3.2.1.ebuild
79 ===================================================================
80 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild,v
81 retrieving revision 1.1
82 retrieving revision 1.2
83 diff -u -r1.1 -r1.2
84 --- xen-3.2.1.ebuild 4 May 2008 18:59:13 -0000 1.1
85 +++ xen-3.2.1.ebuild 1 Sep 2008 00:30:53 -0000 1.2
86 @@ -1,8 +1,8 @@
87 # Copyright 1999-2008 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild,v 1.1 2008/05/04 18:59:13 rbu Exp $
90 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild,v 1.2 2008/09/01 00:30:53 rbu Exp $
91
92 -inherit mount-boot flag-o-matic
93 +inherit mount-boot flag-o-matic toolchain-funcs
94
95 DESCRIPTION="The Xen virtual machine monitor"
96 HOMEPAGE="http://xen.org/"
97 @@ -39,6 +39,10 @@
98
99 src_unpack() {
100 unpack ${A}
101 +
102 + cd "${S}"
103 + epatch "${FILESDIR}"/${PN}-sed-gcc.patch
104 +
105 # if the user *really* wants to use their own custom-cflags, let them
106 if use custom-cflags; then
107 einfo "User wants their own CFLAGS - removing defaults"
108 @@ -66,7 +70,7 @@
109 fi
110
111 # Send raw LDFLAGS so that --as-needed works
112 - emake LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
113 + emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
114 }
115
116 src_install() {
117
118
119
120 1.1 app-emulation/xen/xen-3.3.0.ebuild
121
122 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.3.0.ebuild?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.3.0.ebuild?rev=1.1&content-type=text/plain
124
125 Index: xen-3.3.0.ebuild
126 ===================================================================
127 # Copyright 1999-2008 Gentoo Foundation
128 # Distributed under the terms of the GNU General Public License v2
129 # $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.3.0.ebuild,v 1.1 2008/09/01 00:30:53 rbu Exp $
130
131 inherit mount-boot flag-o-matic toolchain-funcs
132
133 DESCRIPTION="The Xen virtual machine monitor"
134 HOMEPAGE="http://xen.org/"
135 SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz"
136
137 LICENSE="GPL-2"
138 SLOT="0"
139 KEYWORDS="~amd64 ~x86"
140 IUSE="debug custom-cflags pae acm flask xsm"
141
142 RDEPEND="|| ( sys-boot/grub
143 sys-boot/grub-static )
144 >=sys-kernel/xen-sources-2.6.18"
145 PDEPEND="~app-emulation/xen-tools-${PV}"
146
147 RESTRICT="test"
148
149 # Approved by QA team in bug #144032
150 QA_WX_LOAD="boot/xen-syms-${PV}"
151
152 pkg_setup() {
153 if [[ -z ${XEN_TARGET_ARCH} ]]; then
154 if use x86 && use amd64; then
155 die "Confusion! Both x86 and amd64 are set in your use flags!"
156 elif use x86; then
157 export XEN_TARGET_ARCH="x86_32"
158 elif use amd64; then
159 export XEN_TARGET_ARCH="x86_64"
160 else
161 die "Unsupported architecture!"
162 fi
163 fi
164
165 if use xsm ; then
166 export "XSM_ENABLE=y"
167 use acm && export "ACM_SECURITY=y"
168 if use flask ; then
169 ! use acm && export "FLASK_ENABLE=y"
170 use acm && ewarn "Both acm and flask XSM specified, defaulting to acm."
171 fi
172 elif use acm || use flask ; then
173 ewarn "acm and flask require USE=xsm to be set, dropping use flags"
174 fi
175 }
176
177 src_unpack() {
178 unpack ${A}
179
180 cd "${S}"
181 epatch "${FILESDIR}"/${PN}-sed-gcc.patch
182
183 # if the user *really* wants to use their own custom-cflags, let them
184 if use custom-cflags; then
185 einfo "User wants their own CFLAGS - removing defaults"
186 # try and remove all the default custom-cflags
187 find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
188 -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
189 -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
190 -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
191 -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
192 -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
193 -i {} \;
194 fi
195 }
196
197 src_compile() {
198 local myopt
199 use debug && myopt="${myopt} debug=y"
200 use pae && myopt="${myopt} pae=y"
201
202 if use custom-cflags; then
203 filter-flags -fPIE -fstack-protector
204 replace-flags -O3 -O2
205 else
206 unset CFLAGS
207 fi
208
209 # Send raw LDFLAGS so that --as-needed works
210 emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
211 }
212
213 src_install() {
214 local myopt
215 use debug && myopt="${myopt} debug=y"
216 use pae && myopt="${myopt} pae=y"
217
218 emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed"
219 }
220
221 pkg_postinst() {
222 elog "Official Xen Guide and the unoffical wiki page:"
223 elog " http://www.gentoo.org/doc/en/xen-guide.xml"
224 elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo"
225
226 if use pae; then
227 echo
228 ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!"
229 fi
230 }