Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195533 - media-gfx/graphviz: need to compile with png support
Summary: media-gfx/graphviz: need to compile with png support
Status: RESOLVED DUPLICATE of bug 181147
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 18:48 UTC by Thilo Mohri
Modified: 2007-10-11 21:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thilo Mohri 2007-10-11 18:48:17 UTC
I want to install media-video/vlc.

Some other package wanted me to compile graphviz with png support (sorry, dont't know the name of the other package). i added png to the USE flags but same error after this.

Viewing the ebuild and the ./configure --help showed me that there are two options: --with-pnglibdir --with-pngincludedir which aren't handled by the ebuild.

diff file (i hope it is right, i'm new to ebuild developing):

17c17
< IUSE="doc examples gnome gtk nls pango perl python ruby X tcl tk"
---
> IUSE="doc examples gnome gtk nls pango perl python ruby X tcl tk png"
139a140,144
>       if use png; then
>               myconf=$myconf . " --with-pnglibdir=/usr/lib
>               --with-pngincludedir=/usr/include"
>       fi
> 


Reproducible: Always

Steps to Reproduce:
1. emerge graphviz
2. emerge vlc



Expected Results:  
$? == 0 ;)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 19:24:05 UTC
There's completely no point in introducing a use flag for a mandatory dependency. Plus, what exactly you mean here? There's no such thing like --with-png in graphviz, PNG support of part of GD features - if you don't compile GD w/ USE=png, you won't have then. So, what's the request here exactly?

Comment 2 Thilo Mohri 2007-10-11 20:21:10 UTC
(In reply to comment #1)
> There's completely no point in introducing a use flag for a mandatory
> dependency. Plus, what exactly you mean here? There's no such thing like
> --with-png in graphviz, PNG support of part of GD features - if you don't
> compile GD w/ USE=png, you won't have then. So, what's the request here
> exactly?
> 

graphviz ./configure --help shows the options --with-pnglibdir & --with-pnginclude dir.

I installed vlc => vlc needs another package (libdvd or sth like that). This package aborted configuring with the error that i need have to recompile graphbiz with png support.

after changing the ebuild as mentioned above all worked fine.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 20:38:02 UTC
Eh, none of libdvd* stuff we have depends on graphviz, not even remotely (what would be the point of that doesn't even make sense, graphiz has no DVD-related features). 

We really need some real errors when you file a bug, instead of being left out guessing what the problem (or even what the affected package name) is.
Comment 4 Thilo Mohri 2007-10-11 20:52:14 UTC
ahh :( sorry, but my scrollback was set to small.

the dependency is from vlc ... i "think" it was the package media-libs/libdvbpsi.

This package aborted with the following error:
You need to recompile media-gfx/graphviz with png support.
I found no way to compile graphviz with png support rather than editing the ebuild.

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 21:01:42 UTC
<snip>
$ dot -Txxx
Renderer type: "xxx" not recognized. Use one of: canon cmap cmapx dia dot fig gd gd2 gif glitz gtk hpgl imap ismap jpeg jpg mif mp pcl pdf pic plain plain-ext png ps ps2 svg svgz vrml vtx wbmp xdot xlib
</snip>

That's what the ebuild does. Works just fine here:

[ebuild   R   ] media-gfx/graphviz-2.12  USE="X -doc -examples -gnome gtk nls pango perl python ruby -tcl -tk" 0 kB 

Anyway, as noted above... This is media-libs/gd feature and you need media-libs/gd w/ USE=png for this to work... Dupe of Bug 181147.

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