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 03:19:58
Message-Id: CAA2qdGV8RvJgRyKXJCnFmBCrwHN-RdzBcNTV7SC90HxAwTop-A@mail.gmail.com
In Reply to: Re: [gentoo-user] sys-boot/grub USE="static" by Dale
1 On Thu, Nov 24, 2011 at 09:29, Dale <rdalek1967@×××××.com> wrote:
2 > Pandu Poluan wrote:
3 >
4 > On Nov 24, 2011 5:13 AM, "Florian Philipp" <lists@×××××××××××.net> wrote:
5 >>
6 >> Am 23.11.2011 20:48, schrieb Mark Knecht:
7 >> > On Wed, Nov 23, 2011 at 11:36 AM, Paul Hartman
8 >> > <paul.hartman+gentoo@×××××.com> wrote:
9 >> >> On Tue, Nov 22, 2011 at 9:57 PM, Pandu Poluan <pandu@××××××.info>
10 >> >> wrote:
11 >> >>> I'm just wondering, what are the benefits & drawbacks of turning on
12 >> >>> "static" USE flag for sys-boot/grub?
13 >> >>
14 >> >> I seem to remember it has something to do with whether you're using
15 >> >> 32bit vs 64bit, but I can't be certain.
16 >> >
17 >> > Fundamentally doesn't it build in any libraries, etc.? I don't know
18 >> > really.
19 >> >
20 >> > I actually use the grub-static package on my systems vs grub and
21 >> > messing with USE flags. I think it was Duncan on the amd64 list that
22 >> > recommended that years ago but I haven't a clue as to what the reason
23 >> > was.
24 >> >
25 >> > - Mark
26 >> >
27 >>
28 >> You are referring to this:
29 >> http://www.mail-archive.com/gentoo-amd64@l.g.o/msg12619.html
30 >>
31 >> Also be sure not to confuse sys-boot/grub with USE="static" and
32 >> sys-boot/grub-static. grub-static is required for AMD64 with a
33 >> no-multilib profile (because grub is always 32bit and you cannot build
34 >> grub on such a system). If you have a multilib profile, you can use
35 >> sys-boot/grub with USE="-static" just like me:
36 >>
37 >> ldd /sbin/grub
38 >>        linux-gate.so.1 =>  (0xffffe000)
39 >>        libncurses.so.5 => /lib32/libncurses.so.5 (0xf76bf000)
40 >>        libc.so.6 => /lib32/libc.so.6 (0xf7535000)
41 >>        libdl.so.2 => /lib32/libdl.so.2 (0xf7531000)
42 >>        /lib/ld-linux.so.2 (0xf7733000)
43 >>
44 >> As with all USE="static" flags, there is no real need for a normal
45 >> system unless it helps to avoid a /usr/lib dependency for a /bin or
46 >> /sbin binary which is not the case here. It also doesn't affect the boot
47 >> loader, only its installer.
48 >>
49 >
50 > Thanks, Florian!
51 >
52 > How I wish there's a wiki-style guide explaining USE flags, subtle
53 > differences between packages with similar name, etc.
54 >
55 > ...
56 >
57 > Hmm... I think I'm going to start such a wiki. Unless someone have started
58 > it first.
59 >
60 > Let's see if I can coax my hosting to increase my hosting space without
61 > additional fees...
62 >
63 > Rgds,
64 >
65 > There are already two Gentoo wikis.  One official one and one unofficial I
66 > guess you would call it.  Why not put the info on one or both of these?
67 >
68
69 Uhh... I'm not sure if wiki.g.o or g-w.com will appreciate a sudden
70 addition of 15'308 articles auto-generated from 29'332 ebuilds... [1]
71
72 I plan to implement the wiki using DokuWiki, and auto-generate the
73 articles using some bash scripts. After the skeleton wiki goes up,
74 then edit *some* of the pages (i.e., the ones I have additional info
75 on, like this discussion of the difference between grub[static] and
76 grub-static).
77
78 [1] http://packages.gentoo.org/categories/
79
80 Rgds,
81 --
82 FdS Pandu E Poluan
83 ~ IT Optimizer ~
84
85  • LOPSA Member #15248
86  • Blog : http://pepoluan.tumblr.com
87  • Linked-In : http://id.linkedin.com/in/pepoluan