[packages/java-jna] Rel 2. Skip flaky JNALoadTest on x32.

arekm arekm at pld-linux.org
Sun Nov 29 18:01:17 CET 2026


commit 0481502cca51f4d5789bbd16c7fb3ce0aaa91e64
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 23:50:29 2026 +0100

    Rel 2. Skip flaky JNALoadTest on x32.

 java-jna.spec |  2 +-
 jna-x32.patch | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/java-jna.spec b/java-jna.spec
index 6485224..9843985 100644
--- a/java-jna.spec
+++ b/java-jna.spec
@@ -9,7 +9,7 @@ Summary:	Easy access to native shared libraries from Java
 Summary(pl.UTF-8):	Prosty dostęp do natywnych bibliotek współdzielonych z poziomu Javy
 Name:		java-jna
 Version:	5.19.1
-Release:	1
+Release:	2
 License:	LGPL v2.1 or Apache v2.0
 Group:		Libraries/Java
 #Source0Download: https://github.com/java-native-access/jna/tags
diff --git a/jna-x32.patch b/jna-x32.patch
index 35e2e52..922d605 100644
--- a/jna-x32.patch
+++ b/jna-x32.patch
@@ -45,3 +45,27 @@
                      // System V x86-64 ABI requires, that in a union aggregate,
                      // that contains Integer and Double members, the parameters
                      // must be passed in the integer registers. I.e. in the case
+--- jna-5.19.1/test/com/sun/jna/JNALoadTest.java.orig
++++ jna-5.19.1/test/com/sun/jna/JNALoadTest.java
+@@ -119,8 +119,8 @@
+     }
+ 
+     public void testLoadAndUnloadFromJar() throws Exception {
+-        if (Platform.isIntel() && (! Platform.is64Bit())) {
+-            System.out.println("Skip " + getName() + " - it is known to be flaky and produces false positives on x86-32bit");
++        if ((Platform.isIntel() && (! Platform.is64Bit())) || Platform.isX32()) {
++            System.out.println("Skip " + getName() + " - it is known to be flaky and produces false positives on x86-32bit and x32");
+             return;
+         }
+ 
+@@ -176,8 +176,8 @@
+ 
+     // GC Fails under OpenJDK(linux/ppc)
+     public void testLoadAndUnloadFromResourcePath() throws Exception {
+-        if (Platform.isIntel() && (! Platform.is64Bit())) {
+-            System.out.println("Skip " + getName() + " - it is known to be flaky and produces false positives on x86-32bit");
++        if ((Platform.isIntel() && (! Platform.is64Bit())) || Platform.isX32()) {
++            System.out.println("Skip " + getName() + " - it is known to be flaky and produces false positives on x86-32bit and x32");
+             return;
+         }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/java-jna.git/commitdiff/0481502cca51f4d5789bbd16c7fb3ce0aaa91e64



More information about the pld-cvs-commit mailing list