Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305589 - media-gfx/imagemagick-6.5.9.4: USE="-static-libs" a bit incorrect
Summary: media-gfx/imagemagick-6.5.9.4: USE="-static-libs" a bit incorrect
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-17 15:46 UTC by Rafał Mużyło
Modified: 2010-04-28 13:28 UTC (History)
0 users

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 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.