graphviz package does not configure plugins

Bug #1270025 reported by Thomi Richards
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
graphviz (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

After installing graphviz 2.36.0-0ubuntu1 in Trusty, I can no longer generate any PNG images with the 'dot' tool. The reason for this is that the package scripts do not configure the installed graphviz plugins:

To reproduce:
----

$ dot -Tpng my_file.dot > my_file.png
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?

$ sudo dot -c
[sudo] password for thomi:

$ dot -Tpng my_file.dot > my_file.png
# works now.

I think the 'sudo dot -c' step ought to be done as part of the package installation scripts.

Revision history for this message
Martin Pitt (pitti) wrote :

For me it fails in a different way:
$ dot -Tpng ./Dokumente/computer/talks/efficient-bug-handling/bug-lifecycle.dot > /tmp/bug.png
Format: "png" not recognized. Use one of:

(sic - I didn't forget to copy&paste anything, it's really looking like that). Confirming that "dot -c" fixes that, this should indeed go into the postinst. I'll ask Matthias to confirm, and then upload that.

Changed in graphviz (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → High
Martin Pitt (pitti)
Changed in graphviz (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Martin Pitt (pitti)
Martin Pitt (pitti)
Changed in graphviz (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package graphviz - 2.36.0-0ubuntu2

---------------
graphviz (2.36.0-0ubuntu2) trusty; urgency=medium

  * debian/*.post{inst,rm}: Update for libgvc5-config-update →
    libgvc6-config-update to correctly configure plugins. (LP: #1270025)
  * Add a simple autopkgtest that ensures that "dot" works.
 -- Martin Pitt <email address hidden> Fri, 17 Jan 2014 07:55:19 +0100

Changed in graphviz (Ubuntu):
status: Fix Committed → Fix Released
tags: added: ci-engineering
Revision history for this message
grobbelaar (grobbelaar) wrote :

Does not seem to work with current 14.04 LTS:

$ cat /etc/issue
Ubuntu 14.04 LTS \n \l
$ dot -Tpng
Format: "png" not recognized. Use one of:
$ dot -V
dot - graphviz version 2.36.0 (20140111.2315)
$ aptitude show graphviz
Package: graphviz
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 2.36.0-0ubuntu3
(snipped)

Revision history for this message
Ilya Murav'jov (muravjov-il) wrote :

I confirm grobbelaar' results - the issue is not fixed:

$ dot -Tpng
Format: "png" not recognized. Use one of:

$ dot -V
dot - graphviz version 2.36.0 (20140111.2315)

$ dpkg --status graphviz
Package: graphviz
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 1785
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Multi-Arch: foreign
Version: 2.36.0-0ubuntu3

Revision history for this message
Ilya Murav'jov (muravjov-il) wrote :

Workaround: "sudo dot -c"

Revision history for this message
Richard Hansen (rhansen) wrote :

I filed a new bug report for this: bug #1349026

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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