Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
f35f4d6e47
!92 修复源码包同源异构问题
From: @fly_fzc 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2025-01-23 13:40:27 +00:00
fly_fzc
f09091b762 remove the architecture judgment in the patches section 2025-01-23 20:31:07 +08:00
openeuler-ci-bot
b836522309
!76 [sync] PR-75: Fix messy code for openssl-1.1.1wa version
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-04-28 08:23:32 +00:00
wk333
a724163170 Fix messy code for openssl-1.1.1wa version
(cherry picked from commit 09dedd8c9820bb369b2d722505659f379c6d2c70)
2024-04-28 16:01:23 +08:00
openeuler-ci-bot
f863a0185b
!65 [sync] PR-63: Remove Windows_TemporaryKey.pfx
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-02-04 01:20:41 +00:00
lyn1001
9c3692b963 Remove Windows_TemporaryKey.pfx
(cherry picked from commit 4912820e9414f8e9f43494ff8964cafa6b384a48)
2024-02-02 17:11:04 +08:00
openeuler-ci-bot
275f96fafc
!55 Fix abnormal empty link in cmake-data package
From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-12-14 08:52:37 +00:00
lyn1001
733aeb2dc9 Fix abnormal empty link in cmake-data package 2023-12-14 16:19:44 +08:00
openeuler-ci-bot
ac3f495f2e
!50 [sync] PR-49: fix sw_64 portmidi Could NOT find JNI
From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-09-21 12:15:04 +00:00
herengui
488b5344c9 fix sw_64 portmidi Could NOT find JNI
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit c771cf05a878d0bae127fb2754111ab9c0fdbd70)
2023-09-06 14:53:54 +08:00
3 changed files with 65 additions and 11 deletions

View File

@ -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") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
set(_java_libarch "arm64" "aarch64") set(_java_libarch "arm64" "aarch64")
+ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^sw_64") + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^sw_64")
+ set(_java_libarch "sw_64") + set(_java_libarch "sw_64" "sw64")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^alpha") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^alpha")
set(_java_libarch "alpha") set(_java_libarch "alpha")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")

View File

