Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package jna for openSUSE:Factory checked in 
at 2023-08-31 13:42:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/jna (Old)
 and      /work/SRC/openSUSE:Factory/.jna.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "jna"

Thu Aug 31 13:42:31 2023 rev:5 rq:1108089 version:5.13.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/jna/jna.changes  2022-03-28 16:59:56.996919553 
+0200
+++ /work/SRC/openSUSE:Factory/.jna.new.1766/jna.changes        2023-08-31 
13:43:08.970715071 +0200
@@ -1,0 +2,262 @@
+Wed Aug 30 10:34:18 UTC 2023 - Fridrich Strba <fst...@suse.com>
+
+- Upgrade to upstream version 5.13.0
+- Changes in version 5.13.0:
+  * Features:
+    + #1454: Add 'c.s.j.p.win32.Psapi.QueryWorkingSetEx' and
+      associated Types
+    + #1459: Add 'VirtualLock' and 'VirtualUnlock' in
+      'c.s.j.p.win32.Kernel32'
+    + #1471: Add
+      'c.s.j.p.win32.Advapi32Util#isCurrentProcessElevated' and
+       associated Types
+    + #1474: Add
+      'c.s.j.p.win32.WbemCli#IWbemClassObject.IWbemQualifierSet',
+      'IWbemServices.GetObject', 'IWbemContext.SetValue' and
+      associated methods
+    + #1482: Add multilingual support of
+      'Kernel32Util.formatMessage'
+    + #1490: Adds support for a custom 'SymbolProvider' in
+      'NativeLibrary' & 'Library'
+    + #1491: Update libffi to v3.4.4
+    + #1487: Add 'uses' information to OSGI metadata in MANIFEST.MF
+      to improve stability of package resolution
+  * Bug Fixes:
+    + #1452: Fix memory allocation/handling for error message
+      generation in native library code ('dispatch.c')
+    + #1460: Fix win32 variant date conversion in DST offest window
+      and with millisecond values
+    + #1472: Fix incorrect bitmask in
+      'c.s.j.Pointer#createConstant(int)'
+    + #1481: Fix NPE in NativeLibrary when unpacking from classpath
+      is disabled
+    + #1489: Fixes typo in 'OpenGL32Util#wglGetProcAddress', instead
+      of parameter 'procName' the hardcoded value 'wglEnumGpusNV'
+      was used
+- Changes in version 5.12.1:
+  * Bug Fixes:
+    + #1447: Null-check cleanable in 'c.s.j.Memory#close'
+- Changes in version 5.12.0:
+  * Features:
+    + #1433: Add 'CFEqual', 'CFDictionaryRef.ByReference',
+      'CFStringRef.ByReference' to 'c.s.j.p.mac.CoreFoundation'
+    + #978: Remove use of finalizers in JNA and improve concurrency
+      for 'Memory', 'CallbackReference' and 'NativeLibrary'
+    + #1440: Support for LoongArch64
+    + #1444: Update embedded libffi to
+      1f14b3fa92d4442a60233e9596ddec428a985e3c and rebuild native
+      libraries
+  * Bug Fixes:
+    + #1438: Handle arrays in structures with differing size
+    + #1442: Handle race condition in
+      'c.s.j.p.win32.PdhUtil#PdhEnumObjectItems'
+  * Important Changes:
+    + 'Memory#dispose', 'CallbackReference#dispose' and
+      'NativeLibrary#dispose' were called by the 'Object#finalize'
+      override. These calls were replaced by the use of a cleaner.
+      It is not guaranteed anymore, that 'dispose' is called on
+      subclasses on finalization.
+- Changes in version 5.11.0:
+  * Features:
+    + #1398: Increase 'c.s.j.p.win32.Sspi#MAX_TOKEN_SIZE' on
+      Windows 8/Server 2012 and later
+    + #1403: Rebuild AIX binaries with libffi 3.4.2 (other
+      architectures were part of 5.10)
+    + #1404: Added Solaris Kstat2 library
+    + #1416: Add 'CFDictionaryGetCount' to
+      'c.s.j.p.mac.CoreFoundation'
+    + #1418: Add 'CertOpenStore' to 'c.s.j.p.win32.Crypt32'
+  * Bug Fixes:
+    + #1411: Do not throw 'Win32Exception' on success for empty
+      section in 'Kernel32Util#getPrivateProfileSection'
+    + #1414: Fix definition of 'c.s.j.p.unix.X11.XK_Shift_R'
+    + #1323. Fix crashes in direct callbacks on mac OS aarch64
+    + #1422: Load jawt library relative to 'sun.boot.library.path'
+      system on unix OSes
+    + #1427: Rebuild all binaries with fix from #1422 and #1323
+- Changes in version 5.10.0:
+  * Features:
+    + #1377: Add 'RegLoadAppKey' to 'c.s.j.p.win32.Advapi32' and
+      'registryLoadAppKey' to 'c.s.j.p.win32.Advapi32Util'
+    + #1093: Add 'OpenFileMapping' to 'c.s.j.p.win32.Kernel32'
+    + #1388: Map the arch 'zarch_64' as reported by SAPJVM8 to
+      's390x'
+    + #1381: Update embedded libffi to 3.4.2
+    + #1393: Update native encoding detection for JEP400 / JDK 18
+      ('file.encoding' now defaults to 'UTF-8')
+  * Bug Fixes:
+    + #1378: Handle failure in 'ffi_closure_alloc'
+- Changes in version 5.9.0:
+  * Features:
+    + #1336: Add 'HKEY_CURRENT_USER_LOCAL_SETTINGS' to
+      'c.s.j.p.win32.WinReg'
+    + #1337: Add 'REG_NOTIFY_THREAD_AGNOSTIC' to
+      'c.s.j.p.win32.WinNet' and update 'REG_LEGAL_CHANGE_FILTER'
+    + #1338: Add 'RegNotifyChangeKeyValue' to
+      'c.s.j.p.win32.Advapi32'
+    + #1340: Add 'CM_Get_DevNode_Registry_Property' to
+      'c.s.j.p.win32.Cfgmgr32' and corresponding util in
+      'c.s.j.p.win32.Cfgmgr32Util'
+    + #1352: Add 'BringWindowToTop' to 'c.s.j.p.win32.User32'
+    + #1354: Add 'GetParent' to 'c.s.j.p.win32.User32'
+    + #1360: Add 'CommandLineToArgvW' to 'c.s.j.p.win32.Shell32'
+      and corresponding util in 'c.s.j.p.win32.Shell32Util'
+    + #1363: Update 'NUMA_NODE_RELATIONSHIP' in
+      'c.s.j.p.win32.WinNT' to new version of the structure and
+      improve support for future values of
+      'c.s.j.p.win32.WinNT.LOGICAL_PROCESSOR_RELATIONSHIP'
+  * Bug Fixes:
+    + #1343: 'c.s.j.p.mac.CoreFoundation.CFStringRef#stringValue'
+      buffer needs space for a null byte
+    + #1351: Define 'c.s.j.p.unix.size_t.ByReference' and fix macOS
+      sysctl 'size_t *' parameters
+    + #1362: Clear security sensitive data after usage in
+      'c.s.j.p.win32.Crypt32Util#cryptProtectData' and
+      '#cryptUnprotectData'
+    + #1361: Make 'c.s.j.p.win32.Crypt32Util#cryptProtectData' and
+      '#cryptUnprotectData' properly handle 0-length array as input
+- Changes in version 5.8.0:
+  * Features:
+    + #1313: Normalize 'RESOURCE_PREFIX' for darwin to
+      'darwin-$arch' and split jnidispatch library per architecture
+    + #1318: Add support for linux-riscv64
+    + #1327: Add partial support for future values of
+      'c.s.j.p.win32.WinNT.LOGICAL_PROCESSOR_RELATIONSHIP' enum
+      present in Windows Insider builds
+  * Bug Fixes:
+    + #1317: Change the maven coordinates of the JPMS artifacts from
+      classifier 'jpms' to custom artifact ids 'jna-jpms' and
+      'jna-platform-jpms'
+    + #1322: Handle 0-length domain names in
+      'c.s.j.p.win32.Advapi32Util#getAccountBySid'
+    + #1326: Ensure pointers indirected from Memory and pointing
+      into Memory retain originating object
+  * Important Changes:
+    + The maven coordinates of the experimental JPMS (java module
+      system) artifacts were moved from using the classifier 'jpms'
+      to custom artifact ids 'jna-jpms' and 'jna-platform-jpms',
+      without an classifier. The reason for this is, that the
+      platform artifacts depend on the jna artifacts and need to
+      pull in the right variant. This is not possible if the
+      classifier is used.
+    + 'RESOURCE_PREFIX' for darwin (mac OS) was changed from
+      'darwin' to 'darwin-$arch' as the fat binaries on mac OS
+      causes various problems: It was reported, that binaries were
+      rejected from the appstore because x86 binaries were found in
+      the application (jnidispatch for mac OS x86) and that builds
+      needed to be special cased so that the native library can be
+      assembled. The latter is also true for JNA.
+      While the prefix is changed, the old prefix is still searched
+      as a fallback location, so if only a fat binary is present, it
+      can still be loaded.
+- Changes in version 5.7.0:
+  * Features:
+    + #1301: Improve bindings of the printer notification functions
+      ('FindFirstPrinterChangeNotification',
+      'FindNextPrinterChangeNotification') in 'c.s.j.p.w.Winspool'
+    + #1238: Add macOS 'aarch64' architecture to universal 'darwin'
+      target
+    + #1264: Update libffi to v3.3; Add Windows 'aarch64' target.
+    + #1293: Bind part of Windows Application Recovery and Restart
+      API: 'RegisterApplicationRestart',
+      'UnregisterApplicationRestart' and
+      'GetApplicationRestartSettings' in 'c.s.j.p.w.Kernel32'
+    + #1217: Add mappings for AIX 'Perfstat' library to
+      'c.s.j.p.unix.aix'
+    + #1231: The test suite can now be executed on Windows using
+      either ANSI or UNICODE win32 API by passing
+      '-Dw32.ascii=true/false' to ant. Previously, UNICODE was
+      always used.
+    + #1237: *Experimental:* Add artifacts that make jna and
+      jna-platform named modules (provide 'module-info.class').
+      The new artifacts are named 'jna-jpms.jar' and
+      'jna-platform-jpms.jar'
+    + #1242: Add CallWindowProc to User32
+    + #1239: Improve performance of allocation of 'c.s.j.Memory'
+      objects
+    + #1246: Improve performance of 'c.s.j.Structure#read' and
+      'c.s.j.Structure#write'
+    + #1260: Add mapping for X11 generic events
+    + #1263: Add LowLevelMouseProc
+    + #1265: Add mapping for XQueryExtension
+    + #1299: Add 'c.s.j.p.win32.IPHlpApi#GetExtendedTcpTable',
+      'c.s.j.p.win32.IPHlpApi#GetExtendedUdpTable', and supporting
+      structures.
+  * Bug Fixes:
+    + #1286: Fix bindings of 'c.s.j.p.win32.DBT'
+    + #326: Fix loading library that re-uses pointers for different
+      callbacks
+    + #1244: Fix building on GCC 10
+    + #1252: Fix bindings of 'CTL_ENTRY#getRgAttribute',
+      'CTL_INFO#getRgCTLEntry', 'CTL_INFO#getRgExtension',
+      'CERT_EXTENSIONS#getRgExtension', 'CERT_INFO#getRgExtension',
+      'CRL_INFO#getRgCRLEntry', 'CRL_INFO#getRgExtension',
+      'CRL_ENTRY#getRgExtension'.
+      Add bindings for 'CertEnumCertificatesInStore',
+      'CertEnumCTLsInStore', 'CertEnumCRLsInStore' and
+      'CryptQueryObject' in 'c.s.j.p.win32.Crypt32'.
++++ 65 more lines (skipped)
++++ between /work/SRC/openSUSE:Factory/jna/jna.changes
++++ and /work/SRC/openSUSE:Factory/.jna.new.1766/jna.changes

