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
Can you attach the file that java-config produces? And what versions of jboss and jdbc-mysql you are using.
I think this is a bug in the jboss ebuild.
Should be fixed in portage now ;)