1 |
floppym 12/04/07 21:33:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: grub-2.00_beta3-r1.ebuild |
5 |
Log: |
6 |
Add patch to support genkernel initramfs in 10_linux. |
7 |
|
8 |
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.195 sys-boot/grub/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/ChangeLog?rev=1.195&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/ChangeLog?rev=1.195&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/ChangeLog?r1=1.194&r2=1.195 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v |
20 |
retrieving revision 1.194 |
21 |
retrieving revision 1.195 |
22 |
diff -u -r1.194 -r1.195 |
23 |
--- ChangeLog 1 Apr 2012 21:28:06 -0000 1.194 |
24 |
+++ ChangeLog 7 Apr 2012 21:33:13 -0000 1.195 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-boot/grub |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.194 2012/04/01 21:28:06 floppym Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.195 2012/04/07 21:33:13 floppym Exp $ |
30 |
+ |
31 |
+*grub-2.00_beta3-r1 (07 Apr 2012) |
32 |
+ |
33 |
+ 07 Apr 2012; Mike Gilbert <floppym@g.o> |
34 |
+ +files/grub-2.00-10_linux-genkernel.patch, +grub-2.00_beta3-r1.ebuild: |
35 |
+ Add patch to support genkernel initramfs in 10_linux. |
36 |
|
37 |
*grub-2.00_beta3 (01 Apr 2012) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-boot/grub/grub-2.00_beta3-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/grub-2.00_beta3-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/grub-2.00_beta3-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: grub-2.00_beta3-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.00_beta3-r1.ebuild,v 1.1 2012/04/07 21:33:13 floppym Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
if [[ ${PV} == "9999" ]] ; then |
56 |
EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" |
57 |
LIVE_ECLASS="bzr" |
58 |
SRC_URI="" |
59 |
DO_AUTORECONF="true" |
60 |
else |
61 |
MY_P=${P/_/\~} |
62 |
if [[ ${PV} == *_alpha* || ${PV} == *_beta* ]]; then |
63 |
SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz" |
64 |
else |
65 |
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz |
66 |
mirror://gentoo/${MY_P}.tar.xz" |
67 |
fi |
68 |
# Masked until documentation guys consolidate the guide and approve |
69 |
# it for usage. |
70 |
#KEYWORDS="~amd64 ~mips ~x86" |
71 |
S=${WORKDIR}/${MY_P} |
72 |
fi |
73 |
|
74 |
inherit eutils flag-o-matic pax-utils toolchain-funcs ${DO_AUTORECONF:+autotools} ${LIVE_ECLASS} |
75 |
unset LIVE_ECLASS |
76 |
|
77 |
DESCRIPTION="GNU GRUB boot loader" |
78 |
HOMEPAGE="http://www.gnu.org/software/grub/" |
79 |
|
80 |
LICENSE="GPL-3" |
81 |
SLOT="2" |
82 |
IUSE="custom-cflags debug device-mapper efiemu mount nls static sdl truetype libzfs" |
83 |
|
84 |
GRUB_PLATFORMS=( |
85 |
# everywhere: |
86 |
emu |
87 |
# mips only: |
88 |
qemu-mips yeeloong |
89 |
# amd64, x86, ppc, ppc64: |
90 |
ieee1275 |
91 |
# amd64, x86: |
92 |
coreboot multiboot efi-32 pc qemu |
93 |
# amd64, ia64: |
94 |
efi-64 |
95 |
) |
96 |
IUSE+=" ${GRUB_PLATFORMS[@]/#/grub_platforms_}" |
97 |
|
98 |
# os-prober: Used on runtime to detect other OSes |
99 |
# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue |
100 |
RDEPEND=" |
101 |
dev-libs/libisoburn |
102 |
dev-libs/lzo |
103 |
sys-boot/os-prober |
104 |
>=sys-libs/ncurses-5.2-r5 |
105 |
debug? ( |
106 |
sdl? ( media-libs/libsdl ) |
107 |
) |
108 |
device-mapper? ( >=sys-fs/lvm2-2.02.45 ) |
109 |
libzfs? ( sys-fs/zfs ) |
110 |
mount? ( sys-fs/fuse ) |
111 |
truetype? ( media-libs/freetype >=media-fonts/unifont-5 )" |
112 |
DEPEND="${RDEPEND} |
113 |
>=dev-lang/python-2.5.2 |
114 |
sys-devel/flex |
115 |
virtual/yacc |
116 |
sys-apps/texinfo |
117 |
" |
118 |
RDEPEND+=" |
119 |
grub_platforms_efi-32? ( sys-boot/efibootmgr ) |
120 |
grub_platforms_efi-64? ( sys-boot/efibootmgr ) |
121 |
" |
122 |
if [[ -n ${DO_AUTORECONF} ]] ; then |
123 |
DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man" |
124 |
else |
125 |
DEPEND+=" app-arch/xz-utils" |
126 |
fi |
127 |
|
128 |
export STRIP_MASK="*/grub/*/*.{mod,img}" |
129 |
|
130 |
QA_EXECSTACK=" |
131 |
usr/bin/grub* |
132 |
usr/sbin/grub* |
133 |
usr/lib*/grub/*/*.mod |
134 |
usr/lib*/grub/*/kernel.exec |
135 |
usr/lib*/grub/*/kernel.img |
136 |
usr/lib*/grub/*/setjmp.module |
137 |
" |
138 |
|
139 |
QA_WX_LOAD=" |
140 |
usr/lib*/grub/*/kernel.exec |
141 |
usr/lib*/grub/*/kernel.img |
142 |
usr/lib*/grub/*/*.image |
143 |
" |
144 |
|
145 |
QA_PRESTRIPPED=" |
146 |
usr/lib.*/grub/.*/kernel.img |
147 |
" |
148 |
|
149 |
grub_run_phase() { |
150 |
local phase=$1 |
151 |
local platform=$2 |
152 |
[[ -z ${phase} || -z ${platform} ]] && die "${FUNCNAME} [phase] [platform]" |
153 |
|
154 |
[[ -d "${WORKDIR}/build-${platform}" ]] || \ |
155 |
{ mkdir "${WORKDIR}/build-${platform}" || die ; } |
156 |
pushd "${WORKDIR}/build-${platform}" > /dev/null || die |
157 |
|
158 |
echo ">>> Running ${phase} for platform \"${platform}\"" |
159 |
echo ">>> Working in: \"${WORKDIR}/build-${platform}\"" |
160 |
|
161 |
grub_${phase} ${platform} |
162 |
|
163 |
popd > /dev/null || die |
164 |
} |
165 |
|
166 |
grub_src_configure() { |
167 |
local platform=$1 |
168 |
local with_platform= |
169 |
|
170 |
[[ -z ${platform} ]] && die "${FUNCNAME} [platform]" |
171 |
|
172 |
# Used below for efi cross-building |
173 |
tc-export CC NM OBJCOPY STRIP |
174 |
|
175 |
estack_push CTARGET "${CTARGET}" |
176 |
estack_push TARGET_CC "${TARGET_CC}" |
177 |
estack_push TARGET_CFLAGS "${TARGET_CFLAGS}" |
178 |
estack_push TARGET_CPPFLAGS "${TARGET_CPPFLAGS}" |
179 |
|
180 |
case ${platform} in |
181 |
efi-32) |
182 |
if [[ ${CHOST} == x86_64* ]]; then |
183 |
CTARGET="${CTARGET:-i386}" |
184 |
TARGET_CC="${TARGET_CC:-${CC}}" |
185 |
export TARGET_CC |
186 |
fi |
187 |
with_platform="--with-platform=efi" |
188 |
;; |
189 |
efi-64) |
190 |
if [[ ${CHOST} == i?86* ]]; then |
191 |
CTARGET="${CTARGET:-x86_64}" |
192 |
TARGET_CC="${TARGET_CC:-${CC}}" |
193 |
TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}" |
194 |
TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}" |
195 |
export TARGET_CC TARGET_CFLAGS TARGET_CPPFLAGS |
196 |
fi |
197 |
with_platform="--with-platform=efi" |
198 |
;; |
199 |
guessed) ;; |
200 |
*) with_platform="--with-platform=${platform}" ;; |
201 |
esac |
202 |
|
203 |
ECONF_SOURCE="${S}" \ |
204 |
econf \ |
205 |
--disable-werror \ |
206 |
--program-prefix= \ |
207 |
--program-transform-name="s,grub,grub2," \ |
208 |
--with-grubdir=grub2 \ |
209 |
${with_platform} \ |
210 |
$(use_enable debug mm-debug) \ |
211 |
$(use_enable debug grub-emu-usb) \ |
212 |
$(use_enable device-mapper) \ |
213 |
$(use_enable efiemu) \ |
214 |
$(use_enable mount grub-mount) \ |
215 |
$(use_enable nls) \ |
216 |
$(use_enable truetype grub-mkfont) \ |
217 |
$(use_enable libzfs) \ |
218 |
$(use sdl && use_enable debug grub-emu-sdl) |
219 |
|
220 |
estack_pop CTARGET CTARGET || die |
221 |
estack_pop TARGET_CC TARGET_CC || die |
222 |
estack_pop TARGET_CFLAGS TARGET_CFLAGS || die |
223 |
estack_pop TARGET_CPPFLAGS TARGET_CPPFLAGS || die |
224 |
} |
225 |
|
226 |
grub_src_compile() { |
227 |
default_src_compile |
228 |
pax-mark -mpes "${grub_binaries[@]}" |
229 |
} |
230 |
|
231 |
grub_src_install() { |
232 |
default_src_install |
233 |
} |
234 |
|
235 |
src_prepare() { |
236 |
local i j |
237 |
|
238 |
epatch "${FILESDIR}/grub-2.00-10_linux-genkernel.patch" |
239 |
epatch_user |
240 |
|
241 |
# autogen.sh does more than just run autotools |
242 |
if [[ -n ${DO_AUTORECONF} ]] ; then |
243 |
sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die |
244 |
(. ./autogen.sh) || die |
245 |
fi |
246 |
|
247 |
# install into the right dir for eselect #372735 |
248 |
sed -i \ |
249 |
-e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \ |
250 |
util/bash-completion.d/Makefile.in || die |
251 |
|
252 |
# get enabled platforms |
253 |
GRUB_ENABLED_PLATFORMS="" |
254 |
for i in ${GRUB_PLATFORMS[@]}; do |
255 |
use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}" |
256 |
done |
257 |
[[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed" |
258 |
elog "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}" |
259 |
} |
260 |
|
261 |
src_configure() { |
262 |
local i |
263 |
|
264 |
use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS |
265 |
use libzfs && addpredict /etc/dfs |
266 |
use static && append-ldflags -static |
267 |
|
268 |
for i in ${GRUB_ENABLED_PLATFORMS}; do |
269 |
grub_run_phase ${FUNCNAME} ${i} |
270 |
done |
271 |
} |
272 |
|
273 |
src_compile() { |
274 |
# Used for pax marking in grub_src_compile |
275 |
local grub_binaries=( |
276 |
grub-editenv |
277 |
grub-fstest |
278 |
grub-menulst2cfg |
279 |
grub-mkimage |
280 |
grub-mklayout |
281 |
grub-mkpasswd-pbkdf2 |
282 |
grub-mkrelpath |
283 |
grub-script-check |
284 |
grub-bios-setup |
285 |
grub-ofpathname |
286 |
grub-probe |
287 |
grub-sparc64-setup |
288 |
) |
289 |
use mount && grub_binaries+=( grub-mount ) |
290 |
use truetype && grub_binaries+=( grub-mkfont ) |
291 |
|
292 |
local i |
293 |
|
294 |
for i in ${GRUB_ENABLED_PLATFORMS}; do |
295 |
grub_run_phase ${FUNCNAME} ${i} |
296 |
done |
297 |
} |
298 |
|
299 |
src_install() { |
300 |
local i |
301 |
|
302 |
for i in ${GRUB_ENABLED_PLATFORMS}; do |
303 |
grub_run_phase ${FUNCNAME} ${i} |
304 |
done |
305 |
|
306 |
mv "${ED}"usr/share/info/grub{,2}.info || die |
307 |
|
308 |
# can't be in docs array as we use default_src_install in different builddir |
309 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO |
310 |
insinto /etc/default |
311 |
newins "${FILESDIR}"/grub.default grub |
312 |
} |
313 |
|
314 |
pkg_postinst() { |
315 |
# display the link to guide |
316 |
elog "For information on how to configure grub-2 please refer to the guide:" |
317 |
elog " http://wiki.gentoo.org/wiki/GRUB2_Quick_Start" |
318 |
} |