Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 386665

Summary: media-libs/libgphoto2: empty dependency_libs in .la files to make them harmless
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: graphics+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=510956
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ".la" file installed by all packages

Description Agostino Sarubbo gentoo-dev 2011-10-10 14:58:36 UTC
Created attachment 289467 [details]
".la" file installed by all packages

(In reply to comment #22 of bug 385699 )
> If you found some packages wrongly installing .la files from this updated list,
> please comment affected packages here as maybe I can drop from of them before
> stabilization to help with a better libpng upcoming update ;)

Hi, with a simple bash script I found those ".la" files, please check if they are needed or not.
There is also one case where you should drop ".a"
Check the attachment

Not a very blocker for bug 385699 but added anyway as reminder to do before stabilization
Comment 1 Agostino Sarubbo gentoo-dev 2011-10-10 15:00:00 UTC
and as you say, you should also use remove_libtool_files() from autotools-utils.eclass
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-10-10 16:32:19 UTC
(In reply to comment #0)
> Created attachment 289467 [details]
> ".la" file installed by all packages

Fixed json-glib from this list.
Comment 3 Pacho Ramos gentoo-dev 2011-10-10 19:43:50 UTC
All done except libgphoto2, as I don't know if its .la files are really needed or not :(
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-10-10 20:07:15 UTC
As I said many times, libgphoto2 is a valid exception to the la files removal attempts. Unless its code base was modified to use the extended libtool library loading call, those cannot be removed.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2011-10-10 20:19:39 UTC
the dependency_libs can still be emptied, so overlinking doesn't happen:

find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +

used in imagemagick, mpg123, redland, etc.
Comment 6 Pacho Ramos gentoo-dev 2012-01-31 08:55:22 UTC
+*libgphoto2-2.4.12 (31 Jan 2012)
+
+  31 Jan 2012; Pacho Ramos <pacho@gentoo.org> +libgphoto2-2.4.12.ebuild,
+  -libgphoto2-2.4.10.ebuild, -libgphoto2-2.4.11.ebuild:
+  Version bump, drop no longer needed libusb fix and automagic patch, empty
+  dependency_libs in .la files (bug #386665 by Samuli Suominen). Drop old.
+