CVSROOT: /cvs
Module name: ports
Changes by: [email protected] 2026/05/20 05:18:07
Modified files:
devel/jdk/11 : Makefile
devel/jdk/17 : Makefile
devel/jdk/21 : Makefile
devel/jdk/25 : Makefile
Added files:
devel/jdk/11/patches:
patch-src_java_desktop_unix_native_libawt_xawt_java2d_x11_XRBackendNative_c
devel/jdk/17/patches:
patch-src_java_desktop_unix_native_libawt_xawt_java2d_x11_XRBackendNative_c
devel/jdk/21/patches:
patch-src_java_desktop_unix_native_libawt_xawt_java2d_x11_XRBackendNative_c
devel/jdk/25/patches:
patch-src_hotspot_share_oops_resolvedFieldEntry_cpp
patch-src_hotspot_share_oops_resolvedMethodEntry_cpp
patch-src_java_desktop_unix_native_libawt_xawt_java2d_x11_XRBackendNative_c
Log message:
devel/jdk/{11,17,21,25}: fix build with llvm22, ok kurt (maintainer)
All the jdks have a -Wuninitialized-const-pointer error due to passing
the uninitialized pict_attr to XRenderCreatePicture() for which this is
a const argument. This should be harmless because the valuemask is 0, so
none of the attributes are read in _XRenderProcessPictureAttributes().
Initializing the attributes to 0 doesn't change that but makes the
compiler happy.
Same fix is already upstream:
https://github.com/bsdkurt/jdk/commit/0dd5b59194f32f54c2ec6572833f45e1402515ba
On top of that jdk/25 has -Wnontrivial-memcall errors, with an annotation
that suggests an explicit cast to void *, which probably just papers over
the actual problem...
https://github.com/llvm/llvm-project/pull/111434
https://gcc.gnu.org/legacy-ml/gcc-patches/2017-04/msg01571.html
Better fix here, but kurt thinks it's not worth backporting:
https://github.com/bsdkurt/jdk/commit/66fb015267058f9b5e6788eaeaa758be56ba553e