Gentoo Archives: gentoo-dev

From: Peter Gordon <codergeek42@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gentoo: static/dynamic linking libraries
Date: Tue, 01 May 2007 02:51:56
Message-Id: 1177987747.3440.16.camel@tuxhugs
In Reply to: Re: [gentoo-dev] gentoo: static/dynamic linking libraries by "Rémi Cardona"
1 On Sun, 2007-04-29 at 23:50 +0200, Rémi Cardona wrote:
2 > Open Question part:
3 >
4 > Since I don't have any thing other than Gentoo : does anyone know how
5 > other distros handle static libs in their -dev packages?
6
7 Fedora's policy [1] is to only include static libraries when absolutely
8 necessary, such as with libpci or other libraries that ship *only*
9 static incarnations (though in these cases the packager is heavily
10 encouraged to pester the upstream developer(s) about building a shared
11 library as well); or for specific exceptions where full and satisfactory
12 reason is given for the inclusion of static libraries (such as, perhaps,
13 low-level rescue utilities like grub and others, though they generally
14 then need to explicitly be in a foo-static subpackage when built). All
15 such cases need to be approved by the Fedora Engineering Steering
16 Committee (FESCo).
17
18
19 > Does anyone care about static libs except for maybe really really low
20 > level stuff?
21 They are useful for rescue operations and whatnot, when a LiveCD or
22 similar is not handy; or perhaps when the computer cannot boot from an
23 alternative medium. That's the only major benefit I see of them.
24
25
26 > My Opinion part:
27 >
28 > I'd definitely would like to see them leave my system for good as I have
29 > no use for 99% of them whatsoever.
30 ++
31
32
33 > Open Question part:
34 >
35 > Could some FEATURE disable static libs building by default in desktop
36 > profiles, with some (like the 5 packages Roman pointed out) using
37 > something like a RESTRICT?
38 >
39 Back when I used Gentoo (mid-2003 through Nov. 2005), I remember there
40 being a "-static" flag that could be set. I don't remember if that was
41 in FEATURES or USE though; and not all ebuilds honored it. :| Is there
42 similar functionality in modern Portage?
43
44
45 [1] http://fedoraproject.org/wiki/Packaging/Guidelines#StaticLibraries
46 --
47 Peter Gordon (codergeek42) / FSF & EFF Member
48 Gentoo Forums Global Moderator
49 GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
50 DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
51 My Blog: http://thecodergeek.com/blog/

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] gentoo: static/dynamic linking libraries Donnie Berkholz <dberkholz@g.o>
Re: [gentoo-dev] gentoo: static/dynamic linking libraries Radoslaw Stachowiak <radek@g.o>