On Fri, 2008-08-08 at 14:48 +0200, Fabian Groffen wrote:
> On 08-08-2008 14:07:08 +0200, Michael Haubenwallner wrote:
> > I'd say use the GNU ones if gnulib detects they're better.
> 
> Ok, does that mean gnulib currently doesn't install them if the platform
> has "sufficiently good enough" versions?

Exactly.

> > Iff it is added by default, we definitely need a way to disable this,
> > see below.
> > 
> > Question is how many packages break when it's added by default, compared
> > to how many packages need it.
> 
> I wouldn't know what package would/could break.  In the end they all
> "work" with GNU stuff on origin platform: Gentoo Linux.  Of course the
> "smarter" packages always remain a problem.

Trying to define "smarter":
Packages that were ported to some non-glibc platforms, but without using
gnulib.

> 
> > Now, when -lgnu is there always, we cannot rebuild gnulib itself, as
> > it's configure would detect sufficient "libc", and build an empty
> > libgnu.a.
> > This is the main reason why not to add -lgnu always, or the need to
> > disable it.
> 
> Hah, that's valid, but if that's the only thing, I'm willing to either
> teach the linker wrapper some neat trick, or to have -lgnu in LDFLAGS
> only.  (and disable this stupid --as-needed warning)
> 
> Maybe Portage LDFLAGS *is* the best solution, as it is definitely
> something you rather don't have by default if you're developing software
> yourself (like our users might do), but don't really care about if
> you're just trying to get a package compiled (like we do).

Agreed, but question is if adding gnulib to LDFLAGS is done per-ebuild
(using an eclass function) or per-profile (bashrc fex). The per-profile
then needs some disable-gnulib() function.

Maybe we should just try 'emerge -e world' with bashrc adding gnulib on
several platforms? I'm going to try if I find time to do so...
Well, bashrc needs to be intelligent enough to not add it for
dev-libs/gnulib and also if gnulib is not installed (for bootstrap).

BTW, scandir/alphasort/etc are missing even in upstream-gnulib, so
they're still missing on solaris2.9...

/haubi/
-- 
Michael Haubenwallner
Gentoo on a different level


Reply via email to