Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 156228
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Petteri Räty <betelgeuse@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 156228 depends on: Show dependency tree
Bug 156228 blocks: 157257
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-25 09:51 0000
In the ebuild:
# javadoc does not build correctly with 1.6
DEPEND="
        doc? ( =virtual/jdk-1.4* =virtual/jdk-1.5* )
        !doc? ( >=virtual/jdk-1.4 )

Trying to emerge:
pena trang # USE="doc" devebuild trang-20030619-r2.ebuild clean compile
 * trang-20030619.zip MD5 ;-) ...                                              
                                                                               
                                       [ ok ]
 * trang-20030619.zip RMD160 ;-) ...                                           
                                                                               
                                       [ ok ]
 * trang-20030619.zip SHA1 ;-) ...                                             
                                                                               
                                       [ ok ]
 * trang-20030619.zip SHA256 ;-) ...                                           
                                                                               
                                       [ ok ]
 * trang-20030619.zip size ;-) ...                                             
                                                                               
                                       [ ok ]
 * Using: sun-jdk-1.6
>>> Unpacking source...

The good thing is that this is a corner case but at the very least we should
document that this is not supported at this time or implement the needed code
to fix this.

------- Comment #1 From Petteri Räty 2006-11-25 09:53:37 0000 -------
My doc? atom was missing || ( ) but adding that did not help.

------- Comment #2 From Josh Nichols (RETIRED) 2006-11-25 12:42:31 0000 -------
depend-java-query is the script that does the real magic. the java-utils-2 does
calls in to figure out what -target / -source / vm to use. depend-java-query
gets passed the DEPEND/RDEPEND (depending on the situation).

depend-java-query is very naive, in that it only checks for known patterns, ie
=virtual/jdk-1.4*, >=virtual/jdk-1.5. In particular, it doesn't deal use flags.
so in the example, it sees >=virtual/jdk-1.4 as being the 'best' match, so uses
that.

JAVA_PKG_NV_DEPEND can be used to explicitly say what to pass to
depend-java-query. This is used in a few cases (ie dev-util/eclipse-sdk), but
doesn't seem to be documented at all.

------- Comment #3 From Petteri Räty 2006-12-06 11:44:33 0000 -------
http://overlays.gentoo.org/proj/java/changeset/3334
http://dev.gentoo.org/~betelgeuse/patches/java-utils-2.eclass-use.patch

With these two changes you can use conditional DEPEND/RDEPEND values.

------- Comment #4 From Petteri Räty 2006-12-17 09:35:35 0000 -------
Fixed in 2.0.31.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug