java.awt.headless=true ignored by GIJ, required by xorg-x11-server build, opensuse 11.4

Hi,

It appears that there is a serious incompatibility with the GIJ java interpreter (gcc-gij-4.5-19.1.i586 ) . This is called by fop/xmlgraphics-fop , but it cannot be built under a headless environment. Even prepending “-Djava.awt.headless=true” to interpreter does not work.

e.g.

/usr/lib/jvm/java/bin/java -Djava.awt.headless=true -cp /usr/share/java/xmlgraphics-fop.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/xmlgraphics-batik/util.jar:/usr/share/java/xml-commons-jaxp-1.3-apis.jar:/usr/share/java/excalibur/avalon-framework-api.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/xalan-j2.jar:/usr/share/java/xalan-j2-serializer.jar: -pdf /usr/src/packages/BUILD/xorg-server-1.9.3/doc/xml/dtrace/Xserver-DTrace.pdf

will fail from within make, and without a DISPLAY.

The only solution I found was to hard wire the sun java in /etc/fop.conf (setting JAVA_HOME). This requires installing sun-java which is not a default.

This is a problem, as the default opensuse install , cannot compile opensuse packages requiring this tool, without an X display. That includes remote compilations vi ssh -X.

Anyone out there know where this bug belongs? Debian seems to have headless-compat packages…?

Cheers

PHiL

On 03/20/2011 03:06 PM, phildude wrote:
>
> This requires installing sun-java
> which is not a default.

thank you for caring enough to want to log a bug!! that is the only
way FOSS will get stronger…

most openSUSE java problems are solved by replacing OpenJDK (the
open source java included with the default install) with SUN java…

>
> This is a problem, as the default opensuse install

the reason the default openSUSE install includes one and not the other
is the same reason that the default doesn’t include Flash, nVidia
drivers or any other non-open source software–and that reason is
right in the name _open_SUSE…

since its inception, openSUSE has included only open software… and
strives to make installing free or purchased, but non-open source easy…

>
> Anyone out there know where this bug belongs? Debian seems to have
> headless-compat packages…?

if there were such a distro, and one installed openDebian with openJDK
java, i guess (but maybe wrongly) they would find the same
problem…so, the only bug to report should probably be sent to the
folks writing OpenJDK and IcedTea…as, maybe they need to either
include or repair the headless packages…sorry, i don’t have that URL
handy…

on the other hand, if openSUSE is not offering in YaST repos the
ability to install an open source headless package which exists, then
a bug to the openSUSE devs/packagers would certainly be appropriate
and well appreciated, here:

http://en.opensuse.org/Submitting_Bug_Reports

thanks,


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11