public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Say no to static libraries!
@ 2005-09-22  9:23 Ervin Németh
  2005-09-22  9:48 ` Paul de Vrieze
  2005-09-22 13:28 ` Mike Frysinger
  0 siblings, 2 replies; 18+ messages in thread
From: Ervin Németh @ 2005-09-22  9:23 UTC (permalink / raw
  To: gentoo-dev

But how?

If I do a "du -hc /usr/lib/lib*.a | tail -n1", it shows 63M. And I
really don't need them.

Why INSTALL_MASK="*.a" is bad?

  * It would break bash, because the ebuild expects a static libcurses.

  * It would not save compile time. I would really appreciate if gtk+
compiled twice as fast.

Solution?

For automake packages it is as simple as giving a --disable-static to configure.

Any thoughts?


/Ervin

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Say no to static libraries!
  2005-09-22  9:23 [gentoo-dev] Say no to static libraries! Ervin Németh
@ 2005-09-22  9:48 ` Paul de Vrieze
  2005-09-22 13:28 ` Mike Frysinger
  1 sibling, 0 replies; 18+ messages in thread
From: Paul de Vrieze @ 2005-09-22  9:48 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

On Thursday 22 September 2005 11:23, Ervin Németh wrote:
> But how?
>
> If I do a "du -hc /usr/lib/lib*.a | tail -n1", it shows 63M. And I
> really don't need them.
>
> Why INSTALL_MASK="*.a" is bad?
>
>   * It would break bash, because the ebuild expects a static libcurses.
>
>   * It would not save compile time. I would really appreciate if gtk+
> compiled twice as fast.
>
> Solution?
>
> For automake packages it is as simple as giving a --disable-static to
> configure.
>
> Any thoughts?

Certain packages require static libs, but indeed for many they could be 
left out.

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: pauldv@gentoo.org
Homepage: http://www.devrieze.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Say no to static libraries!
  2005-09-22  9:23 [gentoo-dev] Say no to static libraries! Ervin Németh
  2005-09-22  9:48 ` Paul de Vrieze
@ 2005-09-22 13:28 ` Mike Frysinger
  2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
  2005-09-23 14:59   ` [gentoo-dev] " Paweł Madej
  1 sibling, 2 replies; 18+ messages in thread
From: Mike Frysinger @ 2005-09-22 13:28 UTC (permalink / raw
  To: gentoo-dev

On Thursday 22 September 2005 05:23 am, Ervin Németh wrote:
>   * It would break bash, because the ebuild expects a static libcurses.

well, yes and no ... if static ncurses is unavailable, the bash ebuild will 
use the bundled gnutermcap (which sucks hard compared to ncurses)

> For automake packages it is as simple as giving a --disable-static to
> configure.

you can put 'EXTRA_ECONF=--disable-static' into your /etc/make.conf ...
-mike

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-dev] Re: Say no to static libraries!
  2005-09-22 13:28 ` Mike Frysinger
@ 2005-09-23  8:10   ` Ervin Nemeth
  2005-09-23  8:23     ` Philippe Trottier
                       ` (3 more replies)
  2005-09-23 14:59   ` [gentoo-dev] " Paweł Madej
  1 sibling, 4 replies; 18+ messages in thread
From: Ervin Nemeth @ 2005-09-23  8:10 UTC (permalink / raw
  To: gentoo-dev

Mike Frysinger wrote:
> On Thursday 22 September 2005 05:23 am, Ervin Németh wrote:
>>For automake packages it is as simple as giving a --disable-static to
>>configure.
> 
> 
> you can put 'EXTRA_ECONF=--disable-static' into your /etc/make.conf ...

Thanks Mika, it works perfectly!

Now let's do the same for xorg-x11, zlib, acl, attr, db, jpeg and so on.

Do you feel the need for a new USE flag?


/Ervin
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
@ 2005-09-23  8:23     ` Philippe Trottier
  2005-09-23  8:45     ` Donnie Berkholz
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 18+ messages in thread
From: Philippe Trottier @ 2005-09-23  8:23 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ervin Nemeth wrote:
> Mike Frysinger wrote:
> 
>>On Thursday 22 September 2005 05:23 am, Ervin Németh wrote:
>>
>>>For automake packages it is as simple as giving a --disable-static to
>>>configure.
>>
>>
>>you can put 'EXTRA_ECONF=--disable-static' into your /etc/make.conf ...
> 
> 
> Thanks Mika, it works perfectly!
> 
> Now let's do the same for xorg-x11, zlib, acl, attr, db, jpeg and so on.
> 
> Do you feel the need for a new USE flag?

Some people, like me, uses these static libraries, a lot, so a USE flag
would be the way to go.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDM7t2P0/FkJ0eBc0RAlkbAJ9Q6TTiKJuVTUZETAUUqCIeEi3yhgCfdJW0
+dvJcsg10K3LEBfzOiAwgbU=
=mvAu
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
  2005-09-23  8:23     ` Philippe Trottier
@ 2005-09-23  8:45     ` Donnie Berkholz
  2005-09-23  8:54       ` Paul de Vrieze
  2005-09-23 13:53       ` Ervin Nemeth
  2005-09-23  9:02     ` Thomas de Grenier de Latour
  2005-09-23 12:39     ` Mike Frysinger
  3 siblings, 2 replies; 18+ messages in thread
From: Donnie Berkholz @ 2005-09-23  8:45 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ervin Nemeth wrote:
| Now let's do the same for xorg-x11,

Ha, good luck trying to pass standard configure options into imake.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDM8ChXVaO67S1rtsRAqtiAJ9HTNKxUKpEJq/O/BAjZ8WkBq510QCgj89Y
zvyBx3sx+RTheup0ZzURfUA=
=VFXF
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  8:45     ` Donnie Berkholz
@ 2005-09-23  8:54       ` Paul de Vrieze
  2005-09-23 13:53       ` Ervin Nemeth
  1 sibling, 0 replies; 18+ messages in thread
From: Paul de Vrieze @ 2005-09-23  8:54 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

On Friday 23 September 2005 10:45, Donnie Berkholz wrote:
> Ervin Nemeth wrote:
> | Now let's do the same for xorg-x11,
>
> Ha, good luck trying to pass standard configure options into imake.

I though the 7.0 release of xorg-x11 would be split AND autotooled ;-)

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: pauldv@gentoo.org
Homepage: http://www.devrieze.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
  2005-09-23  8:23     ` Philippe Trottier
  2005-09-23  8:45     ` Donnie Berkholz
@ 2005-09-23  9:02     ` Thomas de Grenier de Latour
  2005-09-23 12:38       ` Mike Frysinger
  2005-09-23 12:39     ` Mike Frysinger
  3 siblings, 1 reply; 18+ messages in thread
From: Thomas de Grenier de Latour @ 2005-09-23  9:02 UTC (permalink / raw
  To: gentoo-dev

On Fri, 23 Sep 2005 10:10:11 +0200
Ervin Nemeth <ervin.nemeth@gmail.com> wrote:

> Do you feel the need for a new USE flag?

There is already a "static" flag, and that's what it actually does
for some packages (most gnome-related libs for instance).

Side note: i'm not saying it's the perfect solution though, at
least not until USE-deps get supported by portage... Imho,
it's two different things to "statically compile an application"
and to "also provide the static version of a library".  If it was
two separate flags, i would probably leave the first one off, but
turn on the second, because i care less about the wasted space than
about random compilation issues with packages who want libxml2.a or
things like that.  Sure with USE-deps it would be different since
this packages could depend on "dev-libs/libxml2:+static" (or
whatever syntax it will be). 

--
TGL.
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  9:02     ` Thomas de Grenier de Latour
@ 2005-09-23 12:38       ` Mike Frysinger
  0 siblings, 0 replies; 18+ messages in thread
From: Mike Frysinger @ 2005-09-23 12:38 UTC (permalink / raw
  To: gentoo-dev

On Friday 23 September 2005 05:02 am, Thomas de Grenier de Latour wrote:
> On Fri, 23 Sep 2005 10:10:11 +0200
>
> Ervin Nemeth <ervin.nemeth@gmail.com> wrote:
> > Do you feel the need for a new USE flag?
>
> There is already a "static" flag, and that's what it actually does
> for some packages (most gnome-related libs for instance).

the static USE flags is NOT for controlling the generation of static 
libraries ... if packages exhibit that behavior, they are broken, please file 
bugs
-mike
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
                       ` (2 preceding siblings ...)
  2005-09-23  9:02     ` Thomas de Grenier de Latour
@ 2005-09-23 12:39     ` Mike Frysinger
  2005-09-23 14:19       ` Ervin Nemeth
  3 siblings, 1 reply; 18+ messages in thread
From: Mike Frysinger @ 2005-09-23 12:39 UTC (permalink / raw
  To: gentoo-dev

On Friday 23 September 2005 04:10 am, Ervin Nemeth wrote:
> Mike Frysinger wrote:
> > On Thursday 22 September 2005 05:23 am, Ervin Németh wrote:
> >>For automake packages it is as simple as giving a --disable-static to
> >>configure.
> >
> > you can put 'EXTRA_ECONF=--disable-static' into your /etc/make.conf ...
>
> Now let's do the same for xorg-x11, zlib, acl, attr, db, jpeg and so on.
>
> Do you feel the need for a new USE flag?

i dont feel the need to change anything.  you already have two good examples 
for controlling static libraries on your system.
-mike

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-dev] Re: Say no to static libraries!
  2005-09-23  8:45     ` Donnie Berkholz
  2005-09-23  8:54       ` Paul de Vrieze
@ 2005-09-23 13:53       ` Ervin Nemeth
  2005-09-23 14:05         ` Mike Frysinger
  2005-09-23 17:37         ` Donnie Berkholz
  1 sibling, 2 replies; 18+ messages in thread
From: Ervin Nemeth @ 2005-09-23 13:53 UTC (permalink / raw
  To: gentoo-dev

Donnie Berkholz wrote:
> Ervin Nemeth wrote:
> | Now let's do the same for xorg-x11,
> 
> Ha, good luck trying to pass standard configure options into imake.

I see, but how about defining ForceNormalLib as NO in host.def?


/Ervin
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23 13:53       ` Ervin Nemeth
@ 2005-09-23 14:05         ` Mike Frysinger
  2005-09-23 14:22           ` Ervin Nemeth
  2005-09-23 17:37         ` Donnie Berkholz
  1 sibling, 1 reply; 18+ messages in thread
From: Mike Frysinger @ 2005-09-23 14:05 UTC (permalink / raw
  To: gentoo-dev

On Friday 23 September 2005 09:53 am, Ervin Nemeth wrote:
> Donnie Berkholz wrote:
> > Ervin Nemeth wrote:
> > | Now let's do the same for xorg-x11,
> >
> > Ha, good luck trying to pass standard configure options into imake.
>
> I see, but how about defining ForceNormalLib as NO in host.def?

probably best to just leave monolithic xorg-x11 alone

it produces a bunch of static-only libraries
-mike
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-dev] Re: Say no to static libraries!
  2005-09-23 12:39     ` Mike Frysinger
@ 2005-09-23 14:19       ` Ervin Nemeth
  2005-09-23 14:37         ` Brian Jackson
  0 siblings, 1 reply; 18+ messages in thread
From: Ervin Nemeth @ 2005-09-23 14:19 UTC (permalink / raw
  To: gentoo-dev

Mike Frysinger wrote:
> On Friday 23 September 2005 04:10 am, Ervin Nemeth wrote:
> 
>>Mike Frysinger wrote:
>>
>>>On Thursday 22 September 2005 05:23 am, Ervin Németh wrote:
>>>
>>>>For automake packages it is as simple as giving a --disable-static to
>>>>configure.
>>>
>>>you can put 'EXTRA_ECONF=--disable-static' into your /etc/make.conf ...
>>
>>Now let's do the same for xorg-x11, zlib, acl, attr, db, jpeg and so on.
>>
>>Do you feel the need for a new USE flag?
> 
> i dont feel the need to change anything.  you already have two good examples 
> for controlling static libraries on your system.

I've got no full solution.

The EXTRA_ECONF way works only for automake packages.

Using INSTALL_MASK='*.a' makes me really, really terrified if I think
about sys-devel/gcc.


/Ervin
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-dev] Re: Say no to static libraries!
  2005-09-23 14:05         ` Mike Frysinger
@ 2005-09-23 14:22           ` Ervin Nemeth
  0 siblings, 0 replies; 18+ messages in thread
From: Ervin Nemeth @ 2005-09-23 14:22 UTC (permalink / raw
  To: gentoo-dev

Mike Frysinger wrote:
> On Friday 23 September 2005 09:53 am, Ervin Nemeth wrote:
>>I see, but how about defining ForceNormalLib as NO in host.def?
> 
> it produces a bunch of static-only libraries

And ForceNormalLib doesn't affect those libraries. INSTALL_MASK does,
however.


/Ervin
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23 14:19       ` Ervin Nemeth
@ 2005-09-23 14:37         ` Brian Jackson
  2005-09-23 16:52           ` Ervin Nemeth
  0 siblings, 1 reply; 18+ messages in thread
From: Brian Jackson @ 2005-09-23 14:37 UTC (permalink / raw
  To: gentoo-dev

Ervin Nemeth wrote:
<snip>
> 
> 
> I've got no full solution.
> 
> The EXTRA_ECONF way works only for automake packages.
> 
> Using INSTALL_MASK='*.a' makes me really, really terrified if I think
> about sys-devel/gcc.
> 
> 
> /Ervin


Solar had a nifty per package INSTALL_MASK in his bashrc at one point I think.

--Iggy
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Say no to static libraries!
  2005-09-22 13:28 ` Mike Frysinger
  2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
@ 2005-09-23 14:59   ` Paweł Madej
  1 sibling, 0 replies; 18+ messages in thread
From: Paweł Madej @ 2005-09-23 14:59 UTC (permalink / raw
  To: gentoo-dev

Mike Frysinger wrote:
> On Thursday 22 September 2005 05:23 am, Ervin Németh wrote:
 >
> you can put 'EXTRA_ECONF=--disable-static' into your /etc/make.conf ...
> -mike
> 

Is this safe to use on desktop machine or it is only developers 
suggestion for testing? I want to know if it could broke my system after 
some upgrades.

Greets
Pawel
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-dev] Re: Say no to static libraries!
  2005-09-23 14:37         ` Brian Jackson
@ 2005-09-23 16:52           ` Ervin Nemeth
  0 siblings, 0 replies; 18+ messages in thread
From: Ervin Nemeth @ 2005-09-23 16:52 UTC (permalink / raw
  To: gentoo-dev

Brian Jackson wrote:
> Solar had a nifty per package INSTALL_MASK in his bashrc at one point I 
> think.

Now I think the USE flag should be "install no static libraries for 
which shared version is provided".

In Solaris 10 Sun engineers have eliminated static libraries. Linux is 
not yet ready for this.

So INSTALL_MASK is not sufficient - see Mike's post about xorg-x11.


/Ervin
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-dev] Re: Say no to static libraries!
  2005-09-23 13:53       ` Ervin Nemeth
  2005-09-23 14:05         ` Mike Frysinger
@ 2005-09-23 17:37         ` Donnie Berkholz
  1 sibling, 0 replies; 18+ messages in thread
From: Donnie Berkholz @ 2005-09-23 17:37 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ervin Nemeth wrote:
| I see, but how about defining ForceNormalLib as NO in host.def?

Yes, that is the way to do it, and I actually have xorg doing this
already on USE=minimal. But at this point, monolithic xorg-x11 is in
security mode -- it's not getting any changes outside of security fixes
or possibly an incredibly critical bug.

As Paul alluded, all of our current development is going into modular X,
which is autotooled so Mike's suggestion of EXTRA_ECONF ought to work.

Thanks,
Donnie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDND1AXVaO67S1rtsRAgNWAKDbc8BVWyFlStuG64hv8Vkpfe41CQCfex+r
H3DBSLZ2g7etm1HhTS4kz/0=
=Xbxb
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-09-23 17:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22  9:23 [gentoo-dev] Say no to static libraries! Ervin Németh
2005-09-22  9:48 ` Paul de Vrieze
2005-09-22 13:28 ` Mike Frysinger
2005-09-23  8:10   ` [gentoo-dev] " Ervin Nemeth
2005-09-23  8:23     ` Philippe Trottier
2005-09-23  8:45     ` Donnie Berkholz
2005-09-23  8:54       ` Paul de Vrieze
2005-09-23 13:53       ` Ervin Nemeth
2005-09-23 14:05         ` Mike Frysinger
2005-09-23 14:22           ` Ervin Nemeth
2005-09-23 17:37         ` Donnie Berkholz
2005-09-23  9:02     ` Thomas de Grenier de Latour
2005-09-23 12:38       ` Mike Frysinger
2005-09-23 12:39     ` Mike Frysinger
2005-09-23 14:19       ` Ervin Nemeth
2005-09-23 14:37         ` Brian Jackson
2005-09-23 16:52           ` Ervin Nemeth
2005-09-23 14:59   ` [gentoo-dev] " Paweł Madej

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox