Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51069 - java-config sets wrong CLASSPATH when adding jboss,jdbc-mysql
Summary: java-config sets wrong CLASSPATH when adding jboss,jdbc-mysql
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 31468
  Show dependency tree
 
Reported: 2004-05-14 09:37 UTC by Alexander Lenhardt
Modified: 2004-05-18 21:57 UTC (History)
0 users

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 Alexander Lenhardt 2004-05-14 09:37:34 UTC
The command java-config --set-system-classpth jboss,jdbc-mysql leads to a wrong
/etc/env.d/21java-classpath file.
For jboss the classpath is returned with sinlge quotes and for jdbc-mysql its not.
So the file look like:
'/usr/share.....:another/jboss/path:...':/usr/share/jdbc-mysql/...

Now env-update dies with following error:
!!! Unexpected end of config file: variable :/usr/share/jdbc-mysql/lib/mysql-connector-java-3.0.11-stable-bin.jar
Traceback (most recent call last):
  File "/usr/sbin/env-update", line 11, in ?
    portage.env_update()
  File "/usr/lib/portage/pym/portage.py", line 630, in env_update
    myconfig=getconfig(root+"etc/env.d/"+x)
  File "/usr/lib/portage/pym/portage.py", line 937, in getconfig
    raise Exception("ParseError: Unexpected EOF: "+str(mycfg)+": on/before line "+str(lex.lineno))
Exception: ParseError: Unexpected EOF: /etc/env.d/21java-classpath: on/before line 2

Removing the single quotes in /etc/env.d/21java-classpath resolves this issue.


Reproducible: Always
Steps to Reproduce:
1. java-config --set-system-classpth=jboss,jdbc-mysql
2. env-update
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2004-05-15 19:58:21 UTC
Can you attach the file that java-config produces? And what versions of jboss and jdbc-mysql you are using.
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2004-05-18 14:45:27 UTC
I think this is a bug in the jboss ebuild.
Comment 3 Chris Aniszczyk (RETIRED) gentoo-dev 2004-05-18 21:57:55 UTC
Should be fixed in portage now ;)