Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299016 - net-dns/unbound installs pointless libtool archive (.la) files
Summary: net-dns/unbound installs pointless libtool archive (.la) files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
: 308839 (view as bug list)
Depends on:
Blocks: 309117
  Show dependency tree
 
Reported: 2009-12-30 19:43 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-04-04 14:58 UTC (History)
2 users (show)

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


Attachments
build log (build.log,36.78 KB, text/plain)
2010-03-10 16:07 UTC, Aleister
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-30 19:43:50 UTC
Hear me out first of all: if I'm opening this bug it's because I've confirmed that some of the .la that your package installs are totally bogus:

/usr/lib/python2.6/site-packages/_unbound.la


These files are installed as either part of Ruby or Python bindings (neither interpreters use libtool to load their extensions, so they won't be even knowing the .la file is around, and you cannot *link* against those), or PAM modules (no implementation of PAM uses libtool to load the modules, so even here the .la files won't be considered at all).

While these don't cause the kind of headaches .la files are known for (as you won't be linking against them to begin with), they are polluting the live filesystem as well as increasing the work for the analysis of those .la files that you link against. Please consider deleting them in the ebuild, after the make install is called.

Further note: when these files are around, it's not uncommon for the packages to mistakenly build and install static archives (.a) files as well, even if these are modules that are only loaded from dynamic ELF files. If that is the case, *don't delete those after install*; instead follow the documentation I wrote at http://www.flameeyes.eu/autotools-mythbuster/libtool/index.html#libtool.plugins.dlopen to fix the packages so that only the shared object file is built (you still need to delete the .la file after install).

This way you don't bother installing them and shorten the build time (as the static and shared versions are built with different flags which cause each source file to be built twice).

Thank you for your help on cleaning up this mess.

Diego
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2010-03-09 16:29:23 UTC
Fixed.
Comment 2 Aleister 2010-03-10 16:07:45 UTC
Created attachment 223011 [details]
build log

after commented out line 58
rm "${D}/usr/$(get_libdir)"/python*/site-packages/_unbound.*a || die in the ebuild it works ;)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-03-10 16:11:25 UTC
reopen per last comment, the "fix" is broken
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2010-03-12 12:47:11 UTC
Fixed in 1.4.3
Comment 5 MATSUU Takuto (RETIRED) gentoo-dev 2010-04-04 14:58:04 UTC
*** Bug 308839 has been marked as a duplicate of this bug. ***