[Bug 467866] New: fop fails if JAVACMD_OPTS is set
https://bugzilla.novell.com/show_bug.cgi?id=467866 Summary: fop fails if JAVACMD_OPTS is set Classification: openSUSE Product: openSUSE 11.1 Version: RC 2 Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Apache AssignedTo: bnc-team-apache@forge.provo.novell.com ReportedBy: ajmay81@googlemail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 The fop program fails if JAVACMD_OPTS is set. In the file /usr/share/java-utils/java-functions there are the lines: if [ -n "$JAVACMD_OPTS" ]; then JAVACMD="$JAVACMD $JAVACMD_OPTS" fi but this causes problems with fop which expects only the executable, in /usr/share/fop/fop: if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." echo " We cannot execute $JAVACMD" exit 1 fi and also the exec stuff at the bottom of the file. This is a major problem since one needs to set JAVACMD_OPTS to run on non-graphical system, see: http://xmlgraphics.apache.org/fop/0.95/graphics.html#batik for details. This did not happen in openSuSE 11.0 which shipped with fop-0.94. Actually in that case one did not need to set the JAVACMD_OPTS since it worked in a non-graphical environment out of the box. Reproducible: Always Steps to Reproduce: 1. zypper in fop 2. sed -e 's/JAVACMD_OPTS=/JAVACMD_OPTS="-Djava.awt.headless=true"/g' /etc/java/java.conf 3. Try to run fop Actual Results: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib64/jvm/java/bin/java -Djava.awt.headless=true -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467866 User skh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467866#c1 Sonja Krause-Harder <skh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |skh@novell.com Component|Apache |Java AssignedTo|bnc-team-apache@forge.provo |bnc-team-java@forge.provo.n |.novell.com |ovell.com --- Comment #1 from Sonja Krause-Harder <skh@novell.com> 2009-01-21 01:51:36 MST --- Thank you for the report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467866 Sonja Krause-Harder <skh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|skh@novell.com |bnc-team-java@forge.provo.n | |ovell.com AssignedTo|bnc-team-java@forge.provo.n |skh@novell.com |ovell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467866 Andy May <ajmay81@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|RC 2 |Final -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467866 User skh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467866#c2 Sonja Krause-Harder <skh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|skh@novell.com |hvogel@novell.com --- Comment #2 from Sonja Krause-Harder <skh@novell.com> 2009-02-16 08:12:15 MST --- Reassigning to team lead for load balancing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467866 User aj@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467866#c3 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hvogel@novell.com |mvyskocil@novell.com --- Comment #3 from Andreas Jaeger <aj@novell.com> 2009-02-25 06:49:56 MST --- Michal, could you fix this, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=467866 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=467866#c4 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED URL| |https://issues.apache.org/b | |ugzilla/show_bug.cgi?id=467 | |71 Resolution| |FIXED AssignedTo|mvyskocil@novell.com |bnc-team-java@forge.provo.n | |ovell.com --- Comment #4 from Michal Vyskocil <mvyskocil@novell.com> 2009-02-26 05:51:25 MST --- Fixed in Factory. For 11.1 a fixed package will be available in Java:packages OBS project. Or alternatively a fop 0.94 is available in Java:addon OBS repository (see bug#478784). Issue was sent to upstream, see URL. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com