Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen-pvgrub: xen-pvgrub-4.4.0.ebuild ChangeLog
Date: Sun, 23 Mar 2014 14:59:47
Message-Id: 20140323145941.5D8F22004F@flycatcher.gentoo.org
1 idella4 14/03/23 14:59:41
2
3 Modified: ChangeLog
4 Added: xen-pvgrub-4.4.0.ebuild
5 Log:
6 bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.51 app-emulation/xen-pvgrub/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 20 Feb 2014 10:25:26 -0000 1.50
24 +++ ChangeLog 23 Mar 2014 14:59:41 -0000 1.51
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-emulation/xen-pvgrub
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.50 2014/02/20 10:25:26 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.51 2014/03/23 14:59:41 idella4 Exp $
30 +
31 +*xen-pvgrub-4.4.0 (23 Mar 2014)
32 +
33 + 23 Mar 2014; Ian Delaney <idella4@g.o>
34 + +files/xen-4.4-fix_dotconfig-gcc.patch, +xen-pvgrub-4.4.0.ebuild:
35 + bump
36
37 20 Feb 2014; Agostino Sarubbo <ago@g.o> xen-pvgrub-4.2.3.ebuild:
38 Stable for x86, wrt bug #500528
39
40
41
42 1.1 app-emulation/xen-pvgrub/xen-pvgrub-4.4.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.4.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.4.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xen-pvgrub-4.4.0.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.4.0.ebuild,v 1.1 2014/03/23 14:59:41 idella4 Exp $
52
53 EAPI=5
54
55 PYTHON_COMPAT=( python{2_6,2_7} )
56 PYTHON_REQ_USE='xml,threads'
57
58 inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs
59
60 XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
61 LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
62 GRUB_URL=mirror://gnu-alpha/grub
63 SRC_URI="
64 http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
65 $GRUB_URL/grub-0.97.tar.gz
66 $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
67 $LIBPCI_URL/pciutils-2.2.9.tar.bz2
68 $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
69 $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
70 $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz"
71
72 S="${WORKDIR}/xen-${PV}"
73
74 DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
75 HOMEPAGE="http://xen.org/"
76 LICENSE="GPL-2"
77 SLOT="0"
78 KEYWORDS="~amd64 ~x86"
79 IUSE="custom-cflags"
80
81 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
82
83 DEPEND="sys-devel/gettext
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 # Drop .config and Fix gcc-4.6
135 epatch "${FILESDIR}"/${PN/-pvgrub/}-4.4-fix_dotconfig-gcc.patch
136
137 # fix jobserver in Makefile
138 epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
139
140 #Substitute for internal downloading. pciutils copied only due to the only .bz2
141 cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
142 retar-externals || die "re-tar procedure failed"
143 }
144
145 src_compile() {
146 use custom-cflags || unset CFLAGS
147 if test-flag-CC -fno-strict-overflow; then
148 append-flags -fno-strict-overflow
149 fi
150
151 emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
152
153 if use x86; then
154 emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
155 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
156 elif use amd64; then
157 emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
158 XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
159 if has_multilib_profile; then
160 multilib_toolchain_setup x86
161 emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
162 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
163 fi
164 fi
165 }
166
167 src_install() {
168 if use x86; then
169 emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
170 fi
171 if use amd64; then
172 emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
173 if has_multilib_profile; then
174 emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
175 fi
176 fi
177 }
178
179 pkg_postinst() {
180 elog "Official Xen Guide and the offical wiki page:"
181 elog "https://wiki.gentoo.org/wiki/Xen"
182 elog "http://wiki.xen.org/wiki/Main_Page"
183 }