Gentoo Archives: gentoo-dev

From: Enrico Weigelt <weigelt@×××××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: .la files and their future on Gentoo
Date: Tue, 05 Oct 2010 22:44:24
Message-Id: 20101005223818.GA11088@nibiru.local
In Reply to: [gentoo-dev] Re: .la files and their future on Gentoo by "Diego Elio Pettenò"
1 * Diego Elio Pettenò <flameeyes@×××××.com> schrieb:
2
3 > http://blog.flameeyes.eu/2010/10/04/libtool-archives-and-their-pointless-points
4
5 ACK.
6
7 IMHO, removing the .la files should be under invididual ebuild
8 (or eclass) control, and we also should try to get it fixed
9 at the source (if possible).
10
11 > Also, I would like to ask again that if you're going to argue "you never
12 > know who might use them", you're going to have to actually understand
13 > _what_ the files are used for, _which_ software uses them, and come up
14 > with a use case for them, not a vague "oh there might be a project that
15 > use them".
16
17 That whole "you'll never know who might use them"-idea is a bad idea,
18 IMHO. By that doctrine you can never get rid of old crap. Sometimes
19 an cut has to be made.
20
21 And for Distros, it doesnt make sense to try to support anything imaginable.
22 Instead there's limited (yet large) set of packages that are supported.
23 We can track the dependencies and so know who's using some particular
24 package (inside the distro). So we can actually test if removing la-files
25 from one invidual package will break anything. Maybe it's even worth
26 to make an automatic testsuite.
27
28 > From my point of view, the only points worth to be raised are Nirbheek's
29 > (even though I disagree, as I said), Rémi's (which I don't think he
30 > either considers showstoppers at this point) and those not-yet-spoken
31 > off by Prefix (they might support architectures where .la files are
32 > worth something).
33
34 Are there any platforms where .la files are really worth anything ?
35 (in Gentoo's scope) ? And *if* there're some - could there be better
36 solutions ?
37
38 BTW: In general, the idea of having a metadata file per library is
39 quite nice. (if done well, even better than the pkg-config approach).
40 But libtool implements this particular bad - it doesnt have a proper
41 abstraction (actually, libtool is not an abstraction at all, as eg.
42 unitool does, but just an command line filter doing mysterious things).
43
44 *If* someone here really likes the per-library-metadata idea, then
45 let's start an own project for that (knowing that'll be just reasearch
46 and not production-grade for quite some time). But that yet goes far
47 off-scope of distros (until a reasonable amount of packages adopted it).
48
49 > - is it okay to drop them from stable? my personal opinion here is to
50 > side with Samuli and say "yes"; on the other hand, since by the looks of
51 > it, and the status report Zac gave us, we're going to need just one
52 > extra month before just telling users "install lafilefixer and update to
53 > stable portage 2.1.9.13", I think we can avoid doing any more of those
54 > changes till then ??? in stable that is; this includes both non-revbumps
55 > and stable requests of packages dropping them;
56
57 Admitting I've not fully followed this thread, but IMHO portage changes
58 aren't needed here - just put the la-skipping/-removal into individual
59 ebuilds. Portage can provide generic functions for that later, which
60 then can be used by newer ebuilds, but doesnt need to.
61
62 > - what about Rémi's 2b concern? Sincerely I have worked for a long time
63 > with static linking on my job and I don't see libtool files being so
64 > excessively necessary; the only problem comes with transitive
65 > dependencies, but most packages already take care of that; even if you
66 > do not use pkg-config, you have other means to recover it.
67
68 I'm now working in embedded area (where static linking is quite common)
69 for about 10yrs, and pkg-config has proven quite well here. (packages
70 that dont provide .pc-descriptor yet, simply have to be fixed to do
71 so ;-p). Libtool, on the other hand, always had been a nightmare.
72
73
74 cu
75 --
76 ----------------------------------------------------------------------
77 Enrico Weigelt, metux IT service -- http://www.metux.de/
78
79 phone: +49 36207 519931 email: weigelt@×××××.de
80 mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
81 ----------------------------------------------------------------------
82 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
83 ----------------------------------------------------------------------

Replies

Subject Author
Re: [gentoo-dev] Re: .la files and their future on Gentoo David Leverton <levertond@××××××××××.com>