1 |
idella4 13/01/28 05:29:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xen-pvgrub-4.2.1.ebuild |
5 |
Log: |
6 |
rm redundant xen-4.2.0-newlib.patch, rm corrupted & redundant 1st. hunk of xen-4.2.0-externals.patch, add adjusted xen-4.2.1-externals.patch, version bump |
7 |
|
8 |
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.15 app-emulation/xen-pvgrub/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.15&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?rev=1.15&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog?r1=1.14&r2=1.15 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v |
20 |
retrieving revision 1.14 |
21 |
retrieving revision 1.15 |
22 |
diff -u -r1.14 -r1.15 |
23 |
--- ChangeLog 4 Dec 2012 19:24:18 -0000 1.14 |
24 |
+++ ChangeLog 28 Jan 2013 05:29:05 -0000 1.15 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for app-emulation/xen-pvgrub |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.14 2012/12/04 19:24:18 scarabeus Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.15 2013/01/28 05:29:05 idella4 Exp $ |
31 |
+ |
32 |
+*xen-pvgrub-4.2.1 (28 Jan 2013) |
33 |
+ |
34 |
+ 28 Jan 2013; Ian Delaney <idella4@g.o> |
35 |
+ +files/xen-4.2.1-externals.patch, +xen-pvgrub-4.2.1.ebuild, |
36 |
+ -files/xen-4.2.0-newlib.patch, files/xen-4.2.0-externals.patch: |
37 |
+ rm redundant xen-4.2.0-newlib.patch, rm corrupted & redundant 1st. hunk of |
38 |
+ xen-4.2.0-externals.patch, add adjusted xen-4.2.1-externals.patch, version |
39 |
+ bump |
40 |
|
41 |
04 Dec 2012; Tomáš Chvátal <scarabeus@g.o> xen-pvgrub-4.1.1-r1.ebuild: |
42 |
This is supposed to be stable amd64 and x86. We do not remove stable keywords |
43 |
|
44 |
|
45 |
|
46 |
1.1 app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: xen-pvgrub-4.2.1.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2013 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1.ebuild,v 1.1 2013/01/28 05:29:05 idella4 Exp $ |
56 |
|
57 |
EAPI="4" |
58 |
|
59 |
inherit flag-o-matic eutils multilib toolchain-funcs |
60 |
|
61 |
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
62 |
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
63 |
GRUB_URL=mirror://gnu-alpha/grub |
64 |
SRC_URI=" |
65 |
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz |
66 |
$GRUB_URL/grub-0.97.tar.gz |
67 |
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz |
68 |
$LIBPCI_URL/pciutils-2.2.9.tar.bz2 |
69 |
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz |
70 |
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz" |
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 |
DEPEND="sys-devel/gettext |
82 |
sys-devel/gcc" |
83 |
|
84 |
RDEPEND="=app-emulation/xen-${PV}" |
85 |
|
86 |
src_prepare() { |
87 |
|
88 |
# if the user *really* wants to use their own custom-cflags, let them |
89 |
if use custom-cflags; then |
90 |
einfo "User wants their own CFLAGS - removing defaults" |
91 |
# try and remove all the default custom-cflags |
92 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
93 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
94 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
95 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
96 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
97 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
98 |
-i {} \; |
99 |
fi |
100 |
|
101 |
#Substitute for internal downloading |
102 |
cp $DISTDIR/zlib-1.2.3.tar.gz \ |
103 |
$DISTDIR/pciutils-2.2.9.tar.bz2 \ |
104 |
$DISTDIR/lwip-1.3.0.tar.gz \ |
105 |
$DISTDIR/newlib-1.16.0.tar.gz \ |
106 |
$DISTDIR/grub-0.97.tar.gz \ |
107 |
./stubdom/ || die "files not coped to stubdom" |
108 |
# Note: tip to patch grub gentoo style, for review soon. This is around 1/3. |
109 |
# cp "${WORKDIR}"/patch/{00[3-6]_all_grub*,010_all_grub*,01[3-9]_all_grub*,0[6-7]0_all_grub*} \ |
110 |
# "${WORKDIR}"/patch/{110_all_grub*,300_all_grub*} \ |
111 |
# stubdom/grub.patches/ || die |
112 |
einfo "files copied to stubdom" |
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}"/${P/-pvgrub/}-externals.patch |
119 |
|
120 |
# Drop .config and Fix gcc-4.6 |
121 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch |
122 |
} |
123 |
|
124 |
src_compile() { |
125 |
use custom-cflags || unset CFLAGS |
126 |
if test-flag-CC -fno-strict-overflow; then |
127 |
append-flags -fno-strict-overflow |
128 |
fi |
129 |
|
130 |
emake CC="$(tc-getCC)" LD="$(tc-getLD)" -C tools/include |
131 |
|
132 |
# TODO; fix those -j1 |
133 |
if use x86; then |
134 |
emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
135 |
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
136 |
elif use amd64; then |
137 |
emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
138 |
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
139 |
if use multilib; then |
140 |
multilib_toolchain_setup x86 |
141 |
emake -j1 XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
142 |
fi |
143 |
fi |
144 |
} |
145 |
|
146 |
src_install() { |
147 |
if use x86; then |
148 |
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
149 |
fi |
150 |
if use amd64; then |
151 |
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
152 |
if use multilib; then |
153 |
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
154 |
fi |
155 |
fi |
156 |
} |
157 |
|
158 |
pkg_postinst() { |
159 |
elog "Official Xen Guide and the unoffical wiki page:" |
160 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
161 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
162 |
} |