From 6532a35a59380f5f71d340c4361e2a448dc659b3 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Fri, 16 May 2025 17:01:25 +0800 Subject: [PATCH] =?UTF-8?q?not=20modify=20lib64=20to=20lib=20on=20sw=5F64?= =?UTF-8?q?=20=E7=94=B3=E5=A8=81=E6=9E=B6=E6=9E=84=E5=9C=A824.03=E8=B5=B7?= =?UTF-8?q?=E5=B7=B2=E5=B0=86lib=E5=AE=89=E8=A3=85=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=B0lib64=EF=BC=8C=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E5=86=8D=E5=8D=95=E7=8B=AC=E5=8E=BB?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEsw=5F64=E7=9B=AE=E5=BD=95=E4=B8=BAlib=20fix?= =?UTF-8?q?=20sw=5F64=20portmidi=20Could=20NOT=20find=20JNI=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A522.03=E6=97=B6=E7=9A=84=E4=BF=AE=E6=94=B9!49:fix=20sw?= =?UTF-8?q?=5F64=20portmidi=20Could=20NOT=20find=20JNI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hailiang --- cmake-3.22.0-sw.patch | 17 +---------------- cmake.spec | 6 +++++- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/cmake-3.22.0-sw.patch b/cmake-3.22.0-sw.patch index b2e7a2c..c1b2804 100755 --- a/cmake-3.22.0-sw.patch +++ b/cmake-3.22.0-sw.patch @@ -6,7 +6,7 @@ diff -Naur cmake-3.22.0.org/Modules/FindJNI.cmake cmake-3.22.0.sw/Modules/FindJN elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64") set(_java_libarch "arm64" "aarch64") + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^sw_64") -+ set(_java_libarch "sw_64") ++ set(_java_libarch "sw_64" "sw64") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^alpha") set(_java_libarch "alpha") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") @@ -19,21 +19,6 @@ diff -Naur cmake-3.22.0.org/Modules/FindJNI.cmake cmake-3.22.0.sw/Modules/FindJN DOC "jni_md.h jniport.h include directory" ) -diff -Naur cmake-3.22.0.org/Modules/GNUInstallDirs.cmake cmake-3.22.0.sw/Modules/GNUInstallDirs.cmake ---- cmake-3.22.0.org/Modules/GNUInstallDirs.cmake 2022-02-25 01:21:55.550000000 +0000 -+++ cmake-3.22.0.sw/Modules/GNUInstallDirs.cmake 2022-02-25 01:32:38.270000000 +0000 -@@ -286,9 +286,9 @@ - elseif(NOT DEFINED __system_type_for_install) - # not debian, alpine, arch, or conda so rely on CMAKE_SIZEOF_VOID_P: - if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") -- set(_LIBDIR_DEFAULT "lib64") -+ set(_LIBDIR_DEFAULT "lib") - if(DEFINED _GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX) -- set(__LAST_LIBDIR_DEFAULT "lib64") -+ set(__LAST_LIBDIR_DEFAULT "lib") - endif() - endif() - endif() diff -Naur cmake-3.22.0.org/Utilities/KWIML/include/kwiml/abi.h cmake-3.22.0.sw/Utilities/KWIML/include/kwiml/abi.h --- cmake-3.22.0.org/Utilities/KWIML/include/kwiml/abi.h 2022-02-25 01:21:57.660000000 +0000 +++ cmake-3.22.0.sw/Utilities/KWIML/include/kwiml/abi.h 2022-02-25 01:25:45.020000000 +0000 diff --git a/cmake.spec b/cmake.spec index a20649c..b427f0a 100644 --- a/cmake.spec +++ b/cmake.spec @@ -22,7 +22,7 @@ Name: cmake Version: 3.27.9 -Release: 5 +Release: 6 Summary: Cross-platform make system License: BSD and MIT and zlib URL: http://www.cmake.org @@ -302,6 +302,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %exclude %{_pkgdocdir}/Copyright.txt %changelog +* Fri May 16 2025 mahailiang - 3.27.9-6 +- not modify lib64 to lib on sw_64 +- fix sw_64 portmidi Could NOT find JNI + * Thu Jan 23 2025 fuanan - 3.27.9-5 - remove the architecture judgment in the patches section; - include all patches in the source package. -- Gitee