Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56107 - java-config dies HOME var not set during boot
Summary: java-config dies HOME var not set during boot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Jason A. Mobarak (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 56795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-05 00:13 UTC by Thomas Matthijs (RETIRED)
Modified: 2004-07-28 02:49 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Matthijs (RETIRED) gentoo-dev 2004-07-05 00:13:49 UTC
java-config can get called during boot(bash-completion,tomcat conf.d script), when vars like HOME are not set, it wrongly assumes those will always be present
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-05 11:14:52 UTC
The question is... what should java-config do if it can't find $HOME ? Producing an error seems sensible and easy.
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-05 11:30:18 UTC
it doesn't need $HOME for alot of options (-L to just name one)
for the ones it does need it a nice error message would be sensible
Comment 3 Martin Diers 2004-07-08 08:08:27 UTC
That may be true, but to resolve the problem, there should only be an error if the HOME env-var is actually needed by the specific command that java-config is executing. This would prevent the error/failure when java-config is being run at boot.

The problem actually exists in the jc_options.py script, which plainly states in the comments that the script assumes that os.environ will always contain the HOME key.
Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-14 03:48:04 UTC
*** Bug 56795 has been marked as a duplicate of this bug. ***
Comment 5 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-16 21:26:23 UTC
In version 1.2.8, just released.
Comment 6 Patrizio Bassi 2004-07-18 07:25:55 UTC
i've installed 1.2., but i got the *SAME* error.
Comment 7 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-18 13:48:58 UTC
The one traceback of this error I was able to see, that part of the code doesn't exist anymore, so it's impossible to get the exact same tracback.

I need to the see new traceback in order to fix this problem.

Hopefully you did in fact install *1.2.8* ?
Comment 8 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-18 13:53:49 UTC
Also... under the situations where HOME supposedly isn't set, i.e. tomcat conf.d, and bash completion, I'm not seeing the traceback happen with 1.2.8, so more information about how things are set up, and with what packages, so that I can reproduce the error would be very helpful too.
Comment 9 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-18 14:30:02 UTC
Sorry, I was still waking up when I wrote the last comments, information on when the errors are happenning would still be very useful. But ``unset HOME'' works too.

http://dev.gentoo.org/~aether/jc_options.py.diff

Seems to be what was the problem... in 1.2.9 soon.

Comment 10 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-19 23:43:46 UTC
Patrizio Bassi:

There's not much point in you commenting on a bug if you aren't going to respond to my questions.
Comment 11 Patrizio Bassi 2004-07-20 00:19:19 UTC
sorry...

i mistyped.

i installed 1.2.8, of course and i have the same backtrack of 1.2.7

i read that code is no more in java-config.
ehhehe that's impossibile. i got same error.
or ebuild has some problems...or code has it.
if u need more info, just ask!
Comment 12 Thomas Stein 2004-07-23 14:55:47 UTC
Hello

Had this problem at boot time to. The jc_options.py.diff solved the problem.

Thanks
Thomas
Comment 13 Patrizio Bassi 2004-07-24 00:20:51 UTC
nice nice.

waiting for new release or a -r1
Comment 14 Jason A. Mobarak (RETIRED) gentoo-dev 2004-07-25 11:43:17 UTC
Fixed, again, in version 1.2.9 just released.
Comment 15 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-28 02:49:50 UTC
works fine with 1.2.9