SHA256
3
0
forked from pool/cmake

Accepting request 596970 from home:frispete:gcc

- allow build with curl libs from older distributions
- refresh patches

- Cleanup spec file with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/596970
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=320
This commit is contained in:
Simon Lees 2018-04-16 10:53:57 +00:00 committed by Git OBS Bridge
parent 6982a704d6
commit 27bfbd96de
5 changed files with 42 additions and 28 deletions

View File

@ -1,8 +1,8 @@
Index: cmake-3.10.2/Modules/CMakeCCompilerId.c.in Index: b/Modules/CMakeCCompilerId.c.in
=================================================================== ===================================================================
--- cmake-3.10.2.orig/Modules/CMakeCCompilerId.c.in --- a/Modules/CMakeCCompilerId.c.in
+++ cmake-3.10.2/Modules/CMakeCCompilerId.c.in +++ b/Modules/CMakeCCompilerId.c.in
@@ -39,6 +39,8 @@ char const *info_cray = "INFO" ":" "comp @@ -40,6 +40,8 @@ char const *info_cray = "INFO" ":" "comp
# else # else
# define C_DIALECT # define C_DIALECT
# endif # endif
@ -11,21 +11,21 @@ Index: cmake-3.10.2/Modules/CMakeCCompilerId.c.in
#elif __STDC_VERSION__ >= 201000L #elif __STDC_VERSION__ >= 201000L
# define C_DIALECT "11" # define C_DIALECT "11"
#elif __STDC_VERSION__ >= 199901L #elif __STDC_VERSION__ >= 199901L
Index: cmake-3.10.2/Modules/Compiler/GNU-C.cmake Index: b/Modules/Compiler/GNU-C.cmake
=================================================================== ===================================================================
--- cmake-3.10.2.orig/Modules/Compiler/GNU-C.cmake --- a/Modules/Compiler/GNU-C.cmake
+++ cmake-3.10.2/Modules/Compiler/GNU-C.cmake +++ b/Modules/Compiler/GNU-C.cmake
@@ -22,4 +22,4 @@ elseif (NOT CMAKE_C_COMPILER_VERSION VER @@ -22,4 +22,4 @@ elseif (NOT CMAKE_C_COMPILER_VERSION VER
set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu1x") set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu1x")
endif() endif()
-__compiler_check_default_language_standard(C 3.4 90 5.0 11) -__compiler_check_default_language_standard(C 3.4 90 5.0 11)
+__compiler_check_default_language_standard(C 3.4 90 5.0 11 8.0 17) +__compiler_check_default_language_standard(C 3.4 90 5.0 11 8.0 17)
Index: cmake-3.10.2/Source/cmLocalGenerator.cxx Index: b/Source/cmLocalGenerator.cxx
=================================================================== ===================================================================
--- cmake-3.10.2.orig/Source/cmLocalGenerator.cxx --- a/Source/cmLocalGenerator.cxx
+++ cmake-3.10.2/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx
@@ -1575,6 +1575,7 @@ void cmLocalGenerator::AddCompilerRequir @@ -1566,6 +1566,7 @@ void cmLocalGenerator::AddCompilerRequir
langStdMap["CXX"].push_back("11"); langStdMap["CXX"].push_back("11");
langStdMap["CXX"].push_back("98"); langStdMap["CXX"].push_back("98");
@ -33,11 +33,11 @@ Index: cmake-3.10.2/Source/cmLocalGenerator.cxx
langStdMap["C"].push_back("11"); langStdMap["C"].push_back("11");
langStdMap["C"].push_back("99"); langStdMap["C"].push_back("99");
langStdMap["C"].push_back("90"); langStdMap["C"].push_back("90");
Index: cmake-3.10.2/Source/cmMakefile.cxx Index: b/Source/cmMakefile.cxx
=================================================================== ===================================================================
--- cmake-3.10.2.orig/Source/cmMakefile.cxx --- a/Source/cmMakefile.cxx
+++ cmake-3.10.2/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx
@@ -4077,7 +4077,7 @@ static const char* const CXX_FEATURES[] @@ -4161,7 +4161,7 @@ static const char* const CXX_FEATURES[]
FEATURE_STRING) }; FEATURE_STRING) };
#undef FEATURE_STRING #undef FEATURE_STRING
@ -46,10 +46,10 @@ Index: cmake-3.10.2/Source/cmMakefile.cxx
static const char* const CXX_STANDARDS[] = { "98", "11", "14", "17" }; static const char* const CXX_STANDARDS[] = { "98", "11", "14", "17" };
bool cmMakefile::AddRequiredTargetFeature(cmTarget* target, bool cmMakefile::AddRequiredTargetFeature(cmTarget* target,
Index: cmake-3.10.2/Tests/CompileFeatures/CMakeLists.txt Index: b/Tests/CompileFeatures/CMakeLists.txt
=================================================================== ===================================================================
--- cmake-3.10.2.orig/Tests/CompileFeatures/CMakeLists.txt --- a/Tests/CompileFeatures/CMakeLists.txt
+++ cmake-3.10.2/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt
@@ -214,6 +214,7 @@ if (C_expected_features) @@ -214,6 +214,7 @@ if (C_expected_features)
if (std_flag_idx EQUAL -1) if (std_flag_idx EQUAL -1)
add_executable(default_dialect_C default_dialect.c) add_executable(default_dialect_C default_dialect.c)
@ -58,10 +58,10 @@ Index: cmake-3.10.2/Tests/CompileFeatures/CMakeLists.txt
DEFAULT_C11=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},11> DEFAULT_C11=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},11>
DEFAULT_C99=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},99> DEFAULT_C99=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},99>
DEFAULT_C90=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},90> DEFAULT_C90=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},90>
Index: cmake-3.10.2/Tests/CompileFeatures/default_dialect.c Index: b/Tests/CompileFeatures/default_dialect.c
=================================================================== ===================================================================
--- cmake-3.10.2.orig/Tests/CompileFeatures/default_dialect.c --- a/Tests/CompileFeatures/default_dialect.c
+++ cmake-3.10.2/Tests/CompileFeatures/default_dialect.c +++ b/Tests/CompileFeatures/default_dialect.c
@@ -1,5 +1,9 @@ @@ -1,5 +1,9 @@
-#if DEFAULT_C11 -#if DEFAULT_C11

