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
+++ cmake-3.10.2/Modules/CMakeCCompilerId.c.in
@@ -39,6 +39,8 @@ char const *info_cray = "INFO" ":" "comp
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -40,6 +40,8 @@ char const *info_cray = "INFO" ":" "comp
# else
# define C_DIALECT
# endif
@ -11,21 +11,21 @@ Index: cmake-3.10.2/Modules/CMakeCCompilerId.c.in
#elif __STDC_VERSION__ >= 201000L
# define C_DIALECT "11"
#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
+++ cmake-3.10.2/Modules/Compiler/GNU-C.cmake
--- a/Modules/Compiler/GNU-C.cmake
+++ b/Modules/Compiler/GNU-C.cmake
@@ -22,4 +22,4 @@ elseif (NOT CMAKE_C_COMPILER_VERSION VER
set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu1x")
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 8.0 17)
Index: cmake-3.10.2/Source/cmLocalGenerator.cxx
Index: b/Source/cmLocalGenerator.cxx
===================================================================
--- cmake-3.10.2.orig/Source/cmLocalGenerator.cxx
+++ cmake-3.10.2/Source/cmLocalGenerator.cxx
@@ -1575,6 +1575,7 @@ void cmLocalGenerator::AddCompilerRequir
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1566,6 +1566,7 @@ void cmLocalGenerator::AddCompilerRequir
langStdMap["CXX"].push_back("11");
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("99");
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
+++ cmake-3.10.2/Source/cmMakefile.cxx
@@ -4077,7 +4077,7 @@ static const char* const CXX_FEATURES[]
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4161,7 +4161,7 @@ static const char* const CXX_FEATURES[]
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" };
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
+++ cmake-3.10.2/Tests/CompileFeatures/CMakeLists.txt
--- a/Tests/CompileFeatures/CMakeLists.txt
+++ b/Tests/CompileFeatures/CMakeLists.txt
@@ -214,6 +214,7 @@ if (C_expected_features)
if (std_flag_idx EQUAL -1)
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_C99=$<EQUAL:${CMAKE_C_STANDARD_DEFAULT},99>
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
+++ cmake-3.10.2/Tests/CompileFeatures/default_dialect.c
--- a/Tests/CompileFeatures/default_dialect.c
+++ b/Tests/CompileFeatures/default_dialect.c
@@ -1,5 +1,9 @@
-#if DEFAULT_C11

View File

@ -1,6 +1,8 @@
--- a/Modules/FindRuby.cmake 2016-11-15 23:00:54.832228081 +0100
+++ b/Modules/FindRuby.cmake 2016-11-15 23:01:55.201700739 +0100
@@ -107,7 +107,7 @@
Index: b/Modules/FindRuby.cmake
===================================================================
--- 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)
# 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
- Clenup spec file with spec-cleaner
- Cleanup spec file with spec-cleaner
- Drop conditions for building on Leap
-------------------------------------------------------------------

View File

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

View File

@ -1,6 +1,8 @@
--- cmake-3.5.0/bootstrap.old
+++ cmake-3.5.0/bootstrap
@@ -724,10 +724,10 @@
Index: b/bootstrap
===================================================================
--- a/bootstrap
+++ b/bootstrap
@@ -803,10 +803,10 @@ while test $# != 0; do
--init=*) cmake_init_file=`cmake_arg "$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" ;;