1 |
commit: 8c304bb6a18ddba45701f2ca849357f88a7d9929 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 5 07:27:56 2015 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 5 07:45:32 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c304bb6 |
7 |
|
8 |
app-emulation/xen-pvgrub: version bump, 4.5.2 |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
|
12 |
app-emulation/xen-pvgrub/Manifest | 1 + |
13 |
app-emulation/xen-pvgrub/xen-pvgrub-4.5.2.ebuild | 143 +++++++++++++++++++++++ |
14 |
2 files changed, 144 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/xen-pvgrub/Manifest b/app-emulation/xen-pvgrub/Manifest |
17 |
index 21ecd8a..1851d04 100644 |
18 |
--- a/app-emulation/xen-pvgrub/Manifest |
19 |
+++ b/app-emulation/xen-pvgrub/Manifest |
20 |
@@ -5,5 +5,6 @@ DIST pciutils-2.2.9.tar.bz2 212265 SHA256 f60ae61cfbd5da1d849d0beaa21f593c38dac9 |
21 |
DIST polarssl-1.1.4-gpl.tgz 611340 SHA256 2d29fd04a0d0ba29dae6bd29fb418944c08d3916665dcca74afb297ef37584b6 SHA512 88da614e4d3f4409c4fd3bb3e44c7587ba051e3fed4e33d526069a67e8180212e1ea22da984656f50e290049f60ddca65383e5983c0f8884f648d71f698303ad WHIRLPOOL 39448c00dda142a836a78381b446c7b586272a44d8afc867a7ea702228f105bb2adffe757bd6c23af090cff64ef32e7af0c373dccc5145ff4c11552cf3f28383 |
22 |
DIST xen-4.2.5.tar.gz 15671925 SHA256 3cf440866315e8085050eb0586f0447b6b47a08dbed6a72226bf5ed5d89ec567 SHA512 42c0fc241952fc55fc44480fb6752b004b54ae40e946159ec047adf229b65cbfbd810271d01b064ad8fdbddb73c640dcdcb6bc19f91e8968829889c129920dac WHIRLPOOL 762a91c0111892b33e6bd3e7f7714709b04697ad7c2b0919fef6cc9570a343a77fd5a2b82833e75dac9d12d4e41acdcf0743b0d593595910ddd326f5cd721368 |
23 |
DIST xen-4.5.1.tar.gz 18410400 SHA256 668c11d4fca67ac44329e369f810356eacd37b28d28fb96e66aac77f3c5e1371 SHA512 9436243e26bc64bc836a179abdc3a6b1b6fa9d3f2170453092c18be71fa62e18cd4465a9154c0f28a7ac8d69d08361ba1defef240a51197f058c012c3855ba04 WHIRLPOOL 71d8559f86683dd9fb3eb09d3f602de227f281fbd3c8cc258bfdb67c425d9e7c4d21cb0284c123e4263262c1b821fea6d28109861ce60d627f6426d352808d99 |
24 |
+DIST xen-4.5.2.tar.gz 18416220 SHA256 4c9e5dac4eea484974e9f76da2756c8e0973b4e884d28d37e955df9ebf00e7e8 SHA512 e0ce01a5356c254bfde48fae0b0e005c42c1615a7ccf4c1ba7dcf90784777b53995e9a9ae4575e3f19ef341014b34cb8c06e39d68be359f7fd69830501a144dd WHIRLPOOL b50ce28e58d8419915f7f85de7ab23128719fa07c54f28165c4ba864ffe57230230fa7cb61dd2ed7608b8bc178a072124aedc30c61a45fb8b745fc616715219b |
25 |
DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8 |
26 |
DIST zlib-1.2.3.tar.gz 496597 SHA256 1795c7d067a43174113fdf03447532f373e1c6c57c08d61d9e4e9be5e244b05e SHA512 021b958fcd0d346c4ba761bcf0cc40f3522de6186cf5a0a6ea34a70504ce9622b1c2626fce40675bc8282cf5f5ade18473656abc38050f72f5d6480507a2106e WHIRLPOOL 8fd7010faf6a48a9c7ff4bcfe3ce4fe9061eb541259e0a2d0def214e8c4becf2b22e8d6f96f65ca827abffeaa9d96e95ed2402844f99835f7b079fc9f3e84276 |
27 |
|
28 |
diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.5.2.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.5.2.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..a47af58 |
31 |
--- /dev/null |
32 |
+++ b/app-emulation/xen-pvgrub/xen-pvgrub-4.5.2.ebuild |
33 |
@@ -0,0 +1,143 @@ |
34 |
+# Copyright 1999-2015 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+PYTHON_REQ_USE='xml,threads' |
42 |
+ |
43 |
+inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs |
44 |
+ |
45 |
+XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
46 |
+LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
47 |
+GRUB_URL=mirror://gnu-alpha/grub |
48 |
+SRC_URI=" |
49 |
+ http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
50 |
+ $GRUB_URL/grub-0.97.tar.gz |
51 |
+ $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
52 |
+ $LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
53 |
+ $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
54 |
+ $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz |
55 |
+ $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz" |
56 |
+ |
57 |
+S="${WORKDIR}/xen-${PV}" |
58 |
+ |
59 |
+DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem" |
60 |
+HOMEPAGE="http://xen.org/" |
61 |
+LICENSE="GPL-2" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64 -x86" |
64 |
+IUSE="custom-cflags" |
65 |
+ |
66 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
67 |
+ |
68 |
+DEPEND="sys-devel/gettext |
69 |
+ sys-devel/bin86 |
70 |
+ sys-apps/texinfo" |
71 |
+ |
72 |
+RDEPEND=">=app-emulation/xen-4.2.1" |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ python-single-r1_pkg_setup |
76 |
+} |
77 |
+ |
78 |
+retar-externals() { |
79 |
+ # Purely to unclutter src_prepare |
80 |
+ 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" |
81 |
+ |
82 |
+ # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative |
83 |
+ sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \ |
84 |
+ -i "${WORKDIR}"/zlib-1.2.3/configure |
85 |
+ sed -e 's:^AR=ar rc:AR=ar:' \ |
86 |
+ -e s':$(AR) $@:$(AR) rc $@:' \ |
87 |
+ -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in} |
88 |
+ einfo "zlib Makefile edited" |
89 |
+ |
90 |
+ cd "${WORKDIR}" |
91 |
+ tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz |
92 |
+ tar czp grub-0.97 -f grub-0.97.tar.gz |
93 |
+ tar czp lwip -f lwip-1.3.0.tar.gz |
94 |
+ tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz |
95 |
+ tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz |
96 |
+ mv $set "${S}"/stubdom/ |
97 |
+ einfo "tarballs moved to source" |
98 |
+} |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ # if the user *really* wants to use their own custom-cflags, let them |
102 |
+ if use custom-cflags; then |
103 |
+ einfo "User wants their own CFLAGS - removing defaults" |
104 |
+ # try and remove all the default custom-cflags |
105 |
+ find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
106 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
107 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
108 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
109 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
110 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
111 |
+ -i {} \; |
112 |
+ fi |
113 |
+ |
114 |
+ # Patch the unmergeable newlib, fix most of the leftover gcc QA issues |
115 |
+ cp "${FILESDIR}"/newlib-implicits.patch stubdom || die |
116 |
+ |
117 |
+ # Patch stubdom/Makefile to patch insource newlib & prevent internal downloading |
118 |
+ epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch |
119 |
+ |
120 |
+ # fix jobserver in Makefile |
121 |
+ epatch "${FILESDIR}"/${PN}-4.2-jserver.patch |
122 |
+ |
123 |
+ #Substitute for internal downloading. pciutils copied only due to the only .bz2 |
124 |
+ cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom" |
125 |
+ retar-externals || die "re-tar procedure failed" |
126 |
+} |
127 |
+ |
128 |
+src_configure() { |
129 |
+ local myconf="--prefix=${PREFIX}/usr \ |
130 |
+ --libdir=${PREFIX}/usr/$(get_libdir) \ |
131 |
+ --libexecdir=${PREFIX}/usr/libexec \ |
132 |
+ --disable-werror \ |
133 |
+ --disable-xen" |
134 |
+ |
135 |
+ econf ${myconf} |
136 |
+} |
137 |
+ |
138 |
+src_compile() { |
139 |
+ use custom-cflags || unset CFLAGS |
140 |
+ if test-flag-CC -fno-strict-overflow; then |
141 |
+ append-flags -fno-strict-overflow |
142 |
+ fi |
143 |
+ |
144 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include |
145 |
+ |
146 |
+ if use x86; then |
147 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
148 |
+ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
149 |
+ elif use amd64; then |
150 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
151 |
+ XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
152 |
+ if has_multilib_profile; then |
153 |
+ multilib_toolchain_setup x86 |
154 |
+ emake CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
155 |
+ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
156 |
+ fi |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+src_install() { |
161 |
+ if use x86; then |
162 |
+ emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
163 |
+ fi |
164 |
+ if use amd64; then |
165 |
+ emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
166 |
+ if has_multilib_profile; then |
167 |
+ emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
168 |
+ fi |
169 |
+ fi |
170 |
+} |
171 |
+ |
172 |
+pkg_postinst() { |
173 |
+ elog "Official Xen Guide and the offical wiki page:" |
174 |
+ elog "https://wiki.gentoo.org/wiki/Xen" |
175 |
+ elog "http://wiki.xen.org/wiki/Main_Page" |
176 |
+} |