diff --git a/0001-Remove-pax-zstd-test.patch b/0001-Remove-pax-zstd-test.patch deleted file mode 100644 index a524c2016c6ec668b17305525d42e05894f28c38..0000000000000000000000000000000000000000 --- a/0001-Remove-pax-zstd-test.patch +++ /dev/null @@ -1,42 +0,0 @@ -From e1287c801aca417b740bc3a9f62df93a4c2c797e Mon Sep 17 00:00:00 2001 -From: Tom Stellard -Date: Tue, 26 May 2020 11:56:44 -0700 -Subject: [PATCH] Remove pax-zstd test - ---- - Tests/RunCMake/CommandLineTar/RunCMakeTest.cmake | 1 - - Tests/RunCMake/CommandLineTar/pax-zstd.cmake | 10 ---------- - 2 files changed, 11 deletions(-) - delete mode 100644 Tests/RunCMake/CommandLineTar/pax-zstd.cmake - -diff --git a/Tests/RunCMake/CommandLineTar/RunCMakeTest.cmake b/Tests/RunCMake/CommandLineTar/RunCMakeTest.cmake -index a64af95..4d1b396 100644 ---- a/Tests/RunCMake/CommandLineTar/RunCMakeTest.cmake -+++ b/Tests/RunCMake/CommandLineTar/RunCMakeTest.cmake -@@ -27,7 +27,6 @@ run_cmake(gnutar) - run_cmake(gnutar-gz) - run_cmake(pax) - run_cmake(pax-xz) --run_cmake(pax-zstd) - run_cmake(paxr) - run_cmake(paxr-bz2) - run_cmake(zip) -diff --git a/Tests/RunCMake/CommandLineTar/pax-zstd.cmake b/Tests/RunCMake/CommandLineTar/pax-zstd.cmake -deleted file mode 100644 -index c2a304d..0000000 ---- a/Tests/RunCMake/CommandLineTar/pax-zstd.cmake -+++ /dev/null -@@ -1,10 +0,0 @@ --set(OUTPUT_NAME "test.tar.zstd") -- --set(COMPRESSION_FLAGS cvf) --set(COMPRESSION_OPTIONS --format=pax --zstd) -- --set(DECOMPRESSION_FLAGS xvf) -- --include(${CMAKE_CURRENT_LIST_DIR}/roundtrip.cmake) -- --check_magic("28b52ffd0058" LIMIT 6 HEX) --- -1.8.3.1 - diff --git a/0001-Tests-Explicitly-allow-usage-of-git-file-based-proto.patch b/0001-Tests-Explicitly-allow-usage-of-git-file-based-proto.patch new file mode 100644 index 0000000000000000000000000000000000000000..28f02b26df1178914830e6912bfca720a5dd432b --- /dev/null +++ b/0001-Tests-Explicitly-allow-usage-of-git-file-based-proto.patch @@ -0,0 +1,41 @@ +From f72734ff7712d6aae837f940a45d6e7508bb182c Mon Sep 17 00:00:00 2001 +From: Brad King +Date: Thu, 20 Oct 2022 13:38:20 -0400 +Subject: [PATCH] Tests: Explicitly allow usage of git file-based protocol in + test cases + +Due to CVE-2022-39253, Git 2.30.6 sets `protocol.file.allow=user` by +default. The change has also been backported to other Git versions by +distros. This breaks some of our test cases that use the file-based +protocol locally to simulate real workflows without requiring network +access. In these cases the file protocol is safe, so explicitly enable +it in the tests. + +(cherry picked from commit 79ce0f434e916684d734e136b92e14f472a9d14a) +--- + Tests/CMakeLists.txt | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt +index 8e7c04fbd0..d011020f99 100644 +--- a/Tests/CMakeLists.txt ++++ b/Tests/CMakeLists.txt +@@ -1540,6 +1540,7 @@ if(BUILD_TESTING) + ) + list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/ExternalProject") + set_tests_properties(ExternalProject PROPERTIES ++ ENVIRONMENT GIT_ALLOW_PROTOCOL=file + RUN_SERIAL 1 + TIMEOUT ${CMAKE_LONG_TEST_TIMEOUT}) + +@@ -2653,6 +2654,7 @@ if(BUILD_TESTING) + -P "${CMake_BINARY_DIR}/Tests/CTestUpdateGIT.cmake" + ) + list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${CTestUpdateGIT_DIR}") ++ set_property(TEST CTest.UpdateGIT PROPERTY ENVIRONMENT GIT_ALLOW_PROTOCOL=file) + endif() + + # Test CTest Update with HG +-- +2.31.1 + diff --git a/cmake-3.18.2.tar.gz b/cmake-3.18.2.tar.gz deleted file mode 100644 index 817b5a4923b10255633cf44719731cb62e0b7259..0000000000000000000000000000000000000000 Binary files a/cmake-3.18.2.tar.gz and /dev/null differ diff --git a/cmake-3.20-CPACK_THREADS.patch b/cmake-3.20-CPACK_THREADS.patch old mode 100755 new mode 100644 diff --git a/cmake-3.20.2.tar.gz b/cmake-3.20.2.tar.gz deleted file mode 100755 index af68804eaf448deec710e7ceb45a720a75c11315..0000000000000000000000000000000000000000 Binary files a/cmake-3.20.2.tar.gz and /dev/null differ diff --git a/cmake-fedora-flag_release.patch b/cmake-fedora-flag_release.patch deleted file mode 100644 index 1e49deea3d4f964977f442316e1477ad085d3779..0000000000000000000000000000000000000000 --- a/cmake-fedora-flag_release.patch +++ /dev/null @@ -1,118 +0,0 @@ -diff -Naur cmake-3.18.2.orig/Modules/Compiler/Absoft-Fortran.cmake cmake-3.18.2/Modules/Compiler/Absoft-Fortran.cmake ---- cmake-3.18.2.orig/Modules/Compiler/Absoft-Fortran.cmake 2020-09-08 13:30:51.134086928 +0000 -+++ cmake-3.18.2/Modules/Compiler/Absoft-Fortran.cmake 2020-09-10 08:44:13.788373968 +0000 -@@ -1,7 +1,7 @@ - string(APPEND CMAKE_Fortran_FLAGS_INIT " ") - string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g") - string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ") --string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3") -+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2") - string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g") - set(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=") - set(CMAKE_Fortran_MODPATH_FLAG "-p") -diff -Naur cmake-3.18.2.orig/Modules/Compiler/G95-Fortran.cmake cmake-3.18.2/Modules/Compiler/G95-Fortran.cmake ---- cmake-3.18.2.orig/Modules/Compiler/G95-Fortran.cmake 2020-09-08 13:30:51.136086957 +0000 -+++ cmake-3.18.2/Modules/Compiler/G95-Fortran.cmake 2020-09-10 08:44:22.991490916 +0000 -@@ -1,7 +1,7 @@ - string(APPEND CMAKE_Fortran_FLAGS_INIT " ") - string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g") - string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os") --string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3") -+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2") - string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g") - set(CMAKE_Fortran_MODDIR_FLAG "-fmod=") - set(CMAKE_Fortran_VERBOSE_FLAG "-v") -diff -Naur cmake-3.18.2.orig/Modules/Compiler/GNU-Fortran.cmake cmake-3.18.2/Modules/Compiler/GNU-Fortran.cmake ---- cmake-3.18.2.orig/Modules/Compiler/GNU-Fortran.cmake 2020-09-08 13:30:51.137086972 +0000 -+++ cmake-3.18.2/Modules/Compiler/GNU-Fortran.cmake 2020-09-10 08:44:10.635333901 +0000 -@@ -19,7 +19,7 @@ - - # No -DNDEBUG for Fortran. - string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os") --string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3") -+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2") - - # No -isystem for Fortran because it will not find .mod files. - unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran) -diff -Naur cmake-3.18.2.orig/Modules/Compiler/GNU.cmake cmake-3.18.2/Modules/Compiler/GNU.cmake ---- cmake-3.18.2.orig/Modules/Compiler/GNU.cmake 2020-09-08 13:30:51.137086972 +0000 -+++ cmake-3.18.2/Modules/Compiler/GNU.cmake 2020-09-10 08:44:38.939693578 +0000 -@@ -56,7 +56,7 @@ - string(APPEND CMAKE_${lang}_FLAGS_INIT " ") - string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g") - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG") -- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG") -+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG") - string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG") - set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE " -E > ") - set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE " -S -o ") -diff -Naur cmake-3.18.2.orig/Modules/Compiler/Intel.cmake cmake-3.18.2/Modules/Compiler/Intel.cmake ---- cmake-3.18.2.orig/Modules/Compiler/Intel.cmake 2020-09-08 13:30:51.138086986 +0000 -+++ cmake-3.18.2/Modules/Compiler/Intel.cmake 2020-09-10 08:44:25.749525964 +0000 -@@ -22,7 +22,7 @@ - string(APPEND CMAKE_${lang}_FLAGS_INIT " ") - string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g") - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os") -- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3") -+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2") - string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g") - - set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}") -diff -Naur cmake-3.18.2.orig/Modules/Compiler/NVIDIA-CUDA.cmake cmake-3.18.2/Modules/Compiler/NVIDIA-CUDA.cmake ---- cmake-3.18.2.orig/Modules/Compiler/NVIDIA-CUDA.cmake 2020-09-08 13:30:51.138086986 +0000 -+++ cmake-3.18.2/Modules/Compiler/NVIDIA-CUDA.cmake 2020-09-10 08:44:19.672448740 +0000 -@@ -39,7 +39,7 @@ - set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC) - string(APPEND CMAKE_CUDA_FLAGS_INIT " ") - string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g") -- string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG") -+ string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O2 -DNDEBUG") - string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG") - string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG") - endif() -diff -Naur cmake-3.18.2.orig/Modules/Compiler/PGI.cmake cmake-3.18.2/Modules/Compiler/PGI.cmake ---- cmake-3.18.2.orig/Modules/Compiler/PGI.cmake 2020-09-08 13:30:51.138086986 +0000 -+++ cmake-3.18.2/Modules/Compiler/PGI.cmake 2020-09-10 08:44:32.995618043 +0000 -@@ -18,7 +18,7 @@ - string(APPEND CMAKE_${lang}_FLAGS_INIT " ") - string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0") - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -s") -- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O3") -+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O2") - string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -gopt") - - if(CMAKE_HOST_WIN32) -diff -Naur cmake-3.18.2.orig/Modules/Compiler/PathScale.cmake cmake-3.18.2/Modules/Compiler/PathScale.cmake ---- cmake-3.18.2.orig/Modules/Compiler/PathScale.cmake 2020-09-08 13:30:51.138086986 +0000 -+++ cmake-3.18.2/Modules/Compiler/PathScale.cmake 2020-09-10 08:44:16.715411163 +0000 -@@ -16,6 +16,6 @@ - string(APPEND CMAKE_${lang}_FLAGS_INIT " ") - string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0") - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os") -- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3") -+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2") - string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2") - endmacro() -diff -Naur cmake-3.18.2.orig/Modules/Platform/HP-UX-HP-CXX.cmake cmake-3.18.2/Modules/Platform/HP-UX-HP-CXX.cmake ---- cmake-3.18.2.orig/Modules/Platform/HP-UX-HP-CXX.cmake 2020-09-08 13:30:51.182087632 +0000 -+++ cmake-3.18.2/Modules/Platform/HP-UX-HP-CXX.cmake 2020-09-10 08:44:00.226201627 +0000 -@@ -9,6 +9,6 @@ - ) - - string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " -g") --string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " +O3 -DNDEBUG") -+string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " +O2 -DNDEBUG") - string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " +O2 -DNDEBUG") - string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT " -g") -diff -Naur cmake-3.18.2.orig/Modules/Platform/Windows-Clang.cmake cmake-3.18.2/Modules/Platform/Windows-Clang.cmake ---- cmake-3.18.2.orig/Modules/Platform/Windows-Clang.cmake 2020-09-08 13:30:51.185087676 +0000 -+++ cmake-3.18.2/Modules/Platform/Windows-Clang.cmake 2020-09-10 08:44:07.269291127 +0000 -@@ -79,7 +79,7 @@ - - string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -Xclang -gcodeview -O0 ${__ADDED_FLAGS_DEBUG}") - string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG ${__ADDED_FLAGS}") -- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG ${__ADDED_FLAGS}") -+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG ${__ADDED_FLAGS}") - string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG -Xclang -gcodeview ${__ADDED_FLAGS}") - endif() - set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ") diff --git a/cmake-findruby.patch b/cmake-findruby.patch old mode 100755 new mode 100644 diff --git a/cmake-gui.appdata.xml b/cmake-gui.appdata.xml deleted file mode 100644 index b0ffd48bbc1d150075dc26f269015411daaba1cc..0000000000000000000000000000000000000000 --- a/cmake-gui.appdata.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - cmake-gui.desktop - CC0-1.0 - CMake GUI - Create new CMake projects - -

