Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-boot/grub: ChangeLog grub-0.97-r5.ebuild
Date: Sun, 30 Mar 2008 05:12:46
Message-Id: E1JfpqQ-0000DS-Rm@stork.gentoo.org
1 robbat2 08/03/30 05:12:38
2
3 Modified: ChangeLog grub-0.97-r5.ebuild
4 Log:
5 Per bug #160801, Grub needs modification to support kernels larger than 3Mb. However, this may have negative consequences, so the actual value is configurable at compile-time via the GRUB_MAX_KERNEL_SIE environment variable.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.85 sys-boot/grub/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/grub/ChangeLog?rev=1.85&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/grub/ChangeLog?rev=1.85&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/grub/ChangeLog?r1=1.84&r2=1.85
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v
18 retrieving revision 1.84
19 retrieving revision 1.85
20 diff -p -w -b -B -u -u -r1.84 -r1.85
21 --- ChangeLog 29 Mar 2008 01:28:50 -0000 1.84
22 +++ ChangeLog 30 Mar 2008 05:12:38 -0000 1.85
23 @@ -1,6 +1,12 @@
24 # ChangeLog for sys-boot/grub
25 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.84 2008/03/29 01:28:50 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.85 2008/03/30 05:12:38 robbat2 Exp $
28 +
29 + 30 Mar 2008; Robin H. Johnson <robbat2@g.o> grub-0.97-r5.ebuild:
30 + Per bug #160801, Grub needs modification to support kernels larger than
31 + 3Mb. However, this may have negative consequences, so the actual value is
32 + configurable at compile-time via the GRUB_MAX_KERNEL_SIZE environment
33 + variable.
34
35 29 Mar 2008; Mike Frysinger <vapier@g.o> grub-0.97-r5.ebuild:
36 Pull in app-emulation/emul-linux-x86-baselibs for USE=ncurses on amd64 #128249.
37
38
39
40 1.4 sys-boot/grub/grub-0.97-r5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/grub/grub-0.97-r5.ebuild?rev=1.4&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/grub/grub-0.97-r5.ebuild?rev=1.4&content-type=text/plain
44 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/grub/grub-0.97-r5.ebuild?r1=1.3&r2=1.4
45
46 Index: grub-0.97-r5.ebuild
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r5.ebuild,v
49 retrieving revision 1.3
50 retrieving revision 1.4
51 diff -p -w -b -B -u -u -r1.3 -r1.4
52 --- grub-0.97-r5.ebuild 29 Mar 2008 01:28:50 -0000 1.3
53 +++ grub-0.97-r5.ebuild 30 Mar 2008 05:12:38 -0000 1.4
54 @@ -1,6 +1,6 @@
55 # Copyright 1999-2008 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r5.ebuild,v 1.3 2008/03/29 01:28:50 vapier Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r5.ebuild,v 1.4 2008/03/30 05:12:38 robbat2 Exp $
59
60 inherit mount-boot eutils flag-o-matic toolchain-funcs autotools
61
62 @@ -30,6 +30,27 @@ src_unpack() {
63 # patch breaks booting for some people #111885
64 rm "${WORKDIR}"/patch/400_*
65
66 + # Grub will not handle a kernel larger than EXTENDED_MEMSIZE Mb as
67 + # discovered in bug 160801. We can change this, however, using larger values
68 + # for this variable means that Grub needs more memory to run and boot. For a
69 + # kernel of size N, Grub needs (N+1)*2. Advanced users should set a custom
70 + # value in make.conf, it is possible to make kernels ~16Mb in size, but it
71 + # needs the kitchen sink built-in.
72 + local t="custom"
73 + if [[ -z "$GRUB_MAX_KERNEL_SIZE" ]]; then
74 + case $ARCH in
75 + amd64*) GRUB_MAX_KERNEL_SIZE=7 ;;
76 + x86*) GRUB_MAX_KERNEL_SIZE=3 ;;
77 + esac
78 + t="default"
79 + fi
80 + einfo "Grub will support the ${t} maximum kernel size of ${GRUB_MAX_KERNEL_SIZE} Mb (GRUB_MAX_KERNEL_SIZE)"
81 +
82 + sed -i \
83 + -e "/^#define.*EXTENDED_MEMSIZE/s,3,${GRUB_MAX_KERNEL_SIZE},g" \
84 + "${S}"/grub/asmstub.c \
85 + || die "Failed to hack memory size"
86 +
87 if [[ -n ${PATCHVER} ]] ; then
88 EPATCH_SUFFIX="patch"
89 epatch "${WORKDIR}"/patch
90
91
92
93 --
94 gentoo-commits@l.g.o mailing list