Bug 157380 - java-config: some java packages die with "Unable to determine VM for building from dependencies." if jdk.conf or jdk-defaults.conf don't provide a usable JDK
Bug#: 157380 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: flameeyes@gentoo.org
Component: Development
URL: 
Summary: java-config: some java packages die with "Unable to determine VM for building from dependencies." if jdk.conf or jdk-defaults.conf don't provide a usable JDK
Keywords:  
Status Whiteboard: 
Opened: 2006-12-06 16:22 0000
Description:   Opened: 2006-12-06 16:22 0000
See the attached log.

The jar seems to have built fine though.

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-12-06 16:27:24 0000 -------
Created an attachment (id=103495) [details]
merge log

------- Comment #2 From Vlastimil Babka (Caster) 2006-12-06 18:16:08 0000 -------
Looks like my patch for bug 146807 wasn't perfect, this should die.
I've fixed the eclass in CVS, can you check it dies? Will investigate why it
happens tommorow.

------- Comment #3 From Vlastimil Babka (Caster) 2006-12-06 18:18:56 0000 -------
It doesn't happen on x86 and the DEPEND string looks fine. So
/usr/bin/depend-java-query is somehow broken on fbsd.

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-12-06 18:26:05 0000 -------
Okay, yes it dies.
Why? No clue.

------- Comment #5 From Vlastimil Babka (Caster) 2006-12-07 17:36:00 0000 -------
OK so this is caused by two things
a) missing jdk-defaults.conf on fbsd
b) some bug in the failback code (when no default/user setting exists) in
depend-java-query

a) is now fixed with updated (without revbump) java-config in CVS, will look to
b) later

------- Comment #6 From Vlastimil Babka (Caster) 2007-03-31 20:39:35 0000 -------
*** Bug 172926 has been marked as a duplicate of this bug. ***

------- Comment #7 From Vlastimil Babka (Caster) 2007-05-27 15:46:45 0000 -------
So the problem was when lowest of the possible DEPENDs (1.3) was a VM that was
not installed, because only the lowest was tried. Fixed in SVN by trying to
match all specified versions.

------- Comment #8 From Vlastimil Babka (Caster) 2007-05-28 19:34:42 0000 -------
Released in java-config-2.0.33-r1

------- Comment #9 From rand 2007-08-07 22:01:12 0000 -------
ollect2: ld returned 1 exit status
make[1]: *** [build/dns-sd] Ошибка 1
make[1]: Leaving directory
`/var/tmp/portage/net-misc/mDNSResponder-107.6-r5/work/mDNSResponder-107.6/Clients'
make: *** [../Clients/build/dns-sd] Ошибка 2