Skip to content

Commit

Permalink
tools/cmake: Update to 3.9.3
Browse files Browse the repository at this point in the history
Update CMake to 3.9.3
Remove FreeBSD patch (not needed)
Rearrage and update patches

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
  • Loading branch information
diizzyy authored and hauke committed Sep 30, 2017
1 parent 3adafda commit 839129b
Showing 7 changed files with 18 additions and 56 deletions.
6 changes: 3 additions & 3 deletions tools/cmake/Makefile
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=cmake
PKG_VERSION:=3.8.1
PKG_VERSION:=3.9.3

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://cmake.org/files/v3.8/ \
PKG_SOURCE_URL:=https://cmake.org/files/v3.9/ \
https://fossies.org/linux/misc/
PKG_HASH:=ce5d9161396e06501b00e52933783150a87c33080d4bdcef461b5b7fd24ac228
PKG_HASH:=8eaf75e1e932159aae98ab5e7491499545554be62a08cbcbc7c75c84b999f28a

HOST_BUILD_PARALLEL:=1
HOST_CONFIGURE_PARALLEL:=1
4 changes: 2 additions & 2 deletions tools/cmake/patches/100-disable_qt_tests.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -244,15 +244,6 @@ add_RunCMake_test(no_install_prefix)
@@ -246,15 +246,6 @@ add_RunCMake_test(no_install_prefix)
add_RunCMake_test(configure_file)
add_RunCMake_test(CTestTimeoutAfterMatch)

@@ -18,7 +18,7 @@
add_RunCMake_test(FindPkgConfig)
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -398,10 +398,6 @@ if(BUILD_TESTING)
@@ -403,10 +403,6 @@ if(BUILD_TESTING)

list(APPEND TEST_BUILD_DIRS ${CMake_TEST_INSTALL_PREFIX})

39 changes: 0 additions & 39 deletions tools/cmake/patches/110-freebsd-compat.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -17,16 +17,17 @@ Modify the cmcurl CMakeLists.txt to check for clock_gettime() in librt
and unconditionally link the rt library when the symbol is found.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
---
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -374,6 +374,10 @@ set(HAVE_LIBSSL OFF)
if(CMAKE_USE_OPENSSL)
find_package(OpenSSL)
if(OPENSSL_FOUND)
+ check_library_exists("rt" clock_gettime "" HAVE_LIBRT)
+ if(HAVE_LIBRT)
+ list(APPEND OPENSSL_LIBRARIES rt)
+ endif()
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
set(USE_OPENSSL ON)
set(HAVE_LIBCRYPTO ON)
@@ -471,6 +471,10 @@ if(CMAKE_USE_OPENSSL)
check_symbol_exists(RAND_status "${CURL_INCLUDES}" HAVE_RAND_STATUS)
check_symbol_exists(RAND_screen "${CURL_INCLUDES}" HAVE_RAND_SCREEN)
check_symbol_exists(RAND_egd "${CURL_INCLUDES}" HAVE_RAND_EGD)
+ check_library_exists("rt" clock_gettime "" HAVE_LIBRT)
+ if(HAVE_LIBRT)
+ list(APPEND OPENSSL_LIBRARIES rt)
+ endif()

# Optionally build with a specific CA cert bundle.
if(CURL_CA_BUNDLE)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/bootstrap
+++ b/bootstrap
@@ -1046,7 +1046,10 @@ int main(){ printf("1%c", (char)0x0a); r
@@ -1094,7 +1094,10 @@ int main(){ printf("1%c", (char)0x0a); r
' > "test.c"
cmake_original_make_flags="${cmake_make_flags}"
if [ "x${cmake_parallel_make}" != "x" ]; then

0 comments on commit 839129b

Please sign in to comment.