Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147199 - dev-java/java-config-1.3.5 and dev-java/java-config-1.3.6 traceback: Error in jc_util.py
Summary: dev-java/java-config-1.3.5 and dev-java/java-config-1.3.6 traceback: Error in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 147204 147212 147404 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-11 08:40 UTC by web1
Modified: 2006-09-12 23:57 UTC (History)
3 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 web1 2006-09-11 08:40:59 UTC
java-config-1 can't acces any information about the JAVA-HOME but crashes. No java-config-1 dependent installation possible.

See line 100 of jc_util.py and the following procedure-body.

jc_util.py line 100 reads:
  
  def find_exec(exe, java_home):

Following change fixes the bug:

  def find_exec(exe, jh):

Procedure find_exec was given a reference named "java_home" during the call but uses the name "jh" in the body of the procedure. Either the parameter is renamed to "jh" or the reference in the body to "java_home"
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-09-11 10:39:34 UTC
In order to fix the problem, at the very least, would need to know what version of java-config you are using, and what you were doing to cause the error.
Comment 2 web1 2006-09-11 10:47:36 UTC
Sorry. The version is 

  java-config-1.3.6 (but it was in 1.3.5, too)

I found out when I was trying to emerge jython, but I could reproduce it by calling:

  java-config-1 -c
  java-config-1 -J

or

  java-config-1 -S <jvm-id>
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-09-11 11:13:40 UTC
There were actually other changes that were needed in jc_options.py, since it used named parameters.

This was a regression from 1.3.5 which was fixed in 1.3.5-r1, and obviously lost in 1.3.6.

Fixed in 1.3.6-r1. Thanks for reporting!
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 11:21:37 UTC
*** Bug 147204 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 11:48:08 UTC
*** Bug 147212 has been marked as a duplicate of this bug. ***
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-12 23:56:30 UTC
*** Bug 147404 has been marked as a duplicate of this bug. ***