Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293921 - dev-build/libtool requires /usr/lib*/
Summary: dev-build/libtool requires /usr/lib*/
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
: 293923 306839 (view as bug list)
Depends on:
Blocks: portage-multilib 213563 383929
  Show dependency tree
Reported: 2009-11-21 06:58 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2024-01-15 16:40 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---

files/2.2.6b/libtool-2.2.6b-ltdl.m4-no-la.patch (libtool-2.2.6b-ltdl.m4-no-la.patch,924 bytes, text/plain)
2010-02-26 03:20 UTC, Nathan Phillip Brink (binki) (RETIRED)
files/2.2.6b/libtool-2.2.6b-ltdl.m4-no-la.patch (libtool-2.2.6b-ltdl.m4-no-la.patch,979 bytes, patch)
2010-02-26 18:47 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff (,552 bytes, patch)
2011-09-24 20:16 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff
libtool.eclass-configure-patches.patch (libtool.eclass-configure-patches.patch,1.17 KB, patch)
2011-09-24 20:17 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-11-21 06:58:45 UTC
Packages are supposed to be able to compile against a system-installed libltdl without too much magic. They also should not require a *.la files to exist just to perform dynamic linking.

If one removes /usr/lib*/, certain packages will fail to compile. This is because they are being told to use the system libltdl and are nice enough to fail instead of building a copy of libltdl into themselves. So far, the only package I've noticed to exhibit these symptoms is media-gfx/imagemagick- . I will attach a sample build log.

The error exists in the ./configure script distributed with imagemagick. One would expect that if libtoolize or autoreconf -vfi was run twice in imagemagick's directory, fixed ltdl autoconf macros would be pulled in from the system's /usr/share/aclocal. However, the system macros from sys-devel/libtool-2.2.6a are broken too.

The error message is ``invalid ltdl library directory:'' followed by the system's usr/$(get_libdir). If you search for that string in libtool's /usr/share/aclocal/ltdl.m4, you will find that, two lines earlier, there incorrect are tests for the existence of $with_ltdl_lib/ .
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-11-21 07:11:53 UTC
please see bug 293923 for the failed build of imagemagick
Comment 2 SpanKY gentoo-dev 2009-11-21 17:50:14 UTC
dont go deleting random files on your system
Comment 3 SpanKY gentoo-dev 2009-11-21 17:50:21 UTC
*** Bug 293923 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Sachau gentoo-dev 2009-11-22 13:32:09 UTC
(In reply to comment #2)
> dont go deleting random files on your system

This isnt about radom deletion of files, but about removing .la files, which should not  be used on systems with dynamic linking. In this case, the multilib-portage branch does remove all .la files, which dont contain a "shouldnotlink=yes" line. Since contains "shouldnotlink=no", its one of the files, which are removed by multilib-portage during install stage.

Do you have a good reason to preserve such .la files on default sytems with dynamic linking?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-22 13:41:04 UTC
There is a reason why I never said "just delete all the .la files existing in the world"…

libtool does work this way and needs that .la file, so unless you bring it up upstream, we cannot do much about that.
Comment 6 vp 2010-02-25 17:41:11 UTC
*** Bug 306839 has been marked as a duplicate of this bug. ***
Comment 7 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-02-26 03:20:40 UTC
Created attachment 221239 [details]

Hacky patch around this behavior.
Comment 8 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-02-26 18:47:06 UTC
Created attachment 221357 [details, diff]

Updated with help from ferret_ and tommy.
Comment 9 SpanKY gentoo-dev 2011-09-24 06:34:51 UTC
if it were converted into an ELT patch, that'd probably be doable
Comment 10 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-24 20:16:13 UTC
Created attachment 287619 [details, diff]

Rewritten in ELT style, just plop into eclass/ELT-patches/ltdl-la-conf/ and apply the next patch I attach to libtool.eclass.

Tested to fix at least the src_configure() for imagemagick (bug 383929).
Comment 11 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-09-24 20:17:46 UTC
Created attachment 287621 [details, diff]

Generallized support for future ELT patches which patch ./configure. Add ltdl-la-conf to the default list of ELT patches.
Comment 12 SpanKY gentoo-dev 2011-09-25 06:55:20 UTC
i'll test this a bit, but otherwise looks fine
Comment 13 Pacho Ramos gentoo-dev 2016-09-14 14:05:52 UTC
Any updates on this? :)