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-3.4.0.ebuild |
Date: | Mon, 22 Jun 2009 12:08:26 |
Message-Id: | E1MIiJz-0001Hc-R4@stork.gentoo.org |
1 | patrick 09/06/22 12:08:23 |
2 | |
3 | Modified: ChangeLog |
4 | Added: xen-3.4.0.ebuild |
5 | Log: |
6 | Bump to 3.4.0. Closes #271173 |
7 | (Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.61 app-emulation/xen/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.61&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.61&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.60&r2=1.61 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v |
19 | retrieving revision 1.60 |
20 | retrieving revision 1.61 |
21 | diff -u -r1.60 -r1.61 |
22 | --- ChangeLog 27 Apr 2009 12:51:21 -0000 1.60 |
23 | +++ ChangeLog 22 Jun 2009 12:08:23 -0000 1.61 |
24 | @@ -1,6 +1,11 @@ |
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.60 2009/04/27 12:51:21 patrick Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.61 2009/06/22 12:08:23 patrick Exp $ |
29 | + |
30 | +*xen-3.4.0 (22 Jun 2009) |
31 | + |
32 | + 22 Jun 2009; Patrick Lauer <patrick@g.o> +xen-3.4.0.ebuild: |
33 | + Bump to 3.4.0. Closes #271173 |
34 | |
35 | *xen-3.3.1-r1 (27 Apr 2009) |
36 | |
37 | |
38 | |
39 | |
40 | 1.1 app-emulation/xen/xen-3.4.0.ebuild |
41 | |
42 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.4.0.ebuild?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.4.0.ebuild?rev=1.1&content-type=text/plain |
44 | |
45 | Index: xen-3.4.0.ebuild |
46 | =================================================================== |
47 | # Copyright 1999-2009 Gentoo Foundation |
48 | # Distributed under the terms of the GNU General Public License v2 |
49 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.4.0.ebuild,v 1.1 2009/06/22 12:08:23 patrick 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 | >=sys-kernel/xen-sources-2.6.18" |
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 | |
101 | # Fix unexport $target in xen-setup |
102 | epatch "${FILESDIR}/"${PN}-3.3.0-unexported-target-fix.patch |
103 | |
104 | # if the user *really* wants to use their own custom-cflags, let them |
105 | if use custom-cflags; then |
106 | einfo "User wants their own CFLAGS - removing defaults" |
107 | # try and remove all the default custom-cflags |
108 | find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
109 | -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
110 | -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
111 | -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
112 | -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
113 | -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
114 | -i {} \; |
115 | fi |
116 | } |
117 | |
118 | src_compile() { |
119 | local myopt |
120 | use debug && myopt="${myopt} debug=y" |
121 | use pae && myopt="${myopt} pae=y" |
122 | |
123 | if use custom-cflags; then |
124 | filter-flags -fPIE -fstack-protector |
125 | replace-flags -O3 -O2 |
126 | else |
127 | unset CFLAGS |
128 | fi |
129 | |
130 | # Send raw LDFLAGS so that --as-needed works |
131 | emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed" |
132 | } |
133 | |
134 | src_install() { |
135 | local myopt |
136 | use debug && myopt="${myopt} debug=y" |
137 | use pae && myopt="${myopt} pae=y" |
138 | |
139 | emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed" |
140 | } |
141 | |
142 | pkg_postinst() { |
143 | elog "Official Xen Guide and the unoffical wiki page:" |
144 | elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
145 | elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" |
146 | |
147 | if use pae; then |
148 | echo |
149 | ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
150 | fi |
151 | } |