1 |
commit: d87d1584cedee555e83b011a7a32bb9cc486e90f |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 07:33:34 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 07:36:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d87d1584 |
7 |
|
8 |
app-emulation/xen-pvgrub: version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
|
12 |
app-emulation/xen-pvgrub/Manifest | 2 + |
13 |
app-emulation/xen-pvgrub/xen-pvgrub-4.6.3.ebuild | 144 +++++++++++++++++++++++ |
14 |
app-emulation/xen-pvgrub/xen-pvgrub-4.7.0.ebuild | 144 +++++++++++++++++++++++ |
15 |
3 files changed, 290 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/xen-pvgrub/Manifest b/app-emulation/xen-pvgrub/Manifest |
18 |
index 520ce92..9d16eff 100644 |
19 |
--- a/app-emulation/xen-pvgrub/Manifest |
20 |
+++ b/app-emulation/xen-pvgrub/Manifest |
21 |
@@ -5,4 +5,6 @@ DIST pciutils-2.2.9.tar.bz2 212265 SHA256 f60ae61cfbd5da1d849d0beaa21f593c38dac9 |
22 |
DIST polarssl-1.1.4-gpl.tgz 611340 SHA256 2d29fd04a0d0ba29dae6bd29fb418944c08d3916665dcca74afb297ef37584b6 SHA512 88da614e4d3f4409c4fd3bb3e44c7587ba051e3fed4e33d526069a67e8180212e1ea22da984656f50e290049f60ddca65383e5983c0f8884f648d71f698303ad WHIRLPOOL 39448c00dda142a836a78381b446c7b586272a44d8afc867a7ea702228f105bb2adffe757bd6c23af090cff64ef32e7af0c373dccc5145ff4c11552cf3f28383 |
23 |
DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8 |
24 |
DIST xen-4.6.1.tar.gz 19693042 SHA256 44cc2fccba1e147ef4c8da0584ce0f24189c8743de0e3e9a9226da88ddb5f589 SHA512 f01a0b7874abf8b3a81432428d7ba2d5aceb9d75ae20310f8ef49a3a0df927720a51d49090f74fda7f374c779e121ad26da6966a6f2623ed1a7743b4c080427c WHIRLPOOL b4eec12118d602d1b41edee32ed7c0c61646974060bc44e3eedaf78f7c3015c151998f72573fd2bab1992263dd98f09992772334bae7826048d187de7ed022e5 |
25 |
+DIST xen-4.6.3.tar.gz 19707041 SHA256 02badfce9a037bd1bd4a94210c1f6b85467746216c71795805102b514bcf1fc4 SHA512 187a860b40c05139f22b8498a5fae1db173c3110d957147af29a56cb83b7111c9dc4946d65f9dffc847001fc01c5e9bf51886eaa1194bb9cfd0b6dbcd43a2c5c WHIRLPOOL f80fa73727218567b8d6c8d6bab9dfd577c4bb84ac737b084e4396128e8c4aa79776a277f73c283d5b12f17764b183b67fbf8596e240042dd0709f28cbab777e |
26 |
+DIST xen-4.7.0.tar.gz 20702550 SHA256 be5876144d49729572ae06142e0bb93f1c1f2695578141eff2931995add24623 SHA512 2c52c8ef145dfab7d069e79318d5d631e1106a0ddc79d88b3bacf36c7f15cea67dccb704a245e785d2a1e42c6fb6c0ad74832f564aaeec025ad7b864031f0921 WHIRLPOOL 9725ac9fe94e78aab47b0534b5ee1a190106a773bf7d6204fed736abe7069b71937717b6680833736bd02a3a3a43f2eb2162fe7c0d992ddd47d12158b5d9835f |
27 |
DIST zlib-1.2.3.tar.gz 496597 SHA256 1795c7d067a43174113fdf03447532f373e1c6c57c08d61d9e4e9be5e244b05e SHA512 021b958fcd0d346c4ba761bcf0cc40f3522de6186cf5a0a6ea34a70504ce9622b1c2626fce40675bc8282cf5f5ade18473656abc38050f72f5d6480507a2106e WHIRLPOOL 8fd7010faf6a48a9c7ff4bcfe3ce4fe9061eb541259e0a2d0def214e8c4becf2b22e8d6f96f65ca827abffeaa9d96e95ed2402844f99835f7b079fc9f3e84276 |
28 |
|
29 |
diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.6.3.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.6.3.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..bf577ad |
32 |
--- /dev/null |
33 |
+++ b/app-emulation/xen-pvgrub/xen-pvgrub-4.6.3.ebuild |
34 |
@@ -0,0 +1,144 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python2_7 ) |
42 |
+PYTHON_REQ_USE='xml,threads' |
43 |
+ |
44 |
+inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs |
45 |
+ |
46 |
+XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
47 |
+LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
48 |
+GRUB_URL=mirror://gnu-alpha/grub |
49 |
+SRC_URI=" |
50 |
+ http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
51 |
+ $GRUB_URL/grub-0.97.tar.gz |
52 |
+ $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
53 |
+ $LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
54 |
+ $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
55 |
+ $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz |
56 |
+ $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz" |
57 |
+ |
58 |
+S="${WORKDIR}/xen-${PV}" |
59 |
+ |
60 |
+DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" |
61 |
+HOMEPAGE="http://xen.org/" |
62 |
+LICENSE="GPL-2" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~x86" |
65 |
+IUSE="custom-cflags" |
66 |
+ |
67 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
68 |
+ |
69 |
+DEPEND="sys-devel/gettext |
70 |
+ sys-devel/bin86 |
71 |
+ sys-apps/texinfo |
72 |
+ x11-libs/pixman" |
73 |
+ |
74 |
+RDEPEND=">=app-emulation/xen-tools-${PV}" |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ python-single-r1_pkg_setup |
78 |
+} |
79 |
+ |
80 |
+retar-externals() { |
81 |
+ # Purely to unclutter src_prepare |
82 |
+ local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz" |
83 |
+ |
84 |
+ # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative |
85 |
+ sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \ |
86 |
+ -i "${WORKDIR}"/zlib-1.2.3/configure |
87 |
+ sed -e 's:^AR=ar rc:AR=ar:' \ |
88 |
+ -e s':$(AR) $@:$(AR) rc $@:' \ |
89 |
+ -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in} |
90 |
+ einfo "zlib Makefile edited" |
91 |
+ |
92 |
+ cd "${WORKDIR}" |
93 |
+ tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz |
94 |
+ tar czp grub-0.97 -f grub-0.97.tar.gz |
95 |
+ tar czp lwip -f lwip-1.3.0.tar.gz |
96 |
+ tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz |
97 |
+ tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz |
98 |
+ mv $set "${S}"/stubdom/ |
99 |
+ einfo "tarballs moved to source" |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ # if the user *really* wants to use their own custom-cflags, let them |
104 |
+ if use custom-cflags; then |
105 |
+ einfo "User wants their own CFLAGS - removing defaults" |
106 |
+ # try and remove all the default custom-cflags |
107 |
+ find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
108 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
109 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
110 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
111 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
112 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
113 |
+ -i {} \; |
114 |
+ fi |
115 |
+ |
116 |
+ # Patch the unmergeable newlib, fix most of the leftover gcc QA issues |
117 |
+ cp "${FILESDIR}"/newlib-implicits.patch stubdom || die |
118 |
+ |
119 |
+ # Patch stubdom/Makefile to patch insource newlib & prevent internal downloading |
120 |
+ epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch |
121 |
+ |
122 |
+ # fix jobserver in Makefile |
123 |
+ epatch "${FILESDIR}"/${PN}-4.2-jserver.patch |
124 |
+ |
125 |
+ #Substitute for internal downloading. pciutils copied only due to the only .bz2 |
126 |
+ cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom" |
127 |
+ retar-externals || die "re-tar procedure failed" |
128 |
+} |
129 |
+ |
130 |
+src_configure() { |
131 |
+ local myconf="--prefix=${PREFIX}/usr \ |
132 |
+ --libdir=${PREFIX}/usr/$(get_libdir) \ |
133 |
+ --libexecdir=${PREFIX}/usr/libexec \ |
134 |
+ --disable-werror \ |
135 |
+ --disable-xen" |
136 |
+ |
137 |
+ econf ${myconf} |
138 |
+} |
139 |
+ |
140 |
+src_compile() { |
141 |
+ use custom-cflags || unset CFLAGS |
142 |
+ if test-flag-CC -fno-strict-overflow; then |
143 |
+ append-flags -fno-strict-overflow |
144 |
+ fi |
145 |
+ |
146 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include |
147 |
+ |
148 |
+ if use x86; then |
149 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
150 |
+ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
151 |
+ elif use amd64; then |
152 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
153 |
+ XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
154 |
+ if has_multilib_profile; then |
155 |
+ multilib_toolchain_setup x86 |
156 |
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
157 |
+ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
158 |
+ fi |
159 |
+ fi |
160 |
+} |
161 |
+ |
162 |
+src_install() { |
163 |
+ if use x86; then |
164 |
+ emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
165 |
+ fi |
166 |
+ if use amd64; then |
167 |
+ emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
168 |
+ if has_multilib_profile; then |
169 |
+ emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
170 |
+ fi |
171 |
+ fi |
172 |
+} |
173 |
+ |
174 |
+pkg_postinst() { |
175 |
+ elog "Official Xen Guide and the offical wiki page:" |
176 |
+ elog "https://wiki.gentoo.org/wiki/Xen" |
177 |
+ elog "http://wiki.xen.org/wiki/Main_Page" |
178 |
+} |
179 |
|
180 |
diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.7.0.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.7.0.ebuild |
181 |
new file mode 100644 |
182 |
index 0000000..bf577ad |
183 |
--- /dev/null |
184 |
+++ b/app-emulation/xen-pvgrub/xen-pvgrub-4.7.0.ebuild |
185 |
@@ -0,0 +1,144 @@ |
186 |
+# Copyright 1999-2016 Gentoo Foundation |
187 |
+# Distributed under the terms of the GNU General Public License v2 |
188 |
+# $Id$ |
189 |
+ |
190 |
+EAPI=5 |
191 |
+ |
192 |
+PYTHON_COMPAT=( python2_7 ) |
193 |
+PYTHON_REQ_USE='xml,threads' |
194 |
+ |
195 |
+inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs |
196 |
+ |
197 |
+XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
198 |
+LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
199 |
+GRUB_URL=mirror://gnu-alpha/grub |
200 |
+SRC_URI=" |
201 |
+ http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
202 |
+ $GRUB_URL/grub-0.97.tar.gz |
203 |
+ $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
204 |
+ $LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
205 |
+ $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
206 |
+ $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz |
207 |
+ $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz" |
208 |
+ |
209 |
+S="${WORKDIR}/xen-${PV}" |
210 |
+ |
211 |
+DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" |
212 |
+HOMEPAGE="http://xen.org/" |
213 |
+LICENSE="GPL-2" |
214 |
+SLOT="0" |
215 |
+KEYWORDS="~amd64 ~x86" |
216 |
+IUSE="custom-cflags" |
217 |
+ |
218 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
219 |
+ |
220 |
+DEPEND="sys-devel/gettext |
221 |
+ sys-devel/bin86 |
222 |
+ sys-apps/texinfo |
223 |
+ x11-libs/pixman" |
224 |
+ |
225 |
+RDEPEND=">=app-emulation/xen-tools-${PV}" |
226 |
+ |
227 |
+pkg_setup() { |
228 |
+ python-single-r1_pkg_setup |
229 |
+} |
230 |
+ |
231 |
+retar-externals() { |
232 |
+ # Purely to unclutter src_prepare |
233 |
+ local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz" |
234 |
+ |
235 |
+ # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative |
236 |
+ sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \ |
237 |
+ -i "${WORKDIR}"/zlib-1.2.3/configure |
238 |
+ sed -e 's:^AR=ar rc:AR=ar:' \ |
239 |
+ -e s':$(AR) $@:$(AR) rc $@:' \ |
240 |
+ -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in} |
241 |
+ einfo "zlib Makefile edited" |
242 |
+ |
243 |
+ cd "${WORKDIR}" |
244 |
+ tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz |
245 |
+ tar czp grub-0.97 -f grub-0.97.tar.gz |
246 |
+ tar czp lwip -f lwip-1.3.0.tar.gz |
247 |
+ tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz |
248 |
+ tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz |
249 |
+ mv $set "${S}"/stubdom/ |
250 |
+ einfo "tarballs moved to source" |
251 |
+} |
252 |
+ |
253 |
+src_prepare() { |
254 |
+ # if the user *really* wants to use their own custom-cflags, let them |
255 |
+ if use custom-cflags; then |
256 |
+ einfo "User wants their own CFLAGS - removing defaults" |
257 |
+ # try and remove all the default custom-cflags |
258 |
+ find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
259 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
260 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
261 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
262 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
263 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
264 |
+ -i {} \; |
265 |
+ fi |
266 |
+ |
267 |
+ # Patch the unmergeable newlib, fix most of the leftover gcc QA issues |
268 |
+ cp "${FILESDIR}"/newlib-implicits.patch stubdom || die |
269 |
+ |
270 |
+ # Patch stubdom/Makefile to patch insource newlib & prevent internal downloading |
271 |
+ epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch |
272 |
+ |
273 |
+ # fix jobserver in Makefile |
274 |
+ epatch "${FILESDIR}"/${PN}-4.2-jserver.patch |
275 |
+ |
276 |
+ #Substitute for internal downloading. pciutils copied only due to the only .bz2 |
277 |
+ cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom" |
278 |
+ retar-externals || die "re-tar procedure failed" |
279 |
+} |
280 |
+ |
281 |
+src_configure() { |
282 |
+ local myconf="--prefix=${PREFIX}/usr \ |
283 |
+ --libdir=${PREFIX}/usr/$(get_libdir) \ |
284 |
+ --libexecdir=${PREFIX}/usr/libexec \ |
285 |
+ --disable-werror \ |
286 |
+ --disable-xen" |
287 |
+ |
288 |
+ econf ${myconf} |
289 |
+} |
290 |
+ |
291 |
+src_compile() { |
292 |
+ use custom-cflags || unset CFLAGS |
293 |
+ if test-flag-CC -fno-strict-overflow; then |
294 |
+ append-flags -fno-strict-overflow |
295 |
+ fi |
296 |
+ |
297 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include |
298 |
+ |
299 |
+ if use x86; then |
300 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
301 |
+ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
302 |
+ elif use amd64; then |
303 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
304 |
+ XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
305 |
+ if has_multilib_profile; then |
306 |
+ multilib_toolchain_setup x86 |
307 |
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
308 |
+ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
309 |
+ fi |
310 |
+ fi |
311 |
+} |
312 |
+ |
313 |
+src_install() { |
314 |
+ if use x86; then |
315 |
+ emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
316 |
+ fi |
317 |
+ if use amd64; then |
318 |
+ emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
319 |
+ if has_multilib_profile; then |
320 |
+ emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
321 |
+ fi |
322 |
+ fi |
323 |
+} |
324 |
+ |
325 |
+pkg_postinst() { |
326 |
+ elog "Official Xen Guide and the offical wiki page:" |
327 |
+ elog "https://wiki.gentoo.org/wiki/Xen" |
328 |
+ elog "http://wiki.xen.org/wiki/Main_Page" |
329 |
+} |