Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] sys-boot/grub USE="static" Dale <rdalek1967@×××××.com>