[packages/openjdk12] add type fixes
atler
atler at pld-linux.org
Fri May 1 02:08:25 CEST 2026
commit bee864ac914c0e383dfe281d229ac707d7b03f43
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Apr 29 17:52:08 2026 +0200
add type fixes
openjdk12.spec | 2 ++
types.patch | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
---
diff --git a/openjdk12.spec b/openjdk12.spec
index 31a9692..2547a0f 100644
--- a/openjdk12.spec
+++ b/openjdk12.spec
@@ -37,6 +37,7 @@ Patch1: make-4.3.patch
Patch2: x32.patch
Patch3: aarch64.patch
Patch4: glibc-2.42.patch
+Patch5: types.patch
URL: http://openjdk.java.net/
BuildRequires: alsa-lib-devel
BuildRequires: ant
@@ -350,6 +351,7 @@ Przykłady dla OpenJDK.
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -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..b31e82f
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,19 @@
+--- jdk9u-jdk-9.0.4+12/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/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/openjdk12.git/commitdiff/bee864ac914c0e383dfe281d229ac707d7b03f43
More information about the pld-cvs-commit
mailing list