Old:
----
  5.5.0.tar.gz

New:
----
  5.13.0.tar.gz
  jna-old-libffi.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ jna.spec ++++++
--- /var/tmp/diff_new_pack.VKEsNg/_old  2023-08-31 13:43:11.430803000 +0200
+++ /var/tmp/diff_new_pack.VKEsNg/_new  2023-08-31 13:43:11.438803286 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package jna
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 # Copyright (c) 2000-2009, JPackage Project
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,10 +18,11 @@
 
 
 Name:           jna
-Version:        5.5.0
+Version:        5.13.0
 Release:        0
 Summary:        Pure Java access to native libraries
 License:        Apache-2.0 OR LGPL-2.1-or-later
+Group:          Development/Libraries/Java
 URL:            https://github.com/twall/jna
 Source0:        https://github.com/twall/%{name}/archive/%{version}.tar.gz
 Source1000:     %{name}-rpmlintrc
@@ -29,16 +30,17 @@
 Patch1:         jna-callback.patch
 Patch2:         jna-system-libjnidispatch.patch
 Patch3:         jna-java8compat.patch
+Patch4:         jna-old-libffi.patch
 BuildRequires:  ant
-BuildRequires:  ant-junit
 BuildRequires:  dos2unix
 BuildRequires:  fdupes
