Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481042 - media-gfx/imagemagick: conversion svg -> png fails if <dev-libs/glib-2.35.0 is installed
Summary: media-gfx/imagemagick: conversion svg -> png fails if <dev-libs/glib-2.35.0 i...
Status: RESOLVED DUPLICATE of bug 468050
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL: http://www.imagemagick.org/discourse-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 13:36 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2013-08-14 13:44 UTC (History)
0 users

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


Attachments
imagemagick-6.8.6.8-glib_check_in_svg.patch (imagemagick-6.8.6.8-glib_check_in_svg.patch,382 bytes, patch)
2013-08-14 13:36 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***