Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32827 - blackdown-jdk-1.4.1 ( java.eclass ) doesn't set default VM with java-config-1.1.2
Summary: blackdown-jdk-1.4.1 ( java.eclass ) doesn't set default VM with java-config-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 14:09 UTC by Radoslaw Szkodzinski
Modified: 2003-11-12 08:22 UTC (History)
0 users

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


Attachments
Seemingly working patch (java.eclass.patch,377 bytes, patch)
2003-11-06 08:24 UTC, Radoslaw Szkodzinski
Details | Diff
Quick testcase (tmp.sh,112 bytes, text/plain)
2003-11-08 09:56 UTC, Radoslaw Szkodzinski
Details
meh, exact testcase (tmp.sh,112 bytes, text/plain)
2003-11-08 09:59 UTC, Radoslaw Szkodzinski
Details
testcase with fixed check (tmp2.sh,129 bytes, text/plain)
2003-11-08 10:02 UTC, Radoslaw Szkodzinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2003-11-05 14:09:09 UTC
The summary says it all. The file gets installed to /etc/env.d/java instead of /etc/env.d
Copying the file one level up fixes the problems with missing JAVA_HOME.
Comment 1 Todd Berman (RETIRED) gentoo-dev 2003-11-05 14:12:00 UTC
Call me crazy, but Im pretty sure this is normal, and java-config is supposed
to be used to select the active vm (which puts the file into /etc/env) and
then an env-update fixes the problem. So this doesnt seem at all like a valid
resolution.
Comment 2 Radoslaw Szkodzinski 2003-11-05 15:05:17 UTC
Wait, it braks automatic emerging of packages, e.g. emerge system gets broken.
Comment 3 Radoslaw Szkodzinski 2003-11-05 15:08:09 UTC
I've posted too soon, sorry for spamming.
It seems that the ebuild doesn't call java-config to select the VM.
Comment 4 Radoslaw Szkodzinski 2003-11-05 15:13:20 UTC
Changing summary.
The check for default VM is broken, because now java puts an error on stdout,
which gets caught.
Comment 5 Radoslaw Szkodzinski 2003-11-06 07:46:10 UTC
Reopening, as the summary is changed.
Comment 6 Radoslaw Szkodzinski 2003-11-06 08:24:10 UTC
Created attachment 20339 [details, diff]
Seemingly working patch
Comment 7 Adrian Almenar 2003-11-06 17:55:17 UTC
which version of java-config did you have installed ?
Comment 8 Radoslaw Szkodzinski 2003-11-07 07:23:18 UTC
Problem is with both 1.1.1 and 1.1.2.
Comment 9 Adrian Almenar 2003-11-07 22:26:48 UTC
can you try with java-config-1.1.4 ?
Comment 10 Radoslaw Szkodzinski 2003-11-08 09:56:08 UTC
Created attachment 20433 [details]
Quick testcase

1.1.4 still has the bug.
The test is just like the one in java_pkg_postinst of java.eclass.

Check it after unsetting JAVA_HOME.
Comment 11 Radoslaw Szkodzinski 2003-11-08 09:59:18 UTC
Created attachment 20434 [details]
meh, exact testcase

This is just like the original java.eclass.
The previous one has -n instead of -z and swapped infos.
Comment 12 Radoslaw Szkodzinski 2003-11-08 10:02:07 UTC
Created attachment 20435 [details]
testcase with fixed check
Comment 13 Adrian Almenar 2003-11-12 04:24:13 UTC
try updating making a sync first, i have made some changes on java.eclass code, also use java-config-1.1.5, then after that report if the problem its still there. Thanks.
Comment 14 Radoslaw Szkodzinski 2003-11-12 08:22:57 UTC
It works now, thank you for your time.