-BuildRequires:  java-devel >= 1.8
+BuildRequires:  java-devel >= 9
 BuildRequires:  javapackages-local
-BuildRequires:  junit
+BuildRequires:  libX11-devel
+BuildRequires:  libXt-devel
 BuildRequires:  libffi-devel
-BuildRequires:  xorg-x11-libX11-devel
-BuildRequires:  xorg-x11-libXt-devel
+BuildRequires:  objectweb-asm
+BuildRequires:  pkg-config
 Requires:       java >= 1.8
 Provides:       jna-native = %{version}-%{release}
 Obsoletes:      jna-native < %{version}-%{release}
@@ -55,7 +57,10 @@
 
 %package        contrib
 Summary:        Contrib for %{name}
+Group:          Development/Libraries/Java
 Requires:       %{name} = %{version}-%{release}
+Provides:       jna-platform = %{version}-%{release}
+Obsoletes:      jna-platform < %{version}-%{release}
 BuildArch:      noarch
 
 %description    contrib
@@ -63,6 +68,7 @@
 
 %package        javadoc
 Summary:        Javadocs for %{name}
+Group:          Documentation/HTML
 BuildArch:      noarch
 
 %description    javadoc
@@ -80,11 +86,16 @@
 %patch2 -p1
 %patch3 -p1
 