View File

@ -1,6 +1,8 @@
--- a/Modules/FindRuby.cmake 2016-11-15 23:00:54.832228081 +0100 Index: b/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake 2016-11-15 23:01:55.201700739 +0100 ===================================================================
@@ -107,7 +107,7 @@ --- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -110,7 +110,7 @@ if(RUBY_EXECUTABLE AND NOT RUBY_VERSIO
_RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR) _RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR)
# vendor_ruby available ? # vendor_ruby available ?

View File

@ -1,7 +1,13 @@
-------------------------------------------------------------------
Mon Apr 16 10:19:27 UTC 2018 - hpj@urpla.net
- allow build with curl libs from older distributions
- refresh patches
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 4 10:46:49 UTC 2018 - mpluskal@suse.com Wed Apr 4 10:46:49 UTC 2018 - mpluskal@suse.com
- Clenup spec file with spec-cleaner - Cleanup spec file with spec-cleaner
- Drop conditions for building on Leap - Drop conditions for building on Leap
------------------------------------------------------------------- -------------------------------------------------------------------

View File

@ -44,7 +44,11 @@ BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libarchive-devel >= 3.0.2 BuildRequires: libarchive-devel >= 3.0.2
BuildRequires: libbz2-devel BuildRequires: libbz2-devel
%if 0%{?suse_version} >= 1330
BuildRequires: libcurl-mini-devel BuildRequires: libcurl-mini-devel
%else
BuildRequires: libcurl-devel
%endif
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
BuildRequires: libuv-devel BuildRequires: libuv-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel

View File

@ -1,6 +1,8 @@
--- cmake-3.5.0/bootstrap.old Index: b/bootstrap
+++ cmake-3.5.0/bootstrap ===================================================================
@@ -724,10 +724,10 @@ --- a/bootstrap
+++ b/bootstrap
@@ -803,10 +803,10 @@ while test $# != 0; do
--init=*) cmake_init_file=`cmake_arg "$1"` ;; --init=*) cmake_init_file=`cmake_arg "$1"` ;;
--system-libs) cmake_bootstrap_system_libs="${cmake_bootstrap_system_libs} -DCMAKE_USE_SYSTEM_LIBRARIES=1" ;; --system-libs) cmake_bootstrap_system_libs="${cmake_bootstrap_system_libs} -DCMAKE_USE_SYSTEM_LIBRARIES=1" ;;
--no-system-libs) cmake_bootstrap_system_libs="${cmake_bootstrap_system_libs} -DCMAKE_USE_SYSTEM_LIBRARIES=0" ;; --no-system-libs) cmake_bootstrap_system_libs="${cmake_bootstrap_system_libs} -DCMAKE_USE_SYSTEM_LIBRARIES=0" ;;