Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176182 - java-config: add support for optional dependencies to package.env
Summary: java-config: add support for optional dependencies to package.env
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 179686
  Show dependency tree
 
Reported: 2007-04-26 22:50 UTC by Petteri Räty (RETIRED)
Modified: 2007-05-28 19:33 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 Petteri Räty (RETIRED) gentoo-dev 2007-04-26 22:50:55 UTC
Take for example jdbc drivers. The package can use these if they are installed but there is no point in dependending on all of them. So I propose:
01:48 <@Betelgeuse> put OPTIONAL_DEPEND="" to package.env
01:48 <@Betelgeuse> gjl takes a look if it's installed
01:48 <@Betelgeuse> if it is, puts to cp
01:49 <@Betelgeuse> Should work with any provider type infra
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-24 21:33:33 UTC
The only problem I see with it that the package needs to know about all existing providers and has to be updated if some new are added. Could also think of some way there the providers would register by putting a file somewhere, like ant-tasks register themselves.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-05-24 21:49:44 UTC
(In reply to comment #1)
> The only problem I see with it that the package needs to know about all
> existing providers and has to be updated if some new are added. Could also
> think of some way there the providers would register by putting a file
> somewhere, like ant-tasks register themselves.
> 

Combine this with virtuals support and we should be all set.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-25 11:03:45 UTC
(In reply to comment #2)
> Combine this with virtuals support and we should be all set.
 
Well if virtuals have support for "gimme all packages satisfying a virtual" and not just one package :)
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-28 19:33:00 UTC
In java-config-2.0.33-r1 and eclass - new function java-pkg_register-optional-dependency