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

Bug 481042

Summary: media-gfx/imagemagick: conversion svg -> png fails if <dev-libs/glib-2.35.0 is installed
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=23035
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: imagemagick-6.8.6.8-glib_check_in_svg.patch

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-08-14 13:36:17 UTC
Created attachment 355990 [details, diff]
imagemagick-6.8.6.8-glib_check_in_svg.patch

Since glib-2.35.0 g_type_init() was removed and thus librsvg removed the call as well. Now conversion svg -> png (didn't try any other target formats as I found the bug while installing media-sound/kwave which uses convert from imagemagick to resize and convert images from svgz to png) fails. The convert process hangs and needs to be killed.

Upstream tried to fix this by adding g_type_init() to coders/svg.c [1] but they failed to add a proper check for the glib version.

Please see my attached patch which fixed the problem for me. I didn't report this upstream and would appreciate if you could forward the patch to upstream.

NOTE! You need to have a glib version older than 2.35.0 installed to trigger the error.


[1] http://trac.imagemagick.org/changeset?reponame=&new=11650%40ImageMagick%2Ftrunk%2Fcoders%2Fsvg.c&old=11520%40ImageMagick%2Ftrunk%2Fcoders%2Fsvg.c
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-08-14 13:44:55 UTC

*** This bug has been marked as a duplicate of bug 468050 ***