Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101966 - No static libraries
Summary: No static libraries
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 04:24 UTC by Ervin Németh
Modified: 2005-08-10 08:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ervin Németh 2005-08-10 04:24:21 UTC
It would be nice if Gentoo could be built without static libraries, or at least
most applications in it.

Pros:

1. on my Gentoo box (400 ebuilds installed) static libraries take up 60M of space

2. they are rarely needed, a tipical box needs only *libc and *curses to have
both shared and static libraries

3. Solaris 10 is using no static libraries at all ;)

And for most packeges this would be as simple as "configure --disable-static"...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-10 04:45:20 UTC
(In reply to comment #0)
> It would be nice if Gentoo could be built without static libraries, or at least
> most applications in it.

It would not be really that nice to remove save-your-ass rescue capabilities
made possible thanks to building some stuff static. For the rest, we have
"static" use flag, if you don't like it, don't use it. 

I have no idea to whom this bug should be assigned, portage guys please
re-assign if you don't want it.
Comment 2 SpanKY gentoo-dev 2005-08-10 06:04:14 UTC
INSTALL_MASK="*.a" should cover this
Comment 3 Ervin Németh 2005-08-10 06:25:53 UTC
I'm sorry to say it, but it is not sufficient.

Currently Gentoo builds bash with static ncurses (a bad idea IMHO), ldconfig has
to be statically linked and there is insmod.static, too.

Also the INSTALL_MASK would break gcc.

And openssh is using static openssl libraries, too.

Just to mention a couple of exceptions.
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-08-10 08:19:48 UTC
This is not a portage bug. It's one of those bugs that have no home at the 
moment. It's about changes to general ebuild policy. Perhaps we need a new 
alias? 
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-08-10 08:32:26 UTC
(In reply to comment #4)
> This is not a portage bug. It's one of those bugs that have no home at the 
> moment. It's about changes to general ebuild policy. Perhaps we need a new 
> alias? 

This should IMHO be really discussed elsewhere (like gentoo-dev mailing list) etc.  
Comment 6 SpanKY gentoo-dev 2005-08-10 08:46:43 UTC
ldconfig is provided by glibc and when it is built, it links against the glibc
in the build tree, not against the glibc in /

as for bash, if you had read the ebuild, you'll see that it has a workaround if
statically linking against libnucrses failed