1 |
Mart Raudsepp <leio@g.o> posted |
2 |
1214877951.29224.54.camel@localhost, excerpted below, on Tue, 01 Jul 2008 |
3 |
05:05:51 +0300: |
4 |
|
5 |
> Over a year or two ago, it was communicated that it supposedly a policy |
6 |
> that USE=static should only control if a package installs static |
7 |
> libraries INSTEAD of shared libraries, and never to be used to control |
8 |
> if static libraries are installed in _addition_ to shared ones or not. |
9 |
|
10 |
That's as I understand it too. |
11 |
|
12 |
> Packages were coerced to stop using USE=static for controlling that, and |
13 |
> most of them ended up unconditionally installing both static and shared |
14 |
> libraries. What's worse - they were told that if a package can provide |
15 |
> both shared libraries and static libraries at once, it just MUST (or |
16 |
> SHOULD) install them both instead of choosing to not ship the static |
17 |
> libraries. |
18 |
|
19 |
OK, but see below. |
20 |
|
21 |
> End result that affects me: GNOME does not fit on LiveCD installation |
22 |
> media anymore. |
23 |
|
24 |
Ouch! |
25 |
|
26 |
> So I'm proposing a USE=static-libs or similar to get out of this |
27 |
> problem, and a lifting of the supposed (I wasn't around as a dev that |
28 |
> long ago to know for sure) policy of having to install both instead of |
29 |
> choosing to never install static libraries. |
30 |
|
31 |
I'm not sure this is warranted. See below. |
32 |
|
33 |
> I am quite sure that absolutely nothing whatsoever uses about 97% of the |
34 |
> static GNOME libraries we are now installing as an end result. [...] |
35 |
|
36 |
Probably others than GNOME, too. |
37 |
|
38 |
> There are packages in the tree that are required to install static |
39 |
> libraries, or something else in the system breaks. So INSTALL_MASK=*.a |
40 |
> is not a solution in my eyes. |
41 |
|
42 |
This is the ticklish bit, but there's still a way around it for users |
43 |
(such as those trying to fit GNOME on a liveCD) that need it. Useing |
44 |
portage's bashrc, setup a conditional that excepts packages that need |
45 |
static libs and set INSTALL_MASK='*.a' for everything else. |
46 |
|
47 |
If you've not yet seen Ed Catmur's bashrc script setup, "I+'5 d4 60mb!" |
48 |
I don't personally find many of its capabilities useful, but his auto- |
49 |
patching setup has sure come in handy, and the entire thing is just |
50 |
incredibly extensible on a nicely solid base. =8^) It should make |
51 |
setting this up a breeze, and be handily expansible for 'most anything |
52 |
else you might come up with as well. If it were me, I'd use that as a |
53 |
base and go from there utilizing the idea I suggested above. |
54 |
|
55 |
http://catmur.co.uk/gentoo/ |
56 |
|
57 |
Additionally, you don't mention whether you checked with them already or |
58 |
not, but releng and subprojects may have some suggestions in this area. |
59 |
|
60 |
-- |
61 |
Duncan - List replies preferred. No HTML msgs. |
62 |
"Every nonfree program has a lord, a master -- |
63 |
and if you use the program, he is your master." Richard Stallman |
64 |
|
65 |
-- |
66 |
gentoo-dev@l.g.o mailing list |