Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276992 - media-gfx/graphviz: Add use flag "X" to allow building without depending on libXaw
Summary: media-gfx/graphviz: Add use flag "X" to allow building without depending on l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 00:09 UTC by Peter Stuge
Modified: 2012-05-28 22:34 UTC (History)
3 users (show)

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


Attachments
IUSE=X in media-gfx/graphviz-2.24.0 (graphviz-2.24.0-no-X-no-libXaw.patch,813 bytes, patch)
2009-07-08 00:12 UTC, Peter Stuge
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Stuge 2009-07-08 00:09:43 UTC
No need to depend on libXaw because cairo can be built also with USE=-X.

Reproducible: Always

Steps to Reproduce:
USE="-X cairo" emerge -pv graphviz

Actual Results:  
[ebuild   R   ] x11-libs/cairo-1.8.8  USE="svg -X -cleartype -debug -directfb -doc -glitz -opengl -xcb" 0 kB [0]
..
[ebuild  N    ] x11-libs/libSM-1.1.0  USE="ipv6 -debug" 247 kB [0]
[ebuild  N    ] x11-libs/libXt-1.0.5  USE="-debug" 489 kB [0]
[ebuild  N    ] x11-libs/libXpm-3.5.7  USE="-debug" 350 kB [0]
[ebuild  N    ] x11-libs/libXmu-1.0.4  USE="ipv6 -debug" 299 kB [0]
[ebuild  N    ] x11-libs/libXaw-1.0.5  USE="-debug" 502 kB [0]
[ebuild   R   ] media-gfx/graphviz-2.24.0  USE="cairo jpeg png -doc -examples -gtk -java -lasi -nls -perl -python -ruby -tcl" 0 kB [0]


Expected Results:  
[ebuild   R   ] x11-libs/cairo-1.8.8  USE="svg -X -cleartype -debug -directfb -doc -glitz -opengl -xcb" 0 kB [0]
..
[ebuild   R   ] media-gfx/graphviz-2.24.0  USE="cairo jpeg png -X -doc -examples -gtk -java -lasi -nls -perl -python -ruby -tcl" 0 kB [0]
Comment 1 Peter Stuge 2009-07-08 00:12:07 UTC
Created attachment 197137 [details, diff]
IUSE=X in media-gfx/graphviz-2.24.0

This fixes the bug for me.
Comment 2 Jeremy Murphy 2010-09-25 02:50:54 UTC
Since this patch fixes the bug AND 2.24 is no longer in the tree, please close this bug.  Thanks, cheers.
Comment 3 Peter Stuge 2010-09-25 03:13:11 UTC
Same problem is still in graphviz-2.26.3-r2, which also depends on libXaw with either USE=cairo or USE=gtk+ when I think libXaw seems to only be required when cairo actually USEs X.
Comment 4 Peter Stuge 2010-09-25 03:16:09 UTC
I just read a comment in the ebuild that the lefty program (built with USE=tcl) needs Xaw and X. So the correct fix would be tcl? x11-libs/libXaw, not X?.
Comment 5 Jeremy Murphy 2010-09-25 04:13:02 UTC
Hmmm.  Graphics herd, have you had a look at the patch?

Peter, could you update the summary to reflect the current/latest version of graphviz that it affects.  Thanks.
Comment 6 Peter Stuge 2010-09-25 20:59:02 UTC
Sorry for the confusion now, but lefty isn't built with USE=tcl, and the issue is still the same as originally reported;

cairo can be built without USE=X and graphviz can be built without libXaw. Maybe it's because of some other graphviz USE flag I'm not setting.. doc? examples? lasi?
Comment 7 Matt Turner gentoo-dev 2012-03-30 22:08:26 UTC
I don't understand what's going on in this bug.

sandybridge bin # scanelf -n lefty 
 TYPE   NEEDED FILE 
ET_EXEC libXaw.so.7,libXpm.so.4,libXmu.so.6,libXt.so.6,libSM.so.6,libICE.so.6,libuuid.so.1,libxcb.so.1,libXau.so.6,libXdmcp.so.6,libXext.so.6,libX11.so.6,libm.so.6,libdl.so.2,libc.so.6 lefty

lefty clearly depends on libXaw, as can be seen here^ and by looking at its sources. It's not clear to me that there's any way to build with lefty, much less one that the ebuild exposes.

The graphics herd has been totally silent so I don't think I'll be stepping on their toes by closing this bug.

In short, the dependency on Xaw isn't because of how cairo is build. lefty (part of graphviz) actually depends on libXaw.
Comment 8 Matt Turner gentoo-dev 2012-03-30 22:11:07 UTC
Or, maybe you're saying that USE=-X should cause graphviz to not build lefty and not depend on Xaw? That makes sense, but I can't be sure since there's a lot of confusion in the comments. If you can explain, please reopen and I'll try to fix it myself.
Comment 9 Peter Stuge 2012-03-31 02:18:03 UTC
(In reply to comment #8)
> Or, maybe you're saying that USE=-X should cause graphviz to not build lefty
> and not depend on Xaw?

That's perfect. The core issue is that other parts of graphviz could run without X, even if that means giving up on lefty.

> That makes sense, but I can't be sure since there's a lot of confusion in
> the comments. If you can explain, please reopen and I'll try to fix it myself.

Sorry for the confusion. Thanks for your help!
Comment 10 Sebastian Pipping gentoo-dev 2012-05-28 22:34:05 UTC
+  28 May 2012; Sebastian Pipping <sping@gentoo.org> graphviz-2.28.0.ebuild:
+  Remove use of --with(out)-x as there is no parameter by that name. Add use
+  flag "X" to compile without libXaw (bug #276992) as Xaw is only needed by
+  lefty. As a side note both cairo and gtk can be compiled with USE=-X.
+