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