Gentoo Archives: gentoo-dev

From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Removing .la files
Date: Sun, 24 Oct 2010 22:28:41
Message-Id: 20101024222937.GE1234@ohnopublishing.net
In Reply to: [gentoo-dev] Re: Removing .la files by Duncan <1i5t5.duncan@cox.net>
1 On Sun, Oct 24, 2010 at 09:57:33PM +0000, Duncan wrote:
2 > Enrico Weigelt posted on Sun, 24 Oct 2010 22:09:30 +0200 as excerpted:
3 >
4 > > I'm doing some investigation on which .la files are still needed and
5 > > which are not. In general, .la files only are in use by very few
6 > > packages which use them to load plugins (I've seen no package which
7 > > actually requires them for compile-time importing in production).
8 >
9 > FWIW, flameeyes has done quite a bit of work on this, but I'm not sure
10 > it's published anywhere.
11 >
12 > FWIW2, I recently took the big jump myself, PKG_INSTALL_MASKing *.la files
13 > (I run FEATURES=buildpkg so that's effectively install-masking them too,
14 > but they don't get in the binpkgs at all that way), then rebuilding my
15 > entire system, and while it's /possible/ certain plugins don't work, I've
16 > not noticed it.
17
18 I use tommy's portage-multilib which doesn't install any .la files
19 unless if ``shouldnotlink=true'' is found in the .la file. I think
20 that the only sorts of problems we've encountered are similar to bug
21 300256 (caused by Gentoo splitting up a package into multiple
22 ebuilds).
23
24 > I needed only one exception, sys-devel/libtool itself. At least one
25 > package (IIRC imagemagick but I could be recalling incorrectly) tests for
26 > a properly configured libtool in the configure script by testing for
27 > libtool's single *.la file, libltdl.la, so I had to rebuild/reinstall
28 > libtool itself without that mask.
29
30 This problem is found in an autoconf macro shipped with libtool itself:
31
32 http://lists.gnu.org/archive/html/bug-libtool/2009-12/msg00023.html
33 http://lists.gnu.org/archive/html/bug-libtool/2010-02/msg00046.html
34
35 Likewise, portage-multilib is configured by default to install .la
36 files for the libtool package to work around this bug.
37
38 --
39 binki
40
41 Look out for missing apostrophes!