[packages/java-jna] - one more x32 fix, now all tests are passed

qboosh qboosh at pld-linux.org
Fri Feb 17 17:36:13 CET 2023


commit cf23b59535db9c9e7fb9b991d4c299f2def70605
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 17 17:37:45 2023 +0100

    - one more x32 fix, now all tests are passed

 jna-x32.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/jna-x32.patch b/jna-x32.patch
index 0382b5f..80e1c99 100644
--- a/jna-x32.patch
+++ b/jna-x32.patch
@@ -34,3 +34,14 @@
              || Platform.isAIX()
              || (Platform.isAndroid() && !Platform.isIntel())
              ? 8 : LONG_SIZE;
+--- jna-5.13.0/src/com/sun/jna/Structure.java.orig	2023-01-14 13:33:30.000000000 +0100
++++ jna-5.13.0/src/com/sun/jna/Structure.java	2023-02-17 17:31:58.802654950 +0100
+@@ -2081,7 +2081,7 @@ public abstract class Structure {
+                     }
+                 }
+                 if ((Platform.isIntel() && Platform.is64Bit() && !Platform.isWindows())
+-                    || Platform.isARM() || Platform.isLoongArch()) {
++                    || Platform.isX32() || Platform.isARM() || Platform.isLoongArch()) {
+                     // 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
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list