Gentoo Archives: gentoo-commits

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