Gentoo Archives: gentoo-commits

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