RFC: Support for libjpeg7

jon.vanalten at redhat.com jon.vanalten at redhat.com
Mon Oct 26 14:32:01 PDT 2009


Hi all,

After chasing red herrings (my own fault, as apparently using the more generic libjpeg.so symlink, which according to http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=98 shouldn't be done anyways, caused dlopen to look in a jdk-internal .so file for symbols that weren't there), I've found that simply explicitly dlopen-ing libjpeg.so.7 seems to work just fine.  This addresses  http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=367.  I've tried opening and displaying .jpeg images, changing ColorSpace via ColorConvertOp and writing out the result, rescaling via RescaleOp and writing out the result, seems okay.  The application noted in the bug report launches.

Attached is patch which adds this support.  If this looks good I'll also edit the INSTALL file to indicate the supported library.  The version 7 .so is checked first, as it is newer; if it is not present, it falls back to 6b.  Is this the best strategy?  Any other comments, or suggestions for Java programs that might give good coverage of the use of libjpeg.so in openjdk would be appreciated.

Thx,

jon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-jpeg7.patch
Type: text/x-patch
Size: 7028 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20091026/e800236a/icedtea-jpeg7.patch 


More information about the distro-pkg-dev mailing list