Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169288 - dev-perl/Inline-Java-0.51 fails to build
Summary: dev-perl/Inline-Java-0.51 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 169152
  Show dependency tree
 
Reported: 2007-03-04 14:24 UTC by Andrej Kacian (RETIRED)
Modified: 2007-03-30 20:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (Inline-Java-0.51-buildlog.txt,2.25 KB, text/plain)
2007-03-04 14:24 UTC, Andrej Kacian (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Kacian (RETIRED) gentoo-dev 2007-03-04 14:24:05 UTC
I'm lost with all those java virtual machines, so somone's going to have to lead my hand in troubleshooting this. All I know is:

# java-config -f
blackdown-jre-1.4.2
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2007-03-04 14:24:22 UTC
Created attachment 112062 [details]
build log
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2007-03-04 15:31:01 UTC
It looks like you don't have a jdk in your active profile, just the jre (maybe a bug in the virtual/java-jdk resolution?)
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2007-03-04 18:54:36 UTC
What do you suggest here? I know next to nothing about java...
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2007-03-05 20:29:15 UTC
I'm a perl guy myself :) can you eselect/java-config to set the jdk as the default? I'll need to think of a way to test this in the ebuild (or ask, gasp, the java folks how best to do it)
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2007-03-06 17:35:50 UTC
Ok, I found the issue - as you mentioned, I had blackdown-jre set as system VM, and as it's not a JDK, it doesn't provide necessary files. As soon as I chose sun-jdk for system VM, the perl module installs and passes all tests.

I can't mark it stable, though, until the ebuild checks for this - many users are only using a JRE and will be caught by this. Perhaps just bluntly checking for existence of /etc/java-config-2/bin/javac would do, assuming that if it's there, the system VM is set up properly and is a JDK.

I'll leave it up to you. :)
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2007-03-06 17:37:34 UTC
(In reply to comment #2)
> It looks like you don't have a jdk in your active profile, just the jre (maybe
> a bug in the virtual/java-jdk resolution?)

Just for sake of completeness - I have sun-jdk installed, it just wasn't set as system VM.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-28 06:14:28 UTC
(In reply to comment #6)
> (In reply to comment #2)
> > It looks like you don't have a jdk in your active profile, just the jre (maybe
> > a bug in the virtual/java-jdk resolution?)
> 
> Just for sake of completeness - I have sun-jdk installed, it just wasn't set as
> system VM.

 A way could be calling $(eselect java-vm show system), parse the output for JDK and skip tests if unsuccessful.
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2007-03-28 09:40:48 UTC
Except we never get as far as tests - the module fails to build because it's missing tools provided by a JDK.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-28 18:31:45 UTC
inherit java-utils-2.eclass and set JAVA_PKG_FORCE_VM to the JDK you want (you have to go through a list of all possible implementations with has_version and set the variable accordingly).

http://www.gentoo.org/proj/en/java/java-devel.xml#doc_chap2 "Build-Time VM Switching"
Comment 10 Michael Cummings (RETIRED) gentoo-dev 2007-03-30 20:13:35 UTC
that shouldn't be used within an ebuild (according to the notes around it in the eclass and the link you provided). However, there seem to be no qualms about calling java-config, so that's the route I went once I found a call that was worthy. All set.