forked from pool/cmake
Accepting request 360183 from home:olh:branches:devel:tools:building
- Remove cmake version from generated files cmake-version-in-generated-files.patch OBS-URL: https://build.opensuse.org/request/show/360183 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=239
This commit is contained in:
parent
4437bb7be6
commit
f0f5b03a55
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 18 09:00:40 UTC 2016 - olaf@aepfle.de
|
||||
|
||||
- Remove cmake version from generated files
|
||||
cmake-version-in-generated-files.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 21:57:29 UTC 2016 - foss@grueninger.de
|
||||
|
||||
|
@ -31,6 +31,8 @@ Source7: cmake.keyring
|
||||
Patch4: form.patch
|
||||
# PATCH-FIX-UPSTREAM system-libs.patch -- allow choosing between bundled and system jsoncpp & form libs
|
||||
Patch5: system-libs.patch
|
||||
# PATCH-FIX-SUSE cmake-version-in-generated-files.patch -- version number to be found in OBS
|
||||
Patch6: cmake-version-in-generated-files.patch
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
@ -73,6 +75,7 @@ echo "`grep cmake-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOURC
|
||||
%setup -q -n cmake-%{version}
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
%build
|
||||
EXTRA_FLAGS="--qt-gui"
|
||||
|
95
cmake-version-in-generated-files.patch
Normal file
95
cmake-version-in-generated-files.patch
Normal file
@ -0,0 +1,95 @@
|
||||
Enclosing the cmake version will cause a republish of generated files
|
||||
|
||||
---
|
||||
Source/CPack/IFW/cmCPackIFWGenerator.cxx | 2 +-
|
||||
Source/cmExportFileGenerator.cxx | 2 +-
|
||||
Source/cmExportLibraryDependenciesCommand.cxx | 2 +-
|
||||
Source/cmGlobalGhsMultiGenerator.cxx | 4 ++--
|
||||
Source/cmGlobalNinjaGenerator.cxx | 4 +---
|
||||
Source/cmLocalUnixMakefileGenerator3.cxx | 4 +---
|
||||
6 files changed, 7 insertions(+), 11 deletions(-)
|
||||
|
||||
Index: cmake-3.4.3/Source/CPack/IFW/cmCPackIFWGenerator.cxx
|
||||
===================================================================
|
||||
--- cmake-3.4.3.orig/Source/CPack/IFW/cmCPackIFWGenerator.cxx
|
||||
+++ cmake-3.4.3/Source/CPack/IFW/cmCPackIFWGenerator.cxx
|
||||
@@ -614,7 +614,7 @@ cmCPackIFWPackage* cmCPackIFWGenerator::
|
||||
//----------------------------------------------------------------------------
|
||||
void cmCPackIFWGenerator::WriteGeneratedByToStrim(cmGeneratedFileStream &xout)
|
||||
{
|
||||
- xout << "<!-- Generated by CPack " << CMake_VERSION << " IFW generator "
|
||||
+ xout << "<!-- Generated by CPack IFW generator "
|
||||
<< "for QtIFW ";
|
||||
if(IsVersionLess("2.0"))
|
||||
{
|
||||
Index: cmake-3.4.3/Source/cmExportFileGenerator.cxx
|
||||
===================================================================
|
||||
--- cmake-3.4.3.orig/Source/cmExportFileGenerator.cxx
|
||||
+++ cmake-3.4.3/Source/cmExportFileGenerator.cxx
|
||||
@@ -107,7 +107,7 @@ bool cmExportFileGenerator::GenerateImpo
|
||||
std::ostream& os = *foutPtr;
|
||||
|
||||
// Protect that file against use with older CMake versions.
|
||||
- os << "# Generated by CMake " << cmVersion::GetCMakeVersion() << "\n\n";
|
||||
+ os << "# Generated by CMake\n\n";
|
||||
os << "if(\"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}\" LESS 2.5)\n"
|
||||
<< " message(FATAL_ERROR \"CMake >= 2.6.0 required\")\n"
|
||||
<< "endif()\n";
|
||||
Index: cmake-3.4.3/Source/cmExportLibraryDependenciesCommand.cxx
|
||||
===================================================================
|
||||
--- cmake-3.4.3.orig/Source/cmExportLibraryDependenciesCommand.cxx
|
||||
+++ cmake-3.4.3/Source/cmExportLibraryDependenciesCommand.cxx
|
||||
@@ -168,7 +168,7 @@ void cmExportLibraryDependenciesCommand:
|
||||
// versions.
|
||||
const char* vertest =
|
||||
"\"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}\" GREATER 2.4";
|
||||
- fout << "# Generated by CMake " << cmVersion::GetCMakeVersion() << "\n\n";
|
||||
+ fout << "# Generated by CMake\n\n";
|
||||
fout << "if(" << vertest << ")\n";
|
||||
fout << " # Information for CMake 2.6 and above.\n";
|
||||
for(std::map<std::string, std::string>::const_iterator
|
||||
Index: cmake-3.4.3/Source/cmGlobalGhsMultiGenerator.cxx
|
||||
===================================================================
|
||||
--- cmake-3.4.3.orig/Source/cmGlobalGhsMultiGenerator.cxx
|
||||
+++ cmake-3.4.3/Source/cmGlobalGhsMultiGenerator.cxx
|
||||
@@ -365,8 +365,8 @@ void cmGlobalGhsMultiGenerator::WriteDis
|
||||
(*os) << "#" << std::endl
|
||||
<< "# CMAKE generated file: DO NOT EDIT!" << std::endl
|
||||
<< "# Generated by \"" << GetActualName() << "\""
|
||||
- << " Generator, CMake Version " << cmVersion::GetMajorVersion() << "."
|
||||
- << cmVersion::GetMinorVersion() << std::endl
|
||||
+ << " Generator, CMake"
|
||||
+ << std::endl
|
||||
<< "#" << std::endl;
|
||||
}
|
||||
|
||||
Index: cmake-3.4.3/Source/cmGlobalNinjaGenerator.cxx
|
||||
===================================================================
|
||||
--- cmake-3.4.3.orig/Source/cmGlobalNinjaGenerator.cxx
|
||||
+++ cmake-3.4.3/Source/cmGlobalNinjaGenerator.cxx
|
||||
@@ -883,9 +883,7 @@ void cmGlobalNinjaGenerator::WriteDiscla
|
||||
os
|
||||
<< "# CMAKE generated file: DO NOT EDIT!\n"
|
||||
<< "# Generated by \"" << this->GetName() << "\""
|
||||
- << " Generator, CMake Version "
|
||||
- << cmVersion::GetMajorVersion() << "."
|
||||
- << cmVersion::GetMinorVersion() << "\n\n";
|
||||
+ << " Generator, CMake\n\n";
|
||||
}
|
||||
|
||||
void cmGlobalNinjaGenerator::AddDependencyToAll(cmTarget* target)
|
||||
Index: cmake-3.4.3/Source/cmLocalUnixMakefileGenerator3.cxx
|
||||
===================================================================
|
||||
--- cmake-3.4.3.orig/Source/cmLocalUnixMakefileGenerator3.cxx
|
||||
+++ cmake-3.4.3/Source/cmLocalUnixMakefileGenerator3.cxx
|
||||
@@ -2111,9 +2111,7 @@ void cmLocalUnixMakefileGenerator3::Writ
|
||||
os
|
||||
<< "# CMAKE generated file: DO NOT EDIT!\n"
|
||||
<< "# Generated by \"" << this->GlobalGenerator->GetName() << "\""
|
||||
- << " Generator, CMake Version "
|
||||
- << cmVersion::GetMajorVersion() << "."
|
||||
- << cmVersion::GetMinorVersion() << "\n\n";
|
||||
+ << " Generator, CMake\n\n";
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 18 09:00:40 UTC 2016 - olaf@aepfle.de
|
||||
|
||||
- Remove cmake version from generated files
|
||||
cmake-version-in-generated-files.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 21:56:25 UTC 2016 - foss@grueninger.de
|
||||
|
||||
|
@ -35,6 +35,8 @@ Patch2: cmake-fix-ruby-test.patch
|
||||
Patch4: form.patch
|
||||
# PATCH-FIX-UPSTREAM system-libs.patch -- allow choosing between bundled and system jsoncpp & form libs
|
||||
Patch5: system-libs.patch
|
||||
# PATCH-FIX-SUSE cmake-version-in-generated-files.patch -- version number to be found in OBS
|
||||
Patch6: cmake-version-in-generated-files.patch
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
@ -64,6 +66,7 @@ echo "`grep %{name}-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOU
|
||||
%patch2 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
%build
|
||||
export CXXFLAGS="%{optflags}"
|
||||
|
Loading…
Reference in New Issue
Block a user