[packages/openjdk10] add type fixes
atler
atler at pld-linux.org
Fri May 1 02:05:49 CEST 2026
commit ec635021b2c9929b34557d7258f45e3f5d2f84b0
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Apr 29 17:52:08 2026 +0200
add type fixes
openjdk10.spec | 2 ++
types.patch | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
---
diff --git a/openjdk10.spec b/openjdk10.spec
index f7eba76..36e2c6e 100644
--- a/openjdk10.spec
+++ b/openjdk10.spec
@@ -42,6 +42,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
@@ -380,6 +381,7 @@ Przykłady dla OpenJDK.
%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/openjdk10.git/commitdiff/ec635021b2c9929b34557d7258f45e3f5d2f84b0
More information about the pld-cvs-commit
mailing list