Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74801 - some libraries (glib, gtk, glibmm, gtkmm, ...) don't install static libraries by default
Summary: some libraries (glib, gtk, glibmm, gtkmm, ...) don't install static libraries...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://www.gentoo.org/proj/en/desktop...
Whiteboard:
Keywords:
Depends on:
Blocks: invalid-static
  Show dependency tree
 
Reported: 2004-12-17 18:16 UTC by Tiago de Paula Peixoto
Modified: 2009-08-08 23:06 UTC (History)
3 users (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 Tiago de Paula Peixoto 2004-12-17 18:16:12 UTC
Shouldn't there be an use flag to enable compilation and installation of static versions of these libraries? Am I missing something?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 foser (RETIRED) gentoo-dev 2005-01-16 14:58:14 UTC
well ive added static USE flag to the gtk/glib/pango ebuilds. I see no point in having them build static libs by default.

Personally I think this should be handled in a different way than adding it as a USE flag to every ebuild under the sun.
Comment 2 Ingo Bormuth 2005-07-11 10:22:04 UTC
I thought the static useflag is mainly used for boot critical packages as fsch,
ssh, etc... Only then it would make sense to add static to make.conf to enhance
stability.
I do not get the point why packages as evolution or cinelerra use the static flag.
Perhaps there should be two flags (e.g. static and critical) to clearify.
See also: http://forums.gentoo.org/viewtopic-t-358304.html
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-07 09:53:03 UTC
Reopening this wrt Bug 201569 Comment #0. We should *explicitely* enable both static and shared since now we apparently get arch-specific results for some weird reason I didn't investigate (yet), clearly undesired result.
Comment 4 Mart Raudsepp gentoo-dev 2007-12-18 04:30:37 UTC
This bug was about glib, pango and gtk+. None of these have a static USE flag (i.e, everything done originally on this bug has been reverted long ago) and all of them default to what upstream seems fitting, except glib which stuff in portage actually needs a static version of (syslog-ng-2.*). So I feel inclined to mark this reopened bug as OBSOLETE (if such a resolution existed) and handle specific cases in specific new bugs.

As for building a static version of everything - there is no real reason to do that (not for everything...) and it contributes to us not fitting on LiveCD anymore. That's my take on it, and apparently I need to find time to open up a discussion on mailing list about this topic afterall, while forgetting about it half a year ago when this stuff came up.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-12-18 09:01:09 UTC
(In reply to comment #4)
> This bug was about glib, pango and gtk+.

I haven't changed the summary at all, so I'd respectfully disagree. ;) http://bugs.gentoo.org/show_activity.cgi?id=74801 (And yeah the original solution w/ USE=static was just wrong.)

> None of these have a static USE flag
> (i.e, everything done originally on this bug has been reverted long ago) and
> all of them default to what upstream seems fitting

Well, 'whatever upstream seems fitting' is an unwanted result if that means that you get static libs on x86 and don't on amd64 or other arches.

> As for building a static version of everything - there is no real reason to do
> that (not for everything...) and it contributes to us not fitting on LiveCD
> anymore. 

Uhm... there'd be plenty of space on livecd for more useful things if we stopped sticking nonsensical stuff like full-blown evolution w/ Exchange connectivity on release media. :) YMMV.
Comment 6 Mart Raudsepp gentoo-dev 2007-12-18 14:25:13 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > This bug was about glib, pango and gtk+.
> 
> I haven't changed the summary at all, so I'd respectfully disagree. ;)
> http://bugs.gentoo.org/show_activity.cgi?id=74801 (And yeah the original
> solution w/ USE=static was just wrong.)

Fair enough. I'll have to draft up my points to the mailing list when I get some time, and investigate the specific case closer. Other team members welcome to do that too, of course

> > As for building a static version of everything - there is no real reason to do
> > that (not for everything...) and it contributes to us not fitting on LiveCD
> > anymore. 
> 
> Uhm... there'd be plenty of space on livecd for more useful things if we
> stopped sticking nonsensical stuff like full-blown evolution w/ Exchange
> connectivity on release media. :) YMMV.

As opposed to the static libraries that absolutely nothing in the tree or CD uses, Evolution Exchange is a very useful thing for those that need to be capable of reading their e-mail in any shape or form under some environments. Besides, that's release teams decision to include it and on top of the rest of Gnome just maybe 500KB of extra when squashed.
I can understand the desire to have static libs for C++ stuff though, yes.
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2008-01-17 02:41:51 UTC
leio:  So.....what's going on with this?  If you disagree with the behaviour of USE=static, please get a discussion going on g-dev@ about it.
Comment 8 Mart Raudsepp gentoo-dev 2008-01-17 12:35:17 UTC
(In reply to comment #7)
> leio:  So.....what's going on with this?  If you disagree with the behaviour of
> USE=static, please get a discussion going on g-dev@ about it.

I don't disagreed with the behaviour of USE=static. I disagree with the policy that if shared and static libraries are available at the same time that they must be both installed.
I haven't had much free non-sleepy time lately, hopefully next week I can write the mail..
Comment 9 Slava Gorbunov 2008-04-05 18:26:44 UTC
There is a temporary solution (at least for glibmm and gtkmm): add the following line to the make.conf:

G2CONF="--enable-static"

With this option, gtkmm and glibmm are built with static libraries.
Comment 10 Mart Raudsepp gentoo-dev 2008-07-13 15:06:51 UTC
Meanwhile I have made a thread about it on the mailing list with no objections on USE=static-libs and not installing them when not useful (not C++ stuff):

http://archives.gentoo.org/gentoo-dev/msg_1f8c66a51e033250a7aaf416a09da3f3.xml

I'll push forward once I am back home from Istanbul (conference and a few vacation days :) after 15th July
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2009-05-15 21:15:47 UTC
Can we get moving on this bug again?  I don't recall what happened exactly with the static-libs proposal, but can we get the council to approve/disapprove this if that's what you want to go with?   And if not, have the static libraries built unconditionally.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-05-15 21:36:26 UTC
Shouldn't we reassign this bug to the council?

/me votes for USE="static-libs" which would be turned off in the base profile.

Cheers
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-08 23:06:09 UTC
From gnome herd meeting summary:

* Static libraries
  - Consensus was to only have static libs for glib and C++ bindings. And to add
    it to the eclass as --disable-static for the rest (to be overriden on a
    per-package basis).
  - Anything that uses gtk+ will not work with static libs because gtk+ uses 
    dynamic loading

If you find an infringment to this basic rule or feel that you need static-lib in a specific case, you can fill a report for us to fix the issue. Closing invalid since the actual enumaration in summary looks totaly wrong.