Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: Paul Hartman <paul.hartman+gentoo@×××××.com>
Subject: Re: [gentoo-user] decplean left libtunepimp.la behind
Date: Thu, 19 May 2011 14:39:40
Message-Id: 201105191637.27206.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] decplean left libtunepimp.la behind by Paul Hartman
1 Apparently, though unproven, at 16:17 on Thursday 19 May 2011, Paul Hartman
2 did opine thusly:
3
4 > On Wed, May 18, 2011 at 4:53 PM, Mick <michaelkintzios@×××××.com> wrote:
5 > > On Wednesday 18 May 2011 22:28:38 Alan McKinnon wrote:
6 > >> Apparently, though unproven, at 23:06 on Wednesday 18 May 2011, Mick did
7 > >> opine
8 > >>
9 > >> thusly:
10 > >> > Had a depclean session which removed:
11 > >> > media-libs/musicbrainz
12 > >> >
13 > >> > selected: 2.1.5
14 > >> >
15 > >> > protected: none
16 > >> >
17 > >> > omitted: 3.0.2
18 > >> >
19 > >> > Then I followed up with revdep-rebuild and this comes up:
20 > >> > * Generated new 1_files.rr
21 > >> > * Collecting complete LD_LIBRARY_PATH
22 > >> > * Generated new 2_ldpath.rr
23 > >> > * Checking dynamic linking consistency
24 > >> >
25 > >> > [ 67% ] * broken /usr/lib/libtunepimp.la (requires -lmusicbrainz)
26 > >> > [snip ...]
27 > >> >
28 > >> > * Assigning files to packages
29 > >> > * !!! /usr/lib/libtunepimp.la not owned by any package is broken !!!
30 > >> > * /usr/lib/libtunepimp.la -> (none)
31 > >> >
32 > >> > What is "-lmusicbrainz" and is it telling me to just delete
33 > >> > /usr/lib/libtunepimp.la?
34 > >>
35 > >> Look into any *.la file and you will see stuff like this:
36 > >>
37 > >> /usr/lib/libsqlite3.la:dependency_libs=' -ldl -lpthread'
38 > >>
39 > >> The .la files are hints to the linker telling it how to do stuff, the -l
40 > >> bits reference libraries that will be needed. Far more often than is
41 > >> acceptable, libtool cocks this up in spectacular ways, which is why we
42 > >> had
43 > >>
44 > >> lafilefixer --justfixit
45 > >>
46 > >> for so long, and why it is now built into portage.
47 > >>
48 > >> I have musicbrainz, but I do not have /usr/lib/libtunepimp.la and yours
49 > >> is orphaned anyway - it probably got left behind long ago when depclean
50 > >> didn't know it was related to musicbrainz.
51 > >>
52 > >> Just delete the thing, be done with it, revdep-rebuild will stfu and you
53 > >> will be a much happier chappy
54 > >
55 > > Thanks guys, it's been blitzed!
56 >
57 > I think the long-term plan is to eliminate the *.la files entirely,
58 > once all packages have been updated as such by their maintainers, so
59 > hopefully this kind of problem will vanish in the not-too-distant
60 > future. :)
61
62 It's closer than you might think, there are very few packages left to be
63 fixed:
64
65 http://blog.flameeyes.eu/2011/05/03/surviving-without-libtool-archives
66
67 --
68 alan dot mckinnon at gmail dot com