+%if 0%{?suse_version} < 1550
+%patch4 -p1
+%endif
+
 sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java
 
 %build
 build-jar-repository -s -p lib ant
-%ant \
+ln -s $(find-jar objectweb-asm/asm) lib/asm-8.0.1.jar
+%{ant} \
     jar \
     native \
     platform-jar \
@@ -106,17 +117,17 @@
 
 install -d -m 755 %{buildroot}%{_jnidir}/%{name}
 install -d -m 755 %{buildroot}%{_javadir}/%{name}
-install -p -m 644 build/jna-min.jar %{buildroot}%{_jnidir}/%{name}.jar
+install -p -m 644 build/jna-jpms.jar %{buildroot}%{_jnidir}/%{name}.jar
 ln -sf ../%{name}.jar %{buildroot}%{_jnidir}/%{name}/%{name}.jar
 ln -sf %{_jnidir}/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
-install -p -m 644 ./contrib/platform/dist/jna-platform.jar 
%{buildroot}%{_javadir}/%{name}-platform.jar
+install -p -m 644 ./contrib/platform/dist/jna-platform-jpms.jar 
%{buildroot}%{_javadir}/%{name}-platform.jar
 ln -sf ../%{name}-platform.jar 
%{buildroot}%{_javadir}/%{name}/%{name}-platform.jar
 
 install -d -m 755 %{buildroot}%{_mavenpomdir}
-install -p -m 644 pom-jna.xml %{buildroot}/%{_mavenpomdir}/%{name}.pom
-install -p -m 644 pom-jna-platform.xml 
%{buildroot}/%{_mavenpomdir}/%{name}-platform.pom
-%add_maven_depmap %{name}.pom %{name}.jar
-%add_maven_depmap %{name}-platform.pom %{name}-platform.jar -a 
net.java.dev.jna:platform -f contrib
+install -p -m 644 build/pom-jna.xml %{buildroot}/%{_mavenpomdir}/%{name}.pom
+install -p -m 644 build/pom-jna-platform.xml 
%{buildroot}/%{_mavenpomdir}/%{name}-platform.pom
+%add_maven_depmap %{name}.pom %{name}.jar -a net.java.dev.jna:jna-jpms
+%add_maven_depmap %{name}-platform.pom %{name}-platform.jar -a 
net.java.dev.jna:platform,net.java.dev.jna:jna-platform-jpms -f contrib
 
 install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
 cp -pr doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}

++++++ 5.5.0.tar.gz -> 5.13.0.tar.gz ++++++
/work/SRC/openSUSE:Factory/jna/5.5.0.tar.gz 
/work/SRC/openSUSE:Factory/.jna.new.1766/5.13.0.tar.gz differ: char 14, line 1

