Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299517 - x11-libs/xpyb installs pointless libtool archive (.la) files
Summary: x11-libs/xpyb 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: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-03 20:57 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2015-02-23 00:39 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-01-03 20:57:28 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/xcb/xcb.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 Tomáš Chvátal (RETIRED) gentoo-dev 2010-01-03 21:33:48 UTC
Fixed in tree.
@remi: at files/ you can find patch you should forward upstream.
so chop chop and go ahead. Leaving open until it is done.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2010-01-05 16:39:42 UTC
NO NO NO NO NO!! This is not fixed at all!!! This is plain wrong, you've completely removed the library! Please revert this patch!

This needs to be done in src_install(). This cannot be fixed in the upstream code (especially like you did) since that completely removes the call to libtool and doesn't build anything at all!

As far as I'm concerned, we should probably kill all .la files in the x-modular eclass since upstream supports pkg-config --static correctly.

Cheers
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2010-01-07 07:43:20 UTC
@Tomáš, thanks for fixing it up :)

I've given a bit of thought about this and maybe your new eclass is the perfect place to test this. Could you make it remove all .la files? We should also work on USE=static-libs while we're at it.

Thanks
Comment 4 Matt Turner gentoo-dev 2015-02-23 00:39:30 UTC
This doesn't seem to happen anymore.