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