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-4.1.1.ebuild
Date: Fri, 29 Jul 2011 23:02:10
Message-Id: 20110729224129.62CC92004B@flycatcher.gentoo.org
1 patrick 11/07/29 22:41:29
2
3 Modified: ChangeLog
4 Added: xen-4.1.1.ebuild
5 Log:
6 Bump for #372259
7
8 (Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.76 app-emulation/xen/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.76&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.76&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.75&r2=1.76
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v
20 retrieving revision 1.75
21 retrieving revision 1.76
22 diff -u -r1.75 -r1.76
23 --- ChangeLog 6 Apr 2011 22:15:50 -0000 1.75
24 +++ ChangeLog 29 Jul 2011 22:41:29 -0000 1.76
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-emulation/xen
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.75 2011/04/06 22:15:50 alexxy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.76 2011/07/29 22:41:29 patrick Exp $
30 +
31 +*xen-4.1.1 (29 Jul 2011)
32 +
33 + 29 Jul 2011; Patrick Lauer <patrick@g.o> +xen-4.1.1.ebuild:
34 + Bump for #372259
35
36 *xen-9999 (06 Apr 2011)
37
38
39
40
41 1.1 app-emulation/xen/xen-4.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xen-4.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.1.1.ebuild,v 1.1 2011/07/29 22:41:29 patrick Exp $
51
52 EAPI="3"
53
54 inherit mount-boot flag-o-matic toolchain-funcs
55
56 DESCRIPTION="The Xen virtual machine monitor"
57 HOMEPAGE="http://xen.org/"
58 SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="debug custom-cflags pae acm flask xsm"
64
65 RDEPEND="|| ( sys-boot/grub
66 sys-boot/grub-static )"
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_prepare() {
100 # Drop .config
101 sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
102 # if the user *really* wants to use their own custom-cflags, let them
103 if use custom-cflags; then
104 einfo "User wants their own CFLAGS - removing defaults"
105 # try and remove all the default custom-cflags
106 find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
107 -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
108 -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
109 -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
110 -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
111 -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
112 -i {} \;
113 fi
114 }
115
116 src_configure() {
117 use debug && myopt="${myopt} debug=y"
118 use pae && myopt="${myopt} pae=y"
119
120 if use custom-cflags; then
121 filter-flags -fPIE -fstack-protector
122 replace-flags -O3 -O2
123 else
124 unset CFLAGS
125 fi
126 }
127
128 src_compile() {
129 # Send raw LDFLAGS so that --as-needed works
130 emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
131 }
132
133 src_install() {
134 local myopt
135 use debug && myopt="${myopt} debug=y"
136 use pae && myopt="${myopt} pae=y"
137
138 emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed"
139 }
140
141 pkg_postinst() {
142 elog "Official Xen Guide and the unoffical wiki page:"
143 elog " http://www.gentoo.org/doc/en/xen-guide.xml"
144 elog " http://en.gentoo-wiki.com/wiki/Xen/"
145
146 if use pae; then
147 echo
148 ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!"
149 fi
150 }