imagemagick is incorrectly set as a dependency - it should be recommended/a suggestion

Bug #1562560 reported by fossfreedom
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

imagemagick hijacks the pdf mimetype so evince is not auto-run when double clicking a pdf.

Trying to imagemagick removes some vital cups and printer capabilities.

Can't see a particular reason why its a dependency - at the minimum it should be a recommended package to allow you to uninstall it.

Preferably it should be moved to a suggested package.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: imagemagick 8:6.8.9.9-7ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Mar 27 18:19:38 2016
InstallationDate: Installed on 2015-12-12 (105 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20151209)
SourcePackage: imagemagick
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
fossfreedom (fossfreedom) wrote :
Revision history for this message
fossfreedom (fossfreedom) wrote :

tagged hplip because hplip is pulling in imagemagick as a dependency (?) - apologies if its not hplip but its cups instead.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Changed in imagemagick (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathew Hodson (mhodson) wrote :

cups-filters (1.8.3-2ubuntu3) in Xenial has a new dependency on imagemagick (>= 6.4~). This is a change from Wily and earlier releases.

affects: hplip (Ubuntu) → cups-filters (Ubuntu)
Changed in cups-filters (Ubuntu):
importance: Undecided → Low
no longer affects: imagemagick (Ubuntu)
Revision history for this message
Mathew Hodson (mhodson) wrote :

It looks like this was introduced upstream in cups-filters (1.4.0-1). Here is what the changelog says:

cups-filters (1.4.0-1) unstable; urgency=medium

[...]

  * Added dependencies on imagemagick (>= 6.4~), liblouisutdml-bin, and
    poppler-utils to cups-filters, as they are needed to convert images, text,
    and PDF to Braille, added antiword and docx2txt to Suggests: as they allow
    converting Word files to Braille

 -- Didier Raboud <email address hidden> Tue, 15 Dec 2015 11:04:23 +0100

Revision history for this message
Nik Soams (fuj63904) wrote :

Please change imagemagic to recommended or suggested dependency as are liblouisutdml-bin, antiwordm nd docx2txt

WHY?
Because imagemagic has tons of exploits
https://people.canonical.com/~ubuntu-security/cve/pkg/imagemagick.html

It should be HIGH priority!

Revision history for this message
Paul Bransford (draeath) wrote :

Version number of dependency should be removed as well (IM 7.x came out in 2011!) as this prevents the replacement of IM with GM via graphicsmagick-imagemagick-compat

I attempted to submit a bug for that, but launchpad timed out and lost my essay-sized report :|

It may not be appropriate for this to be changed upstream, as Debian has different support timelines than Ubuntu.

TL;DR replace "imagemagick (>= 6.4~)" with "imagemagick"

Revision history for this message
Paul Bransford (draeath) wrote :

To clarify the above, graphicsmagick-imagemagick-compat specifies "Provides: imagemagick" but Provides are ignored by dependency resolution when version numbers are specified.

From the debian policy document:

'If a relationship field has a version number attached, only real packages will be considered to see whether the relationship is satisfied (or the prohibition violated, for a conflict or breakage). In other words, if a version number is specified, this is a request to ignore all Provides for that package name and consider only real packages. The package manager will assume that a package providing that virtual package is not of the "right" version. A Provides field may not contain version numbers, and the version number of the concrete package which provides a particular virtual package will not be considered when considering a dependency on or conflict with the virtual package name.'

Revision history for this message
Paul Bransford (draeath) wrote :

... one last clarification as well! If you're not familiar, graphicsmagick-imagemagick-compat provides a DROP-IN replacement for imagemagick, so it should be a safe change!

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Moved imagemagick from Depends: to Recommends: and removed the version requirement in the Debian repository of cups-filters. So the fix will appear in one of the next Ubuntu packages of cups-filters.

Changed in cups-filters (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups-filters - 1.14.0-2

---------------
cups-filters (1.14.0-2) unstable; urgency=low

  * Migrate 1.14.0 to unstable

  [ Till Kamppeter ]
  * Moved dependency on ImageMagick to Recommends: and removed the
    version requirements, so that also graphicsmagick-imagemagick-compat
    can be used (LP: #1562560, Closes: #823110)

 -- Didier Raboud <email address hidden> Sun, 18 Jun 2017 16:56:02 +0200

Changed in cups-filters (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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