++++++ jna-build.patch ++++++
--- /var/tmp/diff_new_pack.VKEsNg/_old  2023-08-31 13:43:11.486805002 +0200
+++ /var/tmp/diff_new_pack.VKEsNg/_new  2023-08-31 13:43:11.486805002 +0200
@@ -1,6 +1,6 @@
---- jna-5.5.0/build.xml        2019-10-30 17:41:18.000000000 +0100
-+++ jna-5.5.0/build.xml        2020-06-04 08:56:23.649941131 +0200
-@@ -357,7 +357,7 @@
+--- jna-5.13.0/build.xml       2023-05-30 11:38:06.363232087 +0200
++++ jna-5.13.0/build.xml       2023-05-30 15:27:50.875085921 +0200
+@@ -370,7 +370,7 @@
    <target name="-setup" depends="-dynamic-properties">
      <path id="compile-test.path">
        <path id="test.libs">
@@ -9,7 +9,7 @@
            <include name="junit.jar"/>
            <include name="hamcrest-core-1.3.jar"/>
          </fileset>
-@@ -403,7 +403,7 @@
+@@ -440,7 +440,7 @@
        </srcfiles>
      </uptodate>
    </target>
@@ -18,20 +18,24 @@
            description="Build primary jar">
      <!-- Bundle native components with primary jar to facilitate
           easy distribution to common platforms.
-@@ -436,157 +436,10 @@
-         <!-- Note that no terminal "*" is included in this list,
-              which will force failure on unsupported platforms.
-           -->
--        <attribute name="Bundle-NativeCode"
--                   value="
+@@ -485,87 +485,6 @@
+               <!-- Note that no terminal "*" is included in this list,
+                  which will force failure on unsupported platforms.
+               -->
+-              <attribute name="Bundle-NativeCode"
+-                         value="
 -com/sun/jna/win32-x86/jnidispatch.dll;
 -processor=x86;osname=win32,
 -com/sun/jna/win32-x86-64/jnidispatch.dll;
 -processor=x86-64;osname=win32,
+-com/sun/jna/win32-aarch64/jnidispatch.dll;
+-processor=aarch64;osname=win32,
 -com/sun/jna/win32-x86/jnidispatch.dll;
 -processor=x86;osname=win,
 -com/sun/jna/win32-x86-64/jnidispatch.dll;
 -processor=x86-64;osname=win,
+-com/sun/jna/win32-aarch64/jnidispatch.dll;
+-processor=aarch64;osname=win,
 -com/sun/jna/w32ce-arm/jnidispatch.dll;
 -processor=arm;osname=wince,
 -
@@ -75,20 +79,34 @@
 -processor=mips64el;osname=linux,
 -com/sun/jna/linux-s390x/libjnidispatch.so;
 -processor=S390x;osname=linux,
+-com/sun/jna/linux-loongarch64/libjnidispatch.so;
+-processor=loongarch64;osname=linux,
 -
 -com/sun/jna/freebsd-x86/libjnidispatch.so;
 -processor=x86;osname=freebsd,
 -com/sun/jna/freebsd-x86-64/libjnidispatch.so;
 -processor=x86-64;osname=freebsd,
+-
 -com/sun/jna/openbsd-x86/libjnidispatch.so;
 -processor=x86;osname=openbsd,
 -com/sun/jna/openbsd-x86-64/libjnidispatch.so;
 -processor=x86-64;osname=openbsd,
 -
--com/sun/jna/darwin/libjnidispatch.jnilib;
--osname=macosx;processor=x86;processor=x86-64;processor=ppc
+-com/sun/jna/darwin-ppc/libjnidispatch.jnilib;
+-osname=macosx;processor=ppc,
+-com/sun/jna/darwin-ppc64/libjnidispatch.jnilib;
+-osname=macosx;processor=ppc64,
+-com/sun/jna/darwin-x86/libjnidispatch.jnilib;
+-osname=macosx;processor=x86,
+-com/sun/jna/darwin-x86-64/libjnidispatch.jnilib;
+-osname=macosx;processor=x86-64,
+-com/sun/jna/darwin-aarch64/libjnidispatch.jnilib;
+-osname=macosx;processor=aarch64
 -"/>
