1 |
dlan 14/03/23 02:15:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xen-4.4.0.ebuild |
5 |
Log: |
6 |
bump to 4.4.0 |
7 |
|
8 |
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55) |
9 |
|
10 |
Revision Changes Path |
11 |
1.156 app-emulation/xen/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.156&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.156&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.155&r2=1.156 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v |
20 |
retrieving revision 1.155 |
21 |
retrieving revision 1.156 |
22 |
diff -u -r1.155 -r1.156 |
23 |
--- ChangeLog 21 Feb 2014 04:53:41 -0000 1.155 |
24 |
+++ ChangeLog 23 Mar 2014 02:15:34 -0000 1.156 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-emulation/xen |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.155 2014/02/21 04:53:41 idella4 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.156 2014/03/23 02:15:34 dlan Exp $ |
30 |
+ |
31 |
+*xen-4.4.0 (23 Mar 2014) |
32 |
+ |
33 |
+ 23 Mar 2014; Yixun Lan <dlan@g.o> +xen-4.4.0.ebuild, |
34 |
+ +files/xen-4.4-efi.patch: |
35 |
+ bump to 4.4.0 |
36 |
|
37 |
21 Feb 2014; Ian Delaney <idella4@g.o> xen-4.2.3.ebuild, |
38 |
xen-4.2.4.ebuild, xen-4.3.2.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-emulation/xen/xen-4.4.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.4.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.4.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: xen-4.4.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.4.0.ebuild,v 1.1 2014/03/23 02:15:34 dlan Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
PYTHON_COMPAT=( python2_7 ) |
56 |
|
57 |
MY_PV=${PV/_/-} |
58 |
MY_P=${PN}-${PV/_/-} |
59 |
|
60 |
if [[ $PV == *9999 ]]; then |
61 |
KEYWORDS="" |
62 |
EGIT_REPO_URI="git://xenbits.xen.org/${PN}.git" |
63 |
live_eclass="git-2" |
64 |
else |
65 |
KEYWORDS="~amd64 ~arm -x86" |
66 |
UPSTREAM_VER= |
67 |
GENTOO_VER= |
68 |
|
69 |
[[ -n ${UPSTREAM_VER} ]] && \ |
70 |
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
71 |
[[ -n ${GENTOO_VER} ]] && \ |
72 |
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-gentoo-patches-${GENTOO_VER}.tar.xz" |
73 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
74 |
${UPSTREAM_PATCHSET_URI} |
75 |
${GENTOO_PATCHSET_URI}" |
76 |
|
77 |
fi |
78 |
|
79 |
inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} |
80 |
|
81 |
DESCRIPTION="The Xen virtual machine monitor" |
82 |
HOMEPAGE="http://xen.org/" |
83 |
LICENSE="GPL-2" |
84 |
SLOT="0" |
85 |
IUSE="custom-cflags debug efi flask xsm" |
86 |
|
87 |
DEPEND="${PYTHON_DEPS} |
88 |
efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
89 |
!efi? ( >=sys-devel/binutils-2.22[-multitarget] )" |
90 |
RDEPEND="" |
91 |
PDEPEND="~app-emulation/xen-tools-${PV}" |
92 |
|
93 |
RESTRICT="test" |
94 |
|
95 |
# Approved by QA team in bug #144032 |
96 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
97 |
|
98 |
REQUIRED_USE="flask? ( xsm ) |
99 |
arm? ( debug )" |
100 |
|
101 |
S="${WORKDIR}/${MY_P}" |
102 |
|
103 |
pkg_setup() { |
104 |
python-any-r1_pkg_setup |
105 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
106 |
if use x86 && use amd64; then |
107 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
108 |
elif use x86; then |
109 |
export XEN_TARGET_ARCH="x86_32" |
110 |
elif use amd64; then |
111 |
export XEN_TARGET_ARCH="x86_64" |
112 |
elif use arm; then |
113 |
export XEN_TARGET_ARCH="arm32" |
114 |
else |
115 |
die "Unsupported architecture!" |
116 |
fi |
117 |
fi |
118 |
|
119 |
if use flask ; then |
120 |
export "XSM_ENABLE=y" |
121 |
export "FLASK_ENABLE=y" |
122 |
elif use xsm ; then |
123 |
export "XSM_ENABLE=y" |
124 |
fi |
125 |
} |
126 |
|
127 |
src_prepare() { |
128 |
# Upstream's patchset |
129 |
if [[ -n ${UPSTREAM_VER} ]]; then |
130 |
EPATCH_SUFFIX="patch" \ |
131 |
EPATCH_FORCE="yes" \ |
132 |
epatch "${WORKDIR}"/patches-upstream |
133 |
fi |
134 |
|
135 |
# Gentoo's patchset |
136 |
if [[ -n ${GENTOO_VER} ]]; then |
137 |
EPATCH_SUFFIX="patch" \ |
138 |
EPATCH_FORCE="yes" \ |
139 |
epatch "${WORKDIR}"/patches-gentoo |
140 |
fi |
141 |
|
142 |
# Drop .config |
143 |
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
144 |
|
145 |
if use efi; then |
146 |
epatch "${FILESDIR}"/${PN}-4.4-efi.patch |
147 |
export EFI_VENDOR="gentoo" |
148 |
export EFI_MOUNTPOINT="boot" |
149 |
fi |
150 |
|
151 |
# if the user *really* wants to use their own custom-cflags, let them |
152 |
if use custom-cflags; then |
153 |
einfo "User wants their own CFLAGS - removing defaults" |
154 |
# try and remove all the default custom-cflags |
155 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
156 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
157 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
158 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
159 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
160 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
161 |
-i {} \; || die "failed to re-set custom-cflags" |
162 |
fi |
163 |
|
164 |
# remove -Werror for gcc-4.6's sake |
165 |
find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
166 |
xargs sed -i 's/ *-Werror */ /' |
167 |
# not strictly necessary to fix this |
168 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
169 |
|
170 |
epatch_user |
171 |
} |
172 |
|
173 |
src_configure() { |
174 |
use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
175 |
|
176 |
use debug && myopt="${myopt} debug=y" |
177 |
|
178 |
if use custom-cflags; then |
179 |
filter-flags -fPIE -fstack-protector |
180 |
replace-flags -O3 -O2 |
181 |
else |
182 |
unset CFLAGS |
183 |
fi |
184 |
} |
185 |
|
186 |
src_compile() { |
187 |
# Send raw LDFLAGS so that --as-needed works |
188 |
emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
189 |
} |
190 |
|
191 |
src_install() { |
192 |
local myopt |
193 |
use debug && myopt="${myopt} debug=y" |
194 |
|
195 |
# The 'make install' doesn't 'mkdir -p' the subdirs |
196 |
if use efi; then |
197 |
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
198 |
fi |
199 |
|
200 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
201 |
} |
202 |
|
203 |
pkg_postinst() { |
204 |
elog "Official Xen Guide and the unoffical wiki page:" |
205 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
206 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
207 |
|
208 |
use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
209 |
} |