Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382715 - dev-libs/ding-libs: Useless libtool files (.la) installed with USE=static-libs
Summary: dev-libs/ding-libs: Useless libtool files (.la) installed with USE=static-libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Andreis Vinogradovs ( slepnoga )
URL:
Whiteboard:
Keywords:
Depends on: 382541
Blocks:
  Show dependency tree
 
Reported: 2011-09-12 15:48 UTC by Samuli Suominen (RETIRED)
Modified: 2011-09-16 09:11 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 Samuli Suominen (RETIRED) gentoo-dev 2011-09-12 15:48:12 UTC
The package is using pkg-config for it's libraries:

/usr/lib64/pkgconfig/ini_config.pc
/usr/lib64/pkgconfig/ref_array.pc
/usr/lib64/pkgconfig/collection.pc
/usr/lib64/pkgconfig/dhash.pc
/usr/lib64/pkgconfig/path_utils.pc

So all these are unnecessary, even with USE=static-libs:

/usr/lib64/libini_config.la
/usr/lib64/libref_array.la
/usr/lib64/libcollection.la
/usr/lib64/libdhash.la
/usr/lib64/libpath_utils.la

Should be using the 'all' argument in remove_libtool_files() from autotools-utils.eclass

(See also bug 382541)
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-09-12 15:51:09 UTC
It might be good idea to ensure "Libs.private: " is properly set in .pc files before proceeding for static linking.
Or if upstream has left it out on purpose, stating static linking to ding-libs is not supported, perhaps --disable-static unconditionally is in order.
Or if upstream defaults to --enable-static, then patch to configure.{ac,in} is in order to pass AC_DISABLE_STATIC or LT_INIT([disable-static]) when initializing libtool:

http://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html
Comment 2 Maxim Koltsov (RETIRED) gentoo-dev 2011-09-16 09:10:55 UTC
Fixed in tree, thanks for report.
Comment 3 Maxim Koltsov (RETIRED) gentoo-dev 2011-09-16 09:11:22 UTC
Fixed in tree, thanks for report.