Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386577 - media-sound/mpg123: set dependency_libs to '' in libtool files (.la) to make them harmless
Summary: media-sound/mpg123: set dependency_libs to '' in libtool files (.la) to make ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-09 19:54 UTC by Hans
Modified: 2011-10-09 20:36 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,3.27 KB, text/plain)
2011-10-09 19:54 UTC, Hans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans 2011-10-09 19:54:19 UTC
Created attachment 289407 [details]
emerge --info

media-sound/mpg123-1.13.4 installs three .la files, not even static libraries:

/usr/lib64/libmpg123.la
/usr/lib64/mpg123/output_alsa.la
/usr/lib64/mpg123/output_dummy.la

Please get rid of these files or introduce USE=static-libs support.
Thanks!
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 20:22:16 UTC
They are propably used by libltdl for loading plugins. USE=static-libs is not the only use for .la files.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 20:23:05 UTC
(In reply to comment #1)
> They are propably used by libltdl for loading plugins. USE=static-libs is not
> the only use for .la files.

$ objdump -p /usr/bin/mpg123 | grep ltdl
  NEEDED               libltdl.so.7
Comment 3 Hans 2011-10-09 20:32:05 UTC
You are, of course, absolutely right.
I was only considering the libraries, since I have no need for the binaries.
My bad, sorry.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-10-09 20:36:27 UTC
And after removing .la files:

$ mpg123 Boot\ to\ the\ Head.MP3 
[module.c:140] error: Failed to open module alsa: file not found
[module.c:140] error: Failed to open module sdl: file not found
[audio.c:180] error: Unable to find a working output module in this list:
alsa,sdl
[audio.c:529] error: Failed to open audio output module
[mpg123.c:869] error: Failed to initialize output, goodbye.

Please see:

http://blog.flameeyes.eu/2009/07/06/identifying-pointless-la-files-for-plugins

But we can make them harmless:

+  09 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> mpg123-1.13.4.ebuild:
+  Reset dependency_libs to '' in libtool files (libltdl is using them to load
+  output plugins) wrt #386577