Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen-pvgrub: ChangeLog xen-pvgrub-4.5.1.ebuild
Date: Mon, 06 Jul 2015 09:39:27
Message-Id: 20150706093920.803E5757@oystercatcher.gentoo.org
1 dlan 15/07/06 09:39:20
2
3 Modified: ChangeLog
4 Added: xen-pvgrub-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.72 app-emulation/xen-pvgrub/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.72&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.72&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?r1=1.71&r2=1.72
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v
20 retrieving revision 1.71
21 retrieving revision 1.72
22 diff -u -r1.71 -r1.72
23 --- ChangeLog 30 Jun 2015 09:34:13 -0000 1.71
24 +++ ChangeLog 6 Jul 2015 09:39:20 -0000 1.72
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-emulation/xen-pvgrub
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.71 2015/06/30 09:34:13 dlan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.72 2015/07/06 09:39:20 dlan Exp $
30 +
31 +*xen-pvgrub-4.5.1 (06 Jul 2015)
32 +
33 + 06 Jul 2015; Yixun Lan <dlan@g.o> +xen-pvgrub-4.5.1.ebuild:
34 + bump version to 4.5.1
35
36 30 Jun 2015; Yixun Lan <dlan@g.o> -xen-pvgrub-4.4.2.ebuild:
37 drop 4.2.x series
38
39
40
41 1.1 app-emulation/xen-pvgrub/xen-pvgrub-4.5.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.5.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.5.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xen-pvgrub-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-pvgrub/xen-pvgrub-4.5.1.ebuild,v 1.1 2015/07/06 09:39:20 dlan Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python2_7 )
55 PYTHON_REQ_USE='xml,threads'
56
57 inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs
58
59 XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
60 LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
61 GRUB_URL=mirror://gnu-alpha/grub
62 SRC_URI="
63 http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
64 $GRUB_URL/grub-0.97.tar.gz
65 $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
66 $LIBPCI_URL/pciutils-2.2.9.tar.bz2
67 $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
68 $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
69 $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz"
70
71 S="${WORKDIR}/xen-${PV}"
72
73 DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
74 HOMEPAGE="http://xen.org/"
75 LICENSE="GPL-2"
76 SLOT="0"
77 KEYWORDS="~amd64 -x86"
78 IUSE="custom-cflags"
79
80 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
81
82 DEPEND="sys-devel/gettext
83 sys-devel/bin86
84 sys-apps/texinfo"
85
86 RDEPEND=">=app-emulation/xen-4.2.1"
87
88 pkg_setup() {
89 python-single-r1_pkg_setup
90 }
91
92 retar-externals() {
93 # Purely to unclutter src_prepare
94 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"
95
96 # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
97 sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
98 -i "${WORKDIR}"/zlib-1.2.3/configure
99 sed -e 's:^AR=ar rc:AR=ar:' \
100 -e s':$(AR) $@:$(AR) rc $@:' \
101 -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
102 einfo "zlib Makefile edited"
103
104 cd "${WORKDIR}"
105 tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
106 tar czp grub-0.97 -f grub-0.97.tar.gz
107 tar czp lwip -f lwip-1.3.0.tar.gz
108 tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
109 tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
110 mv $set "${S}"/stubdom/
111 einfo "tarballs moved to source"
112 }
113
114 src_prepare() {
115 # if the user *really* wants to use their own custom-cflags, let them
116 if use custom-cflags; then
117 einfo "User wants their own CFLAGS - removing defaults"
118 # try and remove all the default custom-cflags
119 find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
120 -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
121 -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
122 -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
123 -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
124 -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
125 -i {} \;
126 fi
127
128 # Patch the unmergeable newlib, fix most of the leftover gcc QA issues
129 cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
130
131 # Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
132 epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
133
134 # fix jobserver in Makefile
135 epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
136
137 #Substitute for internal downloading. pciutils copied only due to the only .bz2
138 cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
139 retar-externals || die "re-tar procedure failed"
140 }
141
142 src_configure() {
143 local myconf="--prefix=${PREFIX}/usr \
144 --libdir=${PREFIX}/usr/$(get_libdir) \
145 --libexecdir=${PREFIX}/usr/libexec \
146 --disable-werror \
147 --disable-xen"
148
149 econf ${myconf}
150 }
151
152 src_compile() {
153 use custom-cflags || unset CFLAGS
154 if test-flag-CC -fno-strict-overflow; then
155 append-flags -fno-strict-overflow
156 fi
157
158 emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
159
160 if use x86; then
161 emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
162 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
163 elif use amd64; then
164 emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
165 XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
166 if has_multilib_profile; then
167 multilib_toolchain_setup x86
168 emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
169 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
170 fi
171 fi
172 }
173
174 src_install() {
175 if use x86; then
176 emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
177 fi
178 if use amd64; then
179 emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
180 if has_multilib_profile; then
181 emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
182 fi
183 fi
184 }
185
186 pkg_postinst() {
187 elog "Official Xen Guide and the offical wiki page:"
188 elog "https://wiki.gentoo.org/wiki/Xen"
189 elog "http://wiki.xen.org/wiki/Main_Page"
190 }