Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238121 - media-gfx/asymptote has too many mandatory dependencies
Summary: media-gfx/asymptote has too many mandatory dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 15:39 UTC by Elias Pipping
Modified: 2008-10-07 06:17 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 Elias Pipping 2008-09-19 15:39:29 UTC
the asymptote ebuild currently depends on both

  dev-libs/libsigsegv

and

  x11-misc/xdg-utils.

Both of these are actually optional. They should be in the ebuild, too -- that would
greatly benefit portage prefix, since e.g. currently, libsigsegv does not compile (on osx i386),
and xdg-utils draw in a bunch of dependencies, none of which are needed (on osx).
Comment 1 Wormo (RETIRED) gentoo-dev 2008-09-19 23:34:54 UTC
Thanks for the suggestion, assigning to maintainer
Comment 2 Andrey Grozin gentoo-dev 2008-10-03 15:21:14 UTC
You are right, libsigsegv is optional. I've added a new USE flag, sigsegv, for it. Without this flag, the ebuild will not even try to find this library. I'll commit the new ebuild on Monday.

I am not so sure about xdg-utils. The upstream unpatched asymptote has hard-coded program names for viewing pdf, [e]ps, and image files: acroread, gv, display (from imagemagick) correspondingly. We could have acroread and gv as dependencies. But this is not convenient. xdg-utils are a proposed freedesktop.org standard, and are quite slim - just some sh scripts. I think they should really be used by any package which wants to show a pdf or whatever file. For example, I am a KDE user, and I much prefer to view pdfs in kpdf (which starts instantly) rather than in acroread (which provides same-day service). I am sure gnome users feel the same, they want to use the native gnome viewer (don't remember its name). It is not the busyness of asymptote, or any other specific package, to prescribe the user which pdf viewer to use. Hence I patched asymptote to use xdg-utils.

Currently xdg-open supports KDE, gnome, and xfce. I think it should recognize MacOS X as just another desktop environment, and display pdf, ps, and image files in some way which is most appropriate for Mac users. Currently it does not do this - I think this is a bug in xdg-utils.

If you have any proposal which will not make the life of KDE, gnome, xfce users less comfortable, I'll be glad to implement it. For now, I've put the xdg-utils dependency inside X? ( ... ). Clearly, if a user has, e.g., an X-less server, [s]he does not need xdg-utils, because it is impossible to view pdfs etc. anyway.
Comment 3 Elias Pipping 2008-10-03 15:43:13 UTC
(In reply to comment #2)
> For now, I've put the xdg-utils dependency inside X? ( ... ). 

Thanks, that certainly helps.
Comment 4 Andrey Grozin gentoo-dev 2008-10-07 06:17:01 UTC
asymptote-1.43-r1 is in cvs. Thanks.