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