1 |
On Fri, 2008-08-08 at 14:48 +0200, Fabian Groffen wrote: |
2 |
> On 08-08-2008 14:07:08 +0200, Michael Haubenwallner wrote: |
3 |
> > I'd say use the GNU ones if gnulib detects they're better. |
4 |
> |
5 |
> Ok, does that mean gnulib currently doesn't install them if the platform |
6 |
> has "sufficiently good enough" versions? |
7 |
|
8 |
Exactly. |
9 |
|
10 |
> > Iff it is added by default, we definitely need a way to disable this, |
11 |
> > see below. |
12 |
> > |
13 |
> > Question is how many packages break when it's added by default, compared |
14 |
> > to how many packages need it. |
15 |
> |
16 |
> I wouldn't know what package would/could break. In the end they all |
17 |
> "work" with GNU stuff on origin platform: Gentoo Linux. Of course the |
18 |
> "smarter" packages always remain a problem. |
19 |
|
20 |
Trying to define "smarter": |
21 |
Packages that were ported to some non-glibc platforms, but without using |
22 |
gnulib. |
23 |
|
24 |
> |
25 |
> > Now, when -lgnu is there always, we cannot rebuild gnulib itself, as |
26 |
> > it's configure would detect sufficient "libc", and build an empty |
27 |
> > libgnu.a. |
28 |
> > This is the main reason why not to add -lgnu always, or the need to |
29 |
> > disable it. |
30 |
> |
31 |
> Hah, that's valid, but if that's the only thing, I'm willing to either |
32 |
> teach the linker wrapper some neat trick, or to have -lgnu in LDFLAGS |
33 |
> only. (and disable this stupid --as-needed warning) |
34 |
> |
35 |
> Maybe Portage LDFLAGS *is* the best solution, as it is definitely |
36 |
> something you rather don't have by default if you're developing software |
37 |
> yourself (like our users might do), but don't really care about if |
38 |
> you're just trying to get a package compiled (like we do). |
39 |
|
40 |
Agreed, but question is if adding gnulib to LDFLAGS is done per-ebuild |
41 |
(using an eclass function) or per-profile (bashrc fex). The per-profile |
42 |
then needs some disable-gnulib() function. |
43 |
|
44 |
Maybe we should just try 'emerge -e world' with bashrc adding gnulib on |
45 |
several platforms? I'm going to try if I find time to do so... |
46 |
Well, bashrc needs to be intelligent enough to not add it for |
47 |
dev-libs/gnulib and also if gnulib is not installed (for bootstrap). |
48 |
|
49 |
BTW, scandir/alphasort/etc are missing even in upstream-gnulib, so |
50 |
they're still missing on solaris2.9... |
51 |
|
52 |
/haubi/ |
53 |
-- |
54 |
Michael Haubenwallner |
55 |
Gentoo on a different level |