[OpenJDK 2D-Dev] Defect 7032904(XRender: Java2Demo) remains

Clemens Eisserer linuxhippy at gmail.com
Tue May 21 19:46:44 UTC 2013


Hi Andrew,

Thanks for your feedback.

> Do you know which versions of libXrender are supported?  We can check the version
> at configure time:
>
> $ pkg-config --modversion renderproto
> 0.11.1
>
> and disable the extension at compile-time.  This is especially true with 6 where,
> IIRC, it's a patched-in option which is enabled by default, not part of upstream
> OpenJDK.

Version 0.9.3, which was released in early 2007 contains the fix (it's
"xrender" not renderproto).
Disabling it at configure time would be great for distribution builds,
unfortunately it does not solve the situation for the oracle binaries.


> Basing it on kernel version seems very dodgy to me.  I change my kernel version all
> the time and it's completely unrelated to the version of Xrender I'm running.

I am not 100% satisfied with the proposal either, however the
arguments which made me think this isn't such a bad idea are:

1. The main problem are old, supported LTS releases (like RHEL 5 or SLES 10).
The chance of someone running a kernel newer than 2.6.32 with
libXrender<0.9.3 (false negative) are almost zero, while false
positives (older kernel, newer libXrender) are handled by the old X11
pipeline without any serious drawbacks.
Personally, I don't expect many users running one of those really old
distributions updating to a kernel version which is almost 3 years
newer than their libXrender.

2. The current code already inspects pkg-config files at run-time
(works on RHEL 5), the kernel-version check would only take place when
this check fails.

Do you still think its a bad idea?

Regards, Clemens



More information about the 2d-dev mailing list