-       </manifest>
+           </manifest>
+           <manifest file="@{target}" mode="update" if:true="@{module-info}">
+               <attribute name="Multi-Release" value="true"/>
+@@ -596,108 +515,6 @@
        <fileset dir="${classes}" excludes="${jar.omitted}">
          <patternset refid="jar-compiled"/>
        </fileset>
@@ -101,9 +119,21 @@
 -      <zipfileset src="${lib.native}/aix-ppc64.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/aix-ppc64"/>
--      <zipfileset src="${lib.native}/darwin.jar"
+-      <zipfileset src="${lib.native}/darwin-ppc.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/darwin-ppc"/>
+-      <zipfileset src="${lib.native}/darwin-ppc64.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/darwin-ppc64"/>
+-      <zipfileset src="${lib.native}/darwin-x86.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/darwin-x86"/>
+-      <zipfileset src="${lib.native}/darwin-x86-64.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/darwin-x86-64"/>
+-      <zipfileset src="${lib.native}/darwin-aarch64.jar"
 -                  includes="*jnidispatch*"
--                  prefix="com/sun/jna/darwin"/>
+-                  prefix="com/sun/jna/darwin-aarch64"/>
 -      <zipfileset src="${lib.native}/linux-x86.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/linux-x86"/>
@@ -137,9 +167,15 @@
 -      <zipfileset src="${lib.native}/linux-mips64el.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/linux-mips64el"/>
+-      <zipfileset src="${lib.native}/linux-loongarch64.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/linux-loongarch64"/>
 -      <zipfileset src="${lib.native}/linux-s390x.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/linux-s390x"/>
+-      <zipfileset src="${lib.native}/linux-riscv64.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/linux-riscv64"/>
 -      <zipfileset src="${lib.native}/sunos-x86.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/sunos-x86"/>
@@ -167,6 +203,9 @@
 -      <zipfileset src="${lib.native}/win32-x86-64.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/win32-x86-64"/>
+-      <zipfileset src="${lib.native}/win32-aarch64.jar"
+-                  includes="*jnidispatch*"
+-                  prefix="com/sun/jna/win32-aarch64"/>
 -      <zipfileset src="${lib.native}/w32ce-arm.jar"
 -                  includes="*jnidispatch*"
 -                  prefix="com/sun/jna/w32ce-arm"/>
@@ -176,7 +215,16 @@
      </jar>
      <zip zipfile="${build}/${minjar}">
        <zipfileset src="${build}/${jar}" excludes="**/*jnidispatch*"/>
-@@ -1059,7 +912,7 @@
+@@ -781,7 +598,7 @@
+     </zip>
+   </target>
+ 
+-  <target name="contrib-jars" depends="platform-jar" description="Build 
contrib jars">
++  <target name="contrib-jars" description="Build contrib jars">
+     <subant target="jar" failonerror="true">
+       <property name="file.reference.jna.build" location="${build}"/>
+       <property name="file.reference.jna.jar" location="${build}/${jar}"/>
+@@ -1196,7 +1013,7 @@
      </javac>
    </target>
  
@@ -185,7 +233,7 @@
        description="Compile all test code">
      <javac classpathref="compile-test.path"
             source="${test.compatibility}"
-@@ -1111,8 +964,6 @@
+@@ -1284,8 +1101,6 @@
      <mkdir dir="${build}/jws"/>
      <copy todir="${build}/jws" file="${build}/${jar}"/>
      <copy todir="${build}/jws" file="${build}/${testjar}"/>
@@ -194,7 +242,7 @@
      <jar jarfile="${build}/jws/jnidispatch.jar" 
createUnicodeExtraFields="never" encoding="UTF-8">
        <fileset dir="${build.native}" includes="*jnidispatch.*"/>
      </jar>
-@@ -1313,7 +1164,6 @@
+@@ -1486,7 +1301,6 @@
        <doctitle>JNA API Documentation</doctitle>
        <header>${header}</header>
        <bottom>${footer}</bottom>
@@ -202,7 +250,7 @@
  
        <packageset dir="${src}" defaultexcludes="yes">
          <patternset>
-@@ -1331,13 +1181,14 @@
+@@ -1504,13 +1318,14 @@
        <group title="Platform Specific" packages="com.sun.jna.platform.*"/>
  
        <arg value="-notimestamp"/>
@@ -217,10 +265,9 @@
 +  <target name="dist" depends="jar,aar,javadoc,contrib-jars,compile-tests"
            description="Build distribution files">
      <copy todir="${dist}" force="true" overwrite="true">
