Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sys-boot/grub USE="static"
Date: Wed, 23 Nov 2011 22:11:49
Message-Id: 4ECD6F5C.9020008@binarywings.net
In Reply to: Re: [gentoo-user] sys-boot/grub USE="static" by Mark Knecht
1 Am 23.11.2011 20:48, schrieb Mark Knecht:
2 > On Wed, Nov 23, 2011 at 11:36 AM, Paul Hartman
3 > <paul.hartman+gentoo@×××××.com> wrote:
4 >> On Tue, Nov 22, 2011 at 9:57 PM, Pandu Poluan <pandu@××××××.info> wrote:
5 >>> I'm just wondering, what are the benefits & drawbacks of turning on
6 >>> "static" USE flag for sys-boot/grub?
7 >>
8 >> I seem to remember it has something to do with whether you're using
9 >> 32bit vs 64bit, but I can't be certain.
10 >
11 > Fundamentally doesn't it build in any libraries, etc.? I don't know really.
12 >
13 > I actually use the grub-static package on my systems vs grub and
14 > messing with USE flags. I think it was Duncan on the amd64 list that
15 > recommended that years ago but I haven't a clue as to what the reason
16 > was.
17 >
18 > - Mark
19 >
20
21 You are referring to this:
22 http://www.mail-archive.com/gentoo-amd64@l.g.o/msg12619.html
23
24 Also be sure not to confuse sys-boot/grub with USE="static" and
25 sys-boot/grub-static. grub-static is required for AMD64 with a
26 no-multilib profile (because grub is always 32bit and you cannot build
27 grub on such a system). If you have a multilib profile, you can use
28 sys-boot/grub with USE="-static" just like me:
29
30 ldd /sbin/grub
31 linux-gate.so.1 => (0xffffe000)
32 libncurses.so.5 => /lib32/libncurses.so.5 (0xf76bf000)
33 libc.so.6 => /lib32/libc.so.6 (0xf7535000)
34 libdl.so.2 => /lib32/libdl.so.2 (0xf7531000)
35 /lib/ld-linux.so.2 (0xf7733000)
36
37 As with all USE="static" flags, there is no real need for a normal
38 system unless it helps to avoid a /usr/lib dependency for a /bin or
39 /sbin binary which is not the case here. It also doesn't affect the boot
40 loader, only its installer.
41
42 Regards,
43 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] sys-boot/grub USE="static" Mark Knecht <markknecht@×××××.com>
Re: [gentoo-user] sys-boot/grub USE="static" Pandu Poluan <pandu@××××××.info>