Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411605 - media-gfx/asymptote should depend on app-text/dvisvgm
Summary: media-gfx/asymptote should depend on app-text/dvisvgm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-04-11 15:24 UTC by W. Trevor King
Modified: 2012-04-12 20:25 UTC (History)
1 user (show)

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


Attachments
Patch adding dvisvgm dependency when svg USE flag is set. (dvisvgm.patch,698 bytes, patch)
2012-04-11 15:24 UTC, W. Trevor King
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description W. Trevor King 2012-04-11 15:24:35 UTC
Created attachment 308531 [details, diff]
Patch adding dvisvgm dependency when svg USE flag is set.

I recieved the following error when trying to build an SVG using asymptote:

    $ asy -f svg Circ-test.asy
    ...
    Cannot execute dvisvgm
    Please put in a file config.asy: 

    import settings;
    dvisvgm="LOCATION";

    where LOCATION specifies the location of dvisvgm.

    Alternatively, set the environment variable ASYMPTOTE_DVISVGM
    or use the command line option -dvisvgm="LOCATION". For further details, see
    http://asymptote.sourceforge.net/doc/Configuring.html
    http://asymptote.sourceforge.net/doc/Search-paths.html
    /usr/share/asymptote/plain_shipout.asy: 82.10: runtime: shipout failed
    make: *** [Circ-test.svg] Error 1

It seams to me that media-gfx/asymptote should depend on app-text/dvisvgm if the svg USE flag is set.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-11 16:00:47 UTC
media-gfx/asymptote does not support IUSE=svg right now, so adjusting the Summary accordingly.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-11 16:01:35 UTC
Comment on attachment 308531 [details, diff]
Patch adding dvisvgm dependency when svg USE flag is set.

If you add IUSE=svg then you should also assume that the build system will exclude SVG support when the USE flag is disabled.
Comment 3 Andrey Grozin gentoo-dev 2012-04-12 20:25:24 UTC
> If you add IUSE=svg then you should also assume that the build system will
> exclude SVG support when the USE flag is disabled.
This is just an optional run-time dependence. asymptote can produce many formats, some via imagemagick convert (USE=imagemagick), svg via dvisvgm (USE=svg), etc. If imagemagick or dvisvgm is not installed, it is still possible to use asymptote; if a user wants to produce a format not supported in this case, it gives an error message. What do you mean by disabling svg support? Producing a better error message when asked to generate an svg file? I don't think this is so important. In such a case, with USE=-imagemagick support for a bunch of other formats has to be "disabled" too (by producing error messages?).

So, I just applied the proposed patch. I think it is good enough. Otherwise, as I said, some "disabling" of support of various formats should be done for other optional runtime dependencies, too.