Opened 20 months ago
Last modified 6 months ago
#67123 new defect
openjdk8 @8u362 fails to build when libjpeg-turbo is active
Reported by: | fhgwright (Fred Wright) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | usersxx, cooljeanius (Eric Gallager), Dave-Allured (Dave Allured), mascguy (Christopher Nielsen) | |
Port: | openjdk8 |
Description
The openjdk8 build procedure looks for libjpeg, and if it's found, it opportunistically attempts to include JPEG support. But the build doesn't actually work in this case, failing with many link-time undefineds. The workaround is to temporarily deactivate libjpeg-turbo while building openjdk8.
A minimal fix would be to declare a conflicts_build against libjpeg-turbo, essentially documenting the above annoyance to the user.
A better fix would be to disable the opportunistic JPEG support, though it doesn't seem to have a configure option to do so.
An even better fix would be to make JPEG support actually work, possibly as a variant (which would mean also making the no-JPEG case work). This would require determining where the missing functions are supposed to come from.
Change History (4)
comment:1 Changed 10 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:2 Changed 7 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
comment:3 Changed 7 months ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
Possibly, these patches will help: https://github.com/NetBSD/pkgsrc/blob/trunk/lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_imageioJPEG.c https://github.com/NetBSD/pkgsrc/blob/trunk/lang/openjdk8/patches/patch-jdk_src_share_native_sun_awt_image_jpeg_jpegdecoder.c