- CMake is an open source, cross platform build system that can build, test, - and package software. CMake GUI is a graphical user interface that can - create and edit CMake projects. -

-
- http://www.cmake.org - - https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/CMake/a.png - - -
diff --git a/cmake-init.el b/cmake-init.el old mode 100755 new mode 100644 diff --git a/cmake-mingw-dl.patch b/cmake-mingw-dl.patch old mode 100755 new mode 100644 diff --git a/cmake.attr b/cmake.attr old mode 100755 new mode 100644 diff --git a/cmake.prov b/cmake.prov old mode 100755 new mode 100644 diff --git a/cmake.req b/cmake.req old mode 100755 new mode 100644 diff --git a/cmake.spec b/cmake.spec old mode 100755 new mode 100644 index 0a945fda007cefa7b88c0959722cc90d38322d5e..a72edcb0478ec2345c36364dded55fc1c3dfc43a --- a/cmake.spec +++ b/cmake.spec @@ -1,4 +1,3 @@ -%define anolis_release .0.1 # Do we add appdata-files? # consider conditional on whether %%_metainfodir is defined or not instead -- rex %if 0%{?fedora} || 0%{?rhel} > 7 @@ -66,7 +65,7 @@ %{?rcsuf:%global versuf -%{rcsuf}} # For handling bump release by rpmdev-bumpspec and mass rebuild -%global baserelease 4 +%global baserelease 5 # Uncomment if building for EPEL #global name_suffix %%{major_version} @@ -74,7 +73,7 @@ Name: %{orig_name}%{?name_suffix} Version: %{major_version}.%{minor_version}.2 -Release: %{baserelease}%{?relsuf}%{anolis_release}%{?dist} +Release: %{baserelease}%{?relsuf}%{?dist} Summary: Cross-platform make system # most sources are BSD @@ -111,6 +110,9 @@ Patch102: %{name}-mingw-dl.patch # so limit it to some reasonable number (4) Patch103: cmake-3.20-CPACK_THREADS.patch +# rhbz#2162696 +Patch105: 0001-Tests-Explicitly-allow-usage-of-git-file-based-proto.patch + # Patch for renaming on EPEL %if 0%{?name_suffix:1} Patch1: %{name}-rename.patch @@ -530,8 +532,8 @@ popd %changelog -* Thu Feb 24 2022 Weitao Zhou - 3.20.2-4.0.1 -- Rebuild on platform-python +* Tue Jan 31 2023 Tom Stellard - 3.20.2-5 +- Fix test case broken by git fix for CVE-2022-39253 * Fri Jul 09 2021 sguelton@redhat.com - 3.20.2-4 - Fix update (rhbz#1964407) diff --git a/dist b/dist new file mode 100644 index 0000000000000000000000000000000000000000..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8 diff --git a/download b/download new file mode 100644 index 0000000000000000000000000000000000000000..9b1df3ce9b2a0b6db0f2bfbf184c9c790bb6cc68 --- /dev/null +++ b/download @@ -0,0 +1 @@ +cd0e7735f1e51f30ee3b0844390a464a cmake-3.20.2.tar.gz diff --git a/macros.cmake b/macros.cmake old mode 100755 new mode 100644