[packages/openjdk9] add type fixes

atler atler at pld-linux.org
Fri May 1 02:04:35 CEST 2026


commit a0d49465f2ea61d7046dfc72bdb69d7ff3eb0351
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Apr 29 17:52:08 2026 +0200

    add type fixes

 openjdk9.spec |  2 ++
 types.patch   | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+)
---
diff --git a/openjdk9.spec b/openjdk9.spec
index 89bc69a..05cc76e 100644
--- a/openjdk9.spec
+++ b/openjdk9.spec
@@ -59,6 +59,7 @@ Patch5:		glibc-2.34.patch
 Patch6:		gcc11.patch
 Patch7:		glibc-2.42.patch
 Patch8:		currency-data.patch
+Patch9:		types.patch
 URL:		http://openjdk.java.net/
 BuildRequires:	alsa-lib-devel
 BuildRequires:	ant
@@ -423,6 +424,7 @@ done
 %patch -P6 -p1
 %patch -P7 -p1
 %patch -P8 -p1
+%patch -P9 -p1
 
 %build
 # Make sure we have /proc mounted - otherwise idlc will fail later.
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..f101e50
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,19 @@
+--- jdk9u-jdk-9.0.4+12/jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c.orig	2018-01-13 03:07:38.000000000 +0100
++++ jdk9u-jdk-9.0.4+12/jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c	2026-04-29 17:40:38.492291244 +0200
+@@ -2451,14 +2451,14 @@
+ 
+ static jobject get_integer_property(JNIEnv *env, GtkSettings* settings, const gchar* key)
+ {
+-    gint intval = NULL;
++    gint intval = 0;
+     (*fp_g_object_get)(settings, key, &intval, NULL);
+     return create_Integer(env, intval);
+ }
+ 
+ static jobject get_boolean_property(JNIEnv *env, GtkSettings* settings, const gchar* key)
+ {
+-    gint intval = NULL;
++    gint intval = 0;
+     (*fp_g_object_get)(settings, key, &intval, NULL);
+     return create_Boolean(env, intval);
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjdk9.git/commitdiff/a0d49465f2ea61d7046dfc72bdb69d7ff3eb0351



More information about the pld-cvs-commit mailing list