From: Jan Palus Date: Tue, 27 Sep 2022 20:16:28 +0000 (+0200) Subject: globally disable completness check X-Git-Tag: auto/th/cmake-3.24.2-1~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=8f9c22edfd8b6ac07dded1160fba35afbb9604eb;p=packages%2Fcmake.git globally disable completness check causes more issues for distributions with split packaging than it solves and even cmake's own comment is not sure whether it's good idea: https://gitlab.kitware.com/cmake/cmake/-/blob/164a156c7c26aaf4f30e73ae0cdb6d2e8a10e0a4/Source/cmExportFileGenerator.cxx#L1185-1192 --- diff --git a/cmake.spec b/cmake.spec index c23154e..cb92b16 100644 --- a/cmake.spec +++ b/cmake.spec @@ -28,6 +28,7 @@ Patch1: %{name}-libx32.patch Patch2: %{name}-jni.patch Patch3: %{name}-findruby.patch Patch4: %{name}-findruby2.patch +Patch5: disable-completness-check.patch URL: https://cmake.org/ # system zlib,bzip2,xz,zstd used only when without system libarchive %if %{with gui} @@ -136,6 +137,7 @@ Bashowe dopełnianie parametrów dla cmake'a. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \ Modules/Compiler/XL-Fortran/cpp diff --git a/disable-completness-check.patch b/disable-completness-check.patch new file mode 100644 index 0000000..c3ec11e --- /dev/null +++ b/disable-completness-check.patch @@ -0,0 +1,11 @@ +--- cmake-3.24.1/Source/cmExportInstallFileGenerator.cxx.orig 2022-08-17 18:54:57.000000000 +0200 ++++ cmake-3.24.1/Source/cmExportInstallFileGenerator.cxx 2022-09-27 11:07:37.195039337 +0200 +@@ -163,7 +163,7 @@ bool cmExportInstallFileGenerator::Gener + this->LoadConfigFiles(os); + + this->CleanupTemporaryVariables(os); +- this->GenerateImportedFileCheckLoop(os); ++ //this->GenerateImportedFileCheckLoop(os); + + bool result = true; + // Generate an import file for each configuration.