/usr/bin/rsvg removed from latest upload (causing FTBFSes in archive)

Bug #929573 reported by Scott Howard
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ImageMagick
Fix Committed
Undecided
Unassigned
imagemagick (Debian)
Fix Released
Unknown
imagemagick (Ubuntu)
High
Unassigned

Bug Description

1) imagemagick's /usr/bin/convert first will try to use the internal svg converter found in the recommended package libmagickcore4-extra. Since it is recommended, it is not pulled into the buildds and not required on users systems.
2) When libmagickcore?-extra is missing on a system (such as the buildds and a user's system), "convert" will fall back to /usr/bin/rsvg. However, that file no longer exists in ubuntu.

Original report:
The most recent upload of rsvg (2.35.2-0ubuntu1) no longer includes /usr/bin/rsvg.

imagemagick's "convert" uses it to convert svgs to other file types.

Many packages use "convert" in the build to generate the pixmaps required for debian menus.

See:
https://launchpadlibrarian.net/92231198/buildlog_ubuntu-precise-i386.librecad_1.0.0%2Bnolibs-1_FAILEDTOBUILD.txt.gz

Revision history for this message
Scott Howard (showard314) wrote :

As important: the "convert" command no longer works on precise - which has a large affect on many users

convert -resize 48x48 Icon_Librecad.svg debian/librecad.png
sh: 1: rsvg: not found

Changed in imagemagick (Ubuntu):
importance: Undecided → Medium
Changed in librsvg (Ubuntu):
importance: Medium → High
Changed in imagemagick (Ubuntu):
importance: Medium → High
Revision history for this message
Scott Howard (showard314) wrote :

Ok, found that /usr/bin/rsvg has been removed by upstream, yet imagemagick is still calling it:
https://bugzilla.gnome.org/show_bug.cgi?id=580325

imagemagick needs to not call it anymore

Changed in librsvg (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Scott Howard (showard314) wrote :

From the linked debian bug:
imagemagick is not supposed to use /usr/bin/rsvg because it's supposed to pull in it's own svg converter in the package libmagick?-extras where ? is the SONAME version, and is recommended by imagemagick.

However, as you can see in:
https://launchpadlibrarian.net/92231198/buildlog_ubuntu-precise-i386.librecad_1.0.0%2Bnolibs-1_FAILEDTOBUILD.txt.gz

it is pulling in:
libmagickcore4

but is NOT pulling in:
libmagickcore4-extra

since it is only a recommends.

So this is the real bug:
1) imagemagick's convert first will try to use the internal svg converter found in the recommended package libmagickcore4-extra. Since it is recommended, it is not pulled into the buildds.
2) When libmagickcore?-extra is missing on a system (such as the buildds and a user's system), "convert" will fall back to /usr/bin/rsvg. However, that file no longer exists in ubuntu.

The hack, for now, is to build depend on imagemagickcore4-extra - but that requires bumping the dependency name everytime libmagickcore gets a SONAME bump (which happened between oneiric and precise). or you can depend on libmagickcore-dev which will pull in the correct libmagickcore?-extra, but that's really overkill

description: updated
Changed in imagemagick (Ubuntu):
status: New → Triaged
Revision history for this message
Scott Howard (showard314) wrote :
Revision history for this message
Scott Howard (showard314) wrote :

svn commit 6793

Changed in imagemagick:
status: New → Fix Committed
Revision history for this message
Scott Howard (showard314) wrote :

attached is a debdiff using imagemagick's upstream svn commit 6793

no longer affects: librsvg (Ubuntu)
Changed in imagemagick (Debian):
status: Unknown → New
Revision history for this message
Adrien Cunin (adri2000) wrote :

For the record, I also filed bug #931802 against librsvg itself.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package imagemagick - 8:6.6.9.7-5ubuntu3

---------------
imagemagick (8:6.6.9.7-5ubuntu3) precise; urgency=low

  * 0006-rsvg-convert.patch: upstream removed the rsvg command from
    librsvg2-bin, use rsvg-convert instead (LP: #929573)
 -- Scott Howard <email address hidden> Fri, 17 Feb 2012 12:39:05 +0200

Changed in imagemagick (Ubuntu):
status: Triaged → Fix Released
Changed in imagemagick (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.