Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 69064

Summary: java-config uses the wrong python
Product: Gentoo Linux Reporter: Frank Lomax <gentoo>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Frank Lomax 2004-10-26 13:29:04 UTC
The first line of java-config says:

#!/usr/bin/env python

While in general this is the right thing for Python scripts, in this case, I believe it is wrong.  It should explicitly use /usr/bin/python.

The reason is that this script depends on Gentoo specific additional packages that must be in Python's site-packages.  However, if you've got a different Python on your $PATH, say because you have installed a newer version in /usr/local/bin, java-config will break.

Reproducible: Always
Steps to Reproduce:
1. Install a from-source Python in /usr/local/bin
2. put /usr/local/bin first on your path
3. run java-config

Actual Results:  
...
ImportError: no module named java_config

Expected Results:  
no import error :)
Comment 1 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-02-04 18:35:30 UTC

*** This bug has been marked as a duplicate of 60606 ***