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

Bug 305589

Summary: media-gfx/imagemagick-6.5.9.4: USE="-static-libs" a bit incorrect
Product: Gentoo Linux Reporter: Rafał Mużyło <galtgendo>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rafał Mużyło 2010-02-17 15:46:31 UTC
I've only noticed it due to delegates entry for svg  being incorrect.

The problem here is that ImageMagick actually uses those modules la files,
so removing them results in an incorrect tree.
When those files are missing, ImageMagick falls back to using
entries in /usr/$(libdir)/${P}/config/delegates.xml, so in most cases
it seems to work, but that makes building all those modules redundant.

I think that a better solution would be changing
                find "${D}"/usr/$(get_libdir) -name '*.la' -delete
to:
                find "${D}"/usr/$(get_libdir) -name '*.la' -exec sed -i -e \
                's:^dependency_libs=.*$:dependency_libs='\'\'':' '{}' \; || die
                rm "${D}"/usr/$(get_libdir)/libMagick*.la

This leaves the needed la files, but they won't be popping up
in revdep-rebuild anymore and the modules will still be used.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-02-17 15:52:59 UTC
actually, 6.5.9.4 isn't in portage anymore, and the .la files are restored in -r1, but your solution looks intresting... we might want to incorporate it, so leaving open
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-04-28 13:28:28 UTC
nah, let's not put that in ebuilds, doesn't look very sustainable as this should be a eclass function or embedded in ones functionality instead.