Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 430890

Summary: app-doc/doxygen: USE=dot uneffective
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: New packagesAssignee: Steve Arnold <nerdboy>
Status: RESOLVED CANTFIX    
Severity: normal CC: dev-tools, xarthisius
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 424283    
Bug Blocks:    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-11 08:38:51 UTC
The USE=dot flag of app-doc/doxygen has no real effect; doxygen is perfectly capable of generating the graphs if graphviz is installed anyway. I believe the flag should be removed and replaced with appropriate runtime-dependency measures.
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-08-11 09:19:24 UTC
Some packages that depend on doxygen need dot functionality, and some of them not. That's why doing pkg_postinst() is not enough. If we make it unconditional dependence someone will file a bug about it, cause he/she won't like to have graphviz on their system and will be as right as you are. Shifting the dependency to packages that really need it is IMHO stupid thing to do.

Until GLEP 62[1] is implemented we can't do anything about it.

[1] http://www.gentoo.org/proj/en/glep/glep-0062.html
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-11 09:24:36 UTC
(In reply to comment #1)
> Some packages that depend on doxygen need dot functionality, and some of
> them not. That's why doing pkg_postinst() is not enough. If we make it
> unconditional dependence someone will file a bug about it, cause he/she
> won't like to have graphviz on their system and will be as right as you are.
> Shifting the dependency to packages that really need it is IMHO stupid thing
> to do.

To be honest, considering technical details of doxygen, it is actually correct for packages to depend on both graphviz and doxygen. Moreover, usually it is necessary, unless you're going to copy all file-format graphviz flags to doxygen.

For example, my pimplxx depends on:

    app-doc/doxygen
    media-gfx/graphviz[svg]
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-08-11 09:54:53 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Some packages that depend on doxygen need dot functionality, and some of
> > them not. That's why doing pkg_postinst() is not enough. If we make it
> > unconditional dependence someone will file a bug about it, cause he/she
> > won't like to have graphviz on their system and will be as right as you are.
> > Shifting the dependency to packages that really need it is IMHO stupid thing
> > to do.
> 
> To be honest, considering technical details of doxygen, it is actually
> correct for packages to depend on both graphviz and doxygen. Moreover,
> usually it is necessary, unless you're going to copy all file-format
> graphviz flags to doxygen.
> 
> For example, my pimplxx depends on:
> 
>     app-doc/doxygen
>     media-gfx/graphviz[svg]
Make a tracker, explain the issue there, find all packages that need to have their deps adjusted. Then we can drop dot flag from doxygen