]> git.pld-linux.org Git - packages/cmake.git/commitdiff
fix JNI determination on x32; rel 2
authorJan Palus <atler@pld-linux.org>
Tue, 16 Aug 2022 09:45:04 +0000 (11:45 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 16 Aug 2022 09:45:04 +0000 (11:45 +0200)
cmake-jni.patch
cmake.spec

index b402b93d6840cd44cd1f33162303518db6a6b54b..cf9e3ecad7c212dfe25ff5be254234c244894774 100644 (file)
@@ -1,5 +1,14 @@
 --- cmake-3.22.2/Modules/FindJNI.cmake.orig    2022-01-25 14:45:06.000000000 +0100
 +++ cmake-3.22.2/Modules/FindJNI.cmake 2022-02-15 19:29:09.377305753 +0100
+@@ -52,7 +52,7 @@
+     # 1.6.0_18 + icedtea patches. However, it would be much better to base the
+     # guess on the first part of the GNU config.guess platform triplet.
+     if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
+-      if(CMAKE_LIBRARY_ARCHITECTURE STREQUAL "x86_64-linux-gnux32")
++      if(CMAKE_LIBRARY_ARCHITECTURE STREQUAL "x86_64-linux-gnux32" OR LIB_SUFFIX STREQUAL "x32")
+         set(_java_libarch "x32" "amd64" "i386")
+       else()
+         set(_java_libarch "amd64" "i386")
 @@ -188,49 +188,27 @@ if (WIN32)
  endif()
  
index 7020d7fca05c6a23833cf9ea897b8e552f4c2e4a..95f61d41e7900d1892ff618b3aa8e155e14adcd5 100644 (file)
@@ -18,7 +18,7 @@ Summary:      Cross-platform, open-source make system
 Summary(pl.UTF-8):     Wieloplatformowy system make o otwartych źródłach
 Name:          cmake
 Version:       3.23.1
-Release:       1
+Release:       2
 License:       BSD
 Group:         Development/Building
 Source0:       https://cmake.org/files/v3.23/%{name}-%{version}.tar.gz
This page took 0.069846 seconds and 4 git commands to generate.