<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>176182</bug_id>
          
          <creation_ts>2007-04-26 22:50 0000</creation_ts>
          <short_desc>java-config: add support for optional dependencies to package.env</short_desc>
          <delta_ts>2007-05-28 19:33:00 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Java</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>179686</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>betelgeuse@gentoo.org</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-04-26 22:50:55 0000</bug_when>
            <thetext>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 &lt;@Betelgeuse&gt; put OPTIONAL_DEPEND=&quot;&quot; to package.env
01:48 &lt;@Betelgeuse&gt; gjl takes a look if it&apos;s installed
01:48 &lt;@Betelgeuse&gt; if it is, puts to cp
01:49 &lt;@Betelgeuse&gt; Should work with any provider type infra</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-24 21:33:33 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-24 21:49:44 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; The only problem I see with it that the package needs to know about all
&gt; existing providers and has to be updated if some new are added. Could also
&gt; think of some way there the providers would register by putting a file
&gt; somewhere, like ant-tasks register themselves.
&gt; 

Combine this with virtuals support and we should be all set.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-25 11:03:45 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Combine this with virtuals support and we should be all set.
 
Well if virtuals have support for &quot;gimme all packages satisfying a virtual&quot; and not just one package :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-28 19:33:00 0000</bug_when>
            <thetext>In java-config-2.0.33-r1 and eclass - new function java-pkg_register-optional-dependency</thetext>
          </long_desc>
      
    </bug>

</bugzilla>