Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503114 - sci-mathematics/octave-3.8.0 - USE=gnuplot should not be abused to simply pull in sci-visualization/gnuplot
Summary: sci-mathematics/octave-3.8.0 - USE=gnuplot should not be abused to simply pul...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-01 12:32 UTC by Fabio Rossi
Modified: 2014-04-15 22:56 UTC (History)
0 users

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 Fabio Rossi 2014-03-01 12:32:58 UTC
In the ebuild an useflag should be used to enable/disable a functionality, in the case of octave the useflag gnuplot is misleading because it just adds a dependency but octave operations don't effectively depend on useflag status.

On my system the gnuplot useflag is not enabled but sci-visualization/gnuplot is installed due to another package dep and octave shows support for gnuplot graphics backend:

octave:2> available_graphics_toolkits 
ans = 
{
  [1,1] = fltk
  [1,2] = gnuplot
}
Comment 1 Mark Wright gentoo-dev 2014-03-01 13:28:28 UTC
The is no configure option for gnuplot, as can be verified with:

./configure --help |grep gnuplot

So all the ebuild does with the gnuplot use flag is to add the dependency:

gnuplot? ( sci-visualization/gnuplot )

I do not see how we could improve on the current behaviour.
Comment 2 Fabio Rossi 2014-03-01 16:17:01 UTC
(In reply to Mark Wright from comment #1)
> The is no configure option for gnuplot, as can be verified with:
> 
> ./configure --help |grep gnuplot
> 
> So all the ebuild does with the gnuplot use flag is to add the dependency:
> 
> gnuplot? ( sci-visualization/gnuplot )
> 
> I do not see how we could improve on the current behaviour.

The devmanual suggests to use post install messages for this kind of dependencies.

I'm wondering if portage is missing some functionality in supporting optional runtime dependencies, i.e. deps that a package can autodetect at runtime and, when missing, don't cause package failure but only reduced functionality.
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2014-04-15 22:56:10 UTC
gnuplot is a requirement at configure time actually, as configure.ac shows. feel free to submit a patch to avoid this automagic and re-open this bug. meanwhile we follow upstream way.