@ -11,7 +11,7 @@
Name: cmake Name: cmake
Version: 3.22.0 Version: 3.22.0
Release: 5 Release: 10
Summary: Cross-platform make system Summary: Cross-platform make system
License: BSD and MIT and zlib License: BSD and MIT and zlib
URL: http://www.cmake.org URL: http://www.cmake.org
@ -24,9 +24,8 @@ Source5: cmake.req
Patch0: cmake-findruby.patch Patch0: cmake-findruby.patch
Patch1: cmake-fedora-flag_release.patch Patch1: cmake-fedora-flag_release.patch
Patch2: cmake-mingw-dl.patch Patch2: cmake-mingw-dl.patch
%ifarch sw_64
Patch3: cmake-3.22.0-sw.patch Patch3: cmake-3.22.0-sw.patch
%endif Patch4: fix-messy-code-for-openssl-1.1.1wa-version.patch
BuildRequires: coreutils findutils gcc-c++ gcc-gfortran sed BuildRequires: coreutils findutils gcc-c++ gcc-gfortran sed
BuildRequires: emacs python3-devel pkgconfig(Qt5Widgets) desktop-file-utils BuildRequires: emacs python3-devel pkgconfig(Qt5Widgets) desktop-file-utils
@ -44,6 +43,9 @@ BuildRequires: bzip2-devel curl-devel expat-devel jsoncpp-devel libarchive-deve
BuildRequires: libuv-devel xz-devel zlib-devel cmake-rpm-macros BuildRequires: libuv-devel xz-devel zlib-devel cmake-rpm-macros
%endif %endif
BuildRequires: pkgconfig(bash-completion)
%global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '%{_datadir}/bash-completion/completions')
Requires: cmake-data = %{version}-%{release} cmake-rpm-macros = %{version}-%{release} Requires: cmake-data = %{version}-%{release} cmake-rpm-macros = %{version}-%{release}
Requires: cmake-filesystem = %{version}-%{release} Requires: cmake-filesystem = %{version}-%{release}
Provides: cmake3 = %{version}-%{release} bundled(md5-deutsch) bundled(kwsys) Provides: cmake3 = %{version}-%{release} bundled(md5-deutsch) bundled(kwsys)
@ -102,7 +104,15 @@ BuildArch: noarch
Documentation for cmake. Documentation for cmake.
%prep %prep
%autosetup -n cmake-%{version}%{?versuf} -p 1 %setup -n cmake-%{version}%{?versuf}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%ifarch sw_64
%patch3 -p1
%endif
%patch4 -p1
sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov
sed '1c #!%{__python3}' %{SOURCE5} > cmake.req sed '1c #!%{__python3}' %{SOURCE5} > cmake.req
@ -134,11 +144,6 @@ for f in ccmake cmake cpack ctest;
do do
ln -s $f %{buildroot}%{_bindir}/${f}3; ln -s $f %{buildroot}%{_bindir}/${f}3;
done done
install -d %{buildroot}%{_datadir}/bash-completion/completions
for f in %{buildroot}%{_datadir}/cmake/completions/*
do
ln -s ../../cmake/completions/$(basename $f) %{buildroot}%{_datadir}/bash-completion/completions
done
install -d %{buildroot}%{_emacs_sitelispdir}/cmake install -d %{buildroot}%{_emacs_sitelispdir}/cmake
install -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el install -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el
%{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el %{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el
@ -204,12 +209,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files data -f data_files.mf %files data -f data_files.mf
%{_datadir}/aclocal/cmake.m4 %{_datadir}/aclocal/cmake.m4
%{_datadir}/bash-completion %{bash_completionsdir}/c*
%{_emacs_sitelispdir}/cmake %{_emacs_sitelispdir}/cmake
%{_emacs_sitelispdir}/cmake-mode.el %{_emacs_sitelispdir}/cmake-mode.el
%{_emacs_sitestartdir}/cmake-init.el %{_emacs_sitestartdir}/cmake-init.el
%{_datadir}/vim/vimfiles/indent/%{name}.vim %{_datadir}/vim/vimfiles/indent/%{name}.vim
%{_datadir}/vim/vimfiles//syntax/%{name}.vim %{_datadir}/vim/vimfiles//syntax/%{name}.vim
%exclude %{_datadir}/cmake/Templates/Windows/Windows_TemporaryKey.pfx
%files filesystem -f data_dirs.mf -f lib_dirs.mf %files filesystem -f data_dirs.mf -f lib_dirs.mf
@ -238,6 +244,22 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%exclude %{_pkgdocdir}/Copyright.txt %exclude %{_pkgdocdir}/Copyright.txt
%changelog %changelog
* Thu Jan 23 2025 fuanan <fuanan3@h-partners.com> - 3.22.0-10
- remove the architecture judgment in the patches section;
- include all patches in the source package.
* Sun Apr 28 2024 wangkai <13474090681@163.com> - 3.22.0-9
- Fix messy code for openssl-1.1.1wa version
* Fri Feb 2 2024 liyanan <liyanan61@h-partners.com> - 3.22.0-8
- Remove Windows_TemporaryKey.pfx
* Thu Dec 14 2023 liyanan <liyanan61@h-partners.com> - 3.22.0-7
- Fix abnormal empty link in cmake-data package
* Thu Aug 10 2023 herengui <herengui@kylinsec.com.cn> - 3.22.0-6
- fix sw_64 portmidi Could NOT find JNI
* Wed Oct 19 2022 wuzx<wuzx1226@qq.com> - 3.22.0-5 * Wed Oct 19 2022 wuzx<wuzx1226@qq.com> - 3.22.0-5
- add sw64 patch - add sw64 patch

View File

@ -0,0 +1,32 @@
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake
index 8474e05c..ac742855 100644
--- a/Modules/FindOpenSSL.cmake
+++ b/Modules/FindOpenSSL.cmake
@@ -520,7 +520,6 @@ if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h")
from_hex("${OPENSSL_VERSION_PATCH}" _tmp)
# 96 is the ASCII code of 'a' minus 1
math(EXPR OPENSSL_VERSION_PATCH_ASCII "${_tmp} + 96")
- unset(_tmp)
# Once anyone knows how OpenSSL would call the patch versions beyond 'z'
# this should be updated to handle that, too. This has not happened yet
# so it is simply ignored here for now.
@@ -528,6 +527,16 @@ if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h")
endif ()
set(OPENSSL_VERSION "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}${OPENSSL_VERSION_PATCH_STRING}")
+
+ if ("${_tmp}" GREATER 26)
+ # openssl version 1.1.1wa get text directly
+ file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_text
+ REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_TEXT[\t ]+\"OpenSSL[^\"]*\".*")
+ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+[a-zA-Z]+" version_number ${openssl_version_text})
+ set(OPENSSL_VERSION "${version_number}")
+ endif ()
+ unset(_tmp)
+
else ()
# Since OpenSSL 3.0.0, the new version format is MAJOR.MINOR.PATCH and
# a new OPENSSL_VERSION_STR macro contains exactly that
--
2.33.0