Gentoo Archives: gentoo-commits

From: "Micheal Marineau (marineam)" <marineam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen: ChangeLog xen-3.1.3.ebuild
Date: Sun, 03 Feb 2008 01:48:02
Message-Id: E1JLTxc-0004XO-7j@stork.gentoo.org
1 marineam 08/02/03 01:47:56
2
3 Modified: ChangeLog
4 Added: xen-3.1.3.ebuild
5 Log:
6 Bump xen ebuilds to 3.1.3
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.52 app-emulation/xen/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.52&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.52&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.51&r2=1.52
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v
19 retrieving revision 1.51
20 retrieving revision 1.52
21 diff -u -r1.51 -r1.52
22 --- ChangeLog 3 Feb 2008 00:35:30 -0000 1.51
23 +++ ChangeLog 3 Feb 2008 01:47:55 -0000 1.52
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-emulation/xen
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.51 2008/02/03 00:35:30 marineam Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.52 2008/02/03 01:47:55 marineam Exp $
29 +
30 +*xen-3.1.3 (03 Feb 2008)
31 +
32 + 03 Feb 2008; Michael Marineau <marineam@g.o> +xen-3.1.3.ebuild:
33 + Version bump to 3.1.3
34
35 03 Feb 2008; Michael Marineau <marineam@g.o> xen-3.1.2.ebuild:
36 Filter -O3 from CFLAGS when using custom cflags.
37
38
39
40 1.1 app-emulation/xen/xen-3.1.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.1.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen-3.1.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: xen-3.1.3.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.1.3.ebuild,v 1.1 2008/02/03 01:47:55 marineam Exp $
50
51 inherit mount-boot flag-o-matic
52
53 DESCRIPTION="The Xen virtual machine monitor"
54 HOMEPAGE="http://www.xensource.com/xen/xen/"
55 SRC_URI="mirror://gentoo/xen-${PV}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~amd64 ~x86"
60 IUSE="debug custom-cflags pae"
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
86 src_unpack() {
87 unpack ${A}
88 # if the user *really* wants to use their own custom-cflags, let them
89 if use custom-cflags; then
90 einfo "User wants their own CFLAGS - removing defaults"
91 # try and remove all the default custom-cflags
92 find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
93 -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
94 -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
95 -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
96 -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
97 -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
98 -i {} \;
99 fi
100 }
101
102 src_compile() {
103 local myopt
104 use debug && myopt="${myopt} debug=y"
105 use pae && myopt="${myopt} pae=y"
106
107 if use custom-cflags; then
108 filter-flags -fPIE -fstack-protector
109 replace-flags -O3 -O2
110 else
111 unset CFLAGS
112 fi
113
114 # Send raw LDFLAGS so that --as-needed works
115 emake LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
116 }
117
118 src_install() {
119 local myopt
120 use debug && myopt="${myopt} debug=y"
121 use pae && myopt="${myopt} pae=y"
122
123 emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed"
124 }
125
126 pkg_postinst() {
127 elog "Official Xen Guide and the unoffical wiki page:"
128 elog " http://www.gentoo.org/doc/en/xen-guide.xml"
129 elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo"
130
131 echo
132 elog "Note: xen tools have been moved to app-emulation/xen-tools"
133
134 if use pae; then
135 echo
136 ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!"
137 fi
138 }
139
140
141
142 --
143 gentoo-commits@l.g.o mailing list