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