-       <fileset dir="${build}" includes="${jar},${minjar},${aar}"/>
-Only in jna-5.5.0/native/libffi/src/powerpc: linux64_closure.S.orig
---- jna-5.5.0/native/Makefile  2019-10-30 17:41:18.000000000 +0100
-+++ jna-5.5.0/native/Makefile  2020-06-04 08:53:07.896789270 +0200
+       <fileset dir="${build}" includes="${jar},${minjar},${aar},${jar-jpms}"/>
+--- jna-5.13.0/native/Makefile 2023-05-30 11:38:06.515233135 +0200
++++ jna-5.13.0/native/Makefile 2023-05-30 12:04:00.394037184 +0200
 @@ -97,7 +97,7 @@
  PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
  CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
@@ -230,12 +277,12 @@
  ifeq ($(DYNAMIC_LIBFFI),true)
  CFLAGS += $(shell pkg-config --cflags libffi 2>/dev/null || echo)
  LIBS += $(shell pkg-config --libs libffi 2>/dev/null || echo -lffi)
-@@ -337,11 +337,11 @@
+@@ -356,11 +356,11 @@
      GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f 1 -d '.')
      ifneq ($(GCC_MAJOR_VERSION),4)
        ifneq ($(GCC_MAJOR_VERSION),3)
--          LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered 
-Wno-unused-variable
-+          LOC_CC_OPTS=-Wno-error -Wno-clobbered -Wno-unused-variable
+-          LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered 
-Wno-unused-variable -Wno-alloca-larger-than
++          LOC_CC_OPTS=-Wno-error -Wno-clobbered -Wno-unused-variable 
-Wno-alloca-larger-than
        endif
      endif
  else
@@ -244,7 +291,7 @@
  endif
  
  # Enable 64-bit builds if the arch demands it
-@@ -457,7 +457,6 @@
+@@ -486,7 +486,6 @@
  
  $(LIBRARY): $(JNIDISPATCH_OBJS) $(FFI_LIB)
        $(LD) $(LDFLAGS) $(JNIDISPATCH_OBJS) $(FFI_LIB) $(LIBS)

++++++ jna-java8compat.patch ++++++
--- /var/tmp/diff_new_pack.VKEsNg/_old  2023-08-31 13:43:11.502805574 +0200
+++ /var/tmp/diff_new_pack.VKEsNg/_new  2023-08-31 13:43:11.506805717 +0200
@@ -1,22 +1,21 @@
-diff -urEbwB jna-5.4.0/build.xml jna-5.4.0.new/build.xml
---- jna-5.4.0/build.xml        2019-07-19 21:22:03.000000000 +0200
-+++ jna-5.4.0.new/build.xml    2019-10-10 21:47:22.950356404 +0200
-@@ -102,7 +102,12 @@
+--- jna-5.13.0/build.xml       2023-05-30 15:30:31.116195853 +0200
++++ jna-5.13.0/build.xml       2023-05-30 15:31:56.400786710 +0200
+@@ -106,8 +106,12 @@
+     JDK 11 is the last JDK, that supports creation of Java 6 compatible class
      files.
    -->
-   <condition property="compatibility" value="1.6" else="9">
+-  <condition property="compatibility" value="1.6" else="9">
++  <condition property="compatibility" value="1.8" else="9">
 +    <or>
      <matches pattern="^1\.\d+$" string="${ant.java.version}"/>
 +        <matches pattern="^9.*$" string="${ant.java.version}"/>
-+        <matches pattern="^10.*$$" string="${ant.java.version}"/>
-+        <matches pattern="^11.*$$" string="${ant.java.version}"/>
++        <matches pattern="^1.*$$" string="${ant.java.version}"/>
 +    </or>
    </condition>
  
    <condition property="compatibility-check" value="true">
-diff -urEbwB 
jna-5.4.0/contrib/platform/src/com/sun/jna/platform/mac/XAttrUtil.java 
jna-5.4.0.new/contrib/platform/src/com/sun/jna/platform/mac/XAttrUtil.java
---- jna-5.4.0/contrib/platform/src/com/sun/jna/platform/mac/XAttrUtil.java     
2019-07-19 21:22:03.000000000 +0200
-+++ jna-5.4.0.new/contrib/platform/src/com/sun/jna/platform/mac/XAttrUtil.java 
2019-10-10 21:37:54.962613364 +0200
+--- jna-5.13.0/contrib/platform/src/com/sun/jna/platform/mac/XAttrUtil.java    
2023-05-30 15:30:31.140196020 +0200
++++ jna-5.13.0/contrib/platform/src/com/sun/jna/platform/mac/XAttrUtil.java    
2023-05-30 15:30:47.452309013 +0200
 @@ -23,6 +23,7 @@
   */
  package com.sun.jna.platform.mac;
@@ -39,9 +38,8 @@
              }
          }
  
-diff -urEbwB jna-5.4.0/test/com/sun/jna/BufferArgumentsMarshalTest.java 
jna-5.4.0.new/test/com/sun/jna/BufferArgumentsMarshalTest.java
---- jna-5.4.0/test/com/sun/jna/BufferArgumentsMarshalTest.java 2019-07-19 
21:22:03.000000000 +0200
-+++ jna-5.4.0.new/test/com/sun/jna/BufferArgumentsMarshalTest.java     
2019-10-10 21:28:39.574890668 +0200
+--- jna-5.13.0/test/com/sun/jna/BufferArgumentsMarshalTest.java        
2023-05-30 15:30:31.288197044 +0200
++++ jna-5.13.0/test/com/sun/jna/BufferArgumentsMarshalTest.java        
2023-05-30 15:30:47.452309013 +0200
 @@ -23,6 +23,7 @@
   */
  package com.sun.jna;
@@ -59,9 +57,8 @@
          lib.fillInt8Buffer(buf, 512, (byte)0);
          for (int i=0;i < buf.capacity();i++) {
              assertEquals("Bad value at index " + i,
-diff -urEbwB jna-5.4.0/test/com/sun/jna/PerformanceTest.java 
jna-5.4.0.new/test/com/sun/jna/PerformanceTest.java
---- jna-5.4.0/test/com/sun/jna/PerformanceTest.java    2019-07-19 
21:22:03.000000000 +0200
-+++ jna-5.4.0.new/test/com/sun/jna/PerformanceTest.java        2019-10-10 
21:26:21.041920761 +0200
+--- jna-5.13.0/test/com/sun/jna/PerformanceTest.java   2023-05-30 
15:30:31.288197044 +0200
++++ jna-5.13.0/test/com/sun/jna/PerformanceTest.java   2023-05-30 
15:30:47.452309013 +0200
 @@ -396,7 +396,7 @@
          start = System.currentTimeMillis();
          for (int i=0;i < COUNT;i++) {
@@ -89,9 +86,8 @@
              b.put(bulk);
          }
          delta = System.currentTimeMillis() - start;
-diff -urEbwB jna-5.4.0/test/com/sun/jna/PointerBufferTest.java 
jna-5.4.0.new/test/com/sun/jna/PointerBufferTest.java
---- jna-5.4.0/test/com/sun/jna/PointerBufferTest.java  2019-07-19 
21:22:03.000000000 +0200
-+++ jna-5.4.0.new/test/com/sun/jna/PointerBufferTest.java      2019-10-10 
21:21:33.152310989 +0200
+--- jna-5.13.0/test/com/sun/jna/PointerBufferTest.java 2023-05-30 
15:30:31.288197044 +0200
++++ jna-5.13.0/test/com/sun/jna/PointerBufferTest.java 2023-05-30 
15:30:47.452309013 +0200
 @@ -24,6 +24,7 @@
  
  package com.sun.jna;

++++++ jna-old-libffi.patch ++++++
--- jna-5.13.0/native/dispatch.c        2023-06-03 22:40:07.554822192 +0200
+++ jna-5.13.0/native/dispatch.c        2023-06-03 22:40:35.518255491 +0200
@@ -443,11 +443,6 @@
              "%s: Invalid structure definition (native typedef error, 
FFI_BAD_TYPEDEF)", op);
     throwByName(env, EIllegalArgument, msg);
     return JNI_TRUE;
-  case FFI_BAD_ARGTYPE:
-    snprintf(msg, sizeof(msg),
-             "%s: Invalid argument type (FFI_BAD_ARGTYPE)", op);
-    throwByName(env, EIllegalArgument, msg);
-    return JNI_TRUE;
   default:
     snprintf(msg, sizeof(msg), "%s failed (%d)", op, status);
     throwByName(env, EError, msg);

Reply via email to