cmake: bump version to 3.15.3
PATCH v3 1/2 cmake: bump version to 3.15.3
Remove FindLibUV patch which is now upstream.
Resync/reformat rename cmake rootfile patch for 3.15.3 with git format-patch.
---
Changes v2 -> v3:
- split minimum cmake off from cmake version bump
Changes v1 -> v2:
- Set cmake version min to 3.10.
---
...patch => 0001-rename-cmake-rootfile.patch} | 32 +++++++++++++------
...k-uv-version-h-for-version-detection.patch | 32 -------------------
package/cmake/cmake.hash | 6 ++--
package/cmake/cmake.mk | 4 +--
4 files changed, 28 insertions(+), 46 deletions(-)
rename package/cmake/{0001-rename_cmake_rootfile.patch => 0001-rename-cmake-rootfile.patch} (50%)
delete mode 100644 package/cmake/0002-FindLibUV-Also-check-uv-version-h-for-version-detection.patchpackage/cmake/0001-rename-cmake-rootfile.patch renamed from package/cmake/0001-rename_cmake_rootfile.patch +23 -9
@@ -1,3 +1,8 @@ +From f7291b1decd24a4e9530f98d7723fb55f38223ea Mon Sep 17 00:00:00 2001 +From: Davide Viti <[email protected]> +Date: Thu, 14 Jul 2016 10:14:59 +0100 +Subject: [PATCH] rename cmake rootfile + ctest fails on the target, because it cannot find CMake.cmake inside CMAKE_DATA_DIR (typically set to "/usr/share/cmake-3.0"): all *.cmake files are removed at build time via the target-finalize rule.
@@ -6,24 +11,33 @@ This buildroot-specific patch makes sure ctest looks also for "Modules/CMake.cmake.ctest" before complaining [Vincent: tweak patch for 3.6.3] +[James: tweak patch for 3.15.3] Signed-off-by: Davide Viti <[email protected]> Signed-off-by: Vicente Olivert Riera <[email protected]> +Signed-off-by: James Hilliard <[email protected]> +--- + Source/cmake.cxx | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) -diff -rup a/Source/cmake.cxx b/Source/cmake.cxx ---- a/Source/cmake.cxx 2016-07-07 15:47:27.000000000 +0100 -+++ b/Source/cmake.cxx 2016-07-14 10:14:59.914265515 +0100 -@@ -771,7 +771,12 @@ int cmake::AddCMakePaths() - "Path to cpack program executable.", cmState::INTERNAL); +diff --git a/Source/cmake.cxx b/Source/cmake.cxx +index 3772f09985..c317e4af38 100644 +--- a/Source/cmake.cxx ++++ b/Source/cmake.cxx +@@ -1009,7 +1009,12 @@ int cmake::AddCMakePaths() + "Path to cpack program executable.", cmStateEnums::INTERNAL); #endif if (!cmSystemTools::FileExists( -- (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake").c_str())) { -+ (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake").c_str()) && -+ !cmSystemTools::FileExists( -+ (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest").c_str() +- (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake"))) { ++ (cmSystemTools::GetCMakeRoot() + "/Modules/CMake.cmake")) && ++ !cmSystemTools::FileExists( ++ (cmSystemTools::GetCMakeRoot()+"/Modules/CMake.cmake.ctest") + ) + ) + { // couldn't find modules cmSystemTools::Error( "Could not find CMAKE_ROOT !!!\n" +-- +2.20.1 +
package/cmake/0002-FindLibUV-Also-check-uv-version-h-for-version-detection.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 92c4b3d900a24512967a960f108d985c819fdf00 Mon Sep 17 00:00:00 2001 -From: Raphael Kubo da Costa <[email protected]> -Date: Sat, 23 Jun 2018 20:30:07 +0200 -Subject: [PATCH] FindLibUV: Also check uv/version.h for version detection - -Starting with libuv 1.21.0, libuv's headers were moved into a uv/ directory. -Make FindLibUV aware of the file's new location for configuration to work. - -Upstream change: https://github.com/libuv/libuv/pull/1429 - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieve from: https://gitlab.kitware.com/cmake/cmake/merge_requests/2169] ---- - Source/Modules/FindLibUV.cmake | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/Source/Modules/FindLibUV.cmake b/Source/Modules/FindLibUV.cmake -index ba13d75f8b..0554d62c23 100644 ---- a/Source/Modules/FindLibUV.cmake -+++ b/Source/Modules/FindLibUV.cmake -@@ -63,6 +63,8 @@ mark_as_advanced(LibUV_INCLUDE_DIR) - set(_LibUV_H_REGEX "#[ \t]*define[ \t]+UV_VERSION_(MAJOR|MINOR|PATCH)[ \t]+[0-9]+") - if(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv-version.h") - file(STRINGS "${LibUV_INCLUDE_DIR}/uv-version.h" _LibUV_H REGEX "${_LibUV_H_REGEX}") -+elseif(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv/version.h") -+ file(STRINGS "${LibUV_INCLUDE_DIR}/uv/version.h" _LibUV_H REGEX "${_LibUV_H_REGEX}") - elseif(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv.h") - file(STRINGS "${LibUV_INCLUDE_DIR}/uv.h" _LibUV_H REGEX "${_LibUV_H_REGEX}") - else() --- -2.16.4 -
package/cmake/cmake.hash +3 -3
@@ -1,5 +1,5 @@ -# From http://www.cmake.org/files/v3.8/cmake-3.8.2-SHA-256.txt -sha256 da3072794eb4c09f2d782fcee043847b99bb4cf8d4573978d9b2024214d6e92d cmake-3.8.2.tar.gz +# From https://cmake.org/files/v3.15/cmake-3.15.3-SHA-256.txt +sha256 13958243a01365b05652fa01b21d40fa834f70a9e30efa69c02604e64f58b8f5 cmake-3.15.3.tar.gz # Locally calculated -sha256 af3030e1bf1af2f534430fdfe3cfc5a617966648a2a7f0c06a631adc92be1e5f Copyright.txt +sha256 dc628fb936a5d229296d42083f9a8218aa32204c016919e784404c9ec58776e9 Copyright.txt
package/cmake/cmake.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -CMAKE_VERSION_MAJOR = 3.8 -CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).2 +CMAKE_VERSION_MAJOR = 3.15 +CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).3 CMAKE_SITE = https://cmake.org/files/v$(CMAKE_VERSION_MAJOR) CMAKE_LICENSE = BSD-3-Clause CMAKE_LICENSE_FILES = Copyright.txt
Signature · 1 line
2.20.1
PATCH v3 2/2 support/dependencies: set cmake version min to 3.10
This is required by wpewebkit and webkitgtk.
--- support/dependencies/check-host-cmake.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
support/dependencies/check-host-cmake.mk +2 -2
@@ -1,9 +1,9 @@ -# Set this to either 3.8 or higher, depending on the highest minimum +# Set this to either 3.10 or higher, depending on the highest minimum # version required by any of the packages bundled in Buildroot. If a # package is bumped or a new one added, and it requires a higher # version, our cmake infra will catch it and build its own. # -BR2_CMAKE_VERSION_MIN = 3.8 +BR2_CMAKE_VERSION_MIN = 3.10 BR2_CMAKE_CANDIDATES ?= cmake cmake3 BR2_CMAKE ?= $(call suitable-host-package,cmake,\
Signature · 1 line
2.20.1
PATCH v3 2/2 support/dependencies: set cmake version min to 3.10
James, All,
On 2019-10-12 07:13 -0600, James Hilliard spake thusly:
Quoted 1 line
This is required by wpewebkit and webkitgtk.
Maybe, but as my pro alter-ego already pointed out [0], cmake 3.10 and above require a C++ compiler, which supports the emplace_hint metchod, which is not always availble on the distributions Buildroot is supposed to support.
Which means that, by bumping the cmake requirement to 3.10, all cmake packages will have to depend on BR2_HOST_GCC_AT_LEAST_4_8 (or 4.9 or what?).
I am not saying we do not want this, but the bump should not be lightly applied. It has consequences.
[0] http://lists.busybox.net/pipermail/buildroot/2019-October/261264.html
Regards,
Yann E. MORIN.
Quoted 29 lines
Signed-off-by James Hilliard <[email protected]>Reviewed-by Adrian Perez de Castro <[email protected]>--- support/dependencies/check-host-cmake.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)support/dependencies/check-host-cmake.mk +2
-2@@ -1,9 +1,9 @@ -# Set this to either 3.8 or higher, depending on the highest minimum +# Set this to either 3.10 or higher, depending on the highest minimum # version required by any of the packages bundled in Buildroot. If a # package is bumped or a new one added, and it requires a higher # version, our cmake infra will catch it and build its own. # -BR2_CMAKE_VERSION_MIN = 3.8 +BR2_CMAKE_VERSION_MIN = 3.10 BR2_CMAKE_CANDIDATES ?= cmake cmake3 BR2_CMAKE ?= $(call suitable-host-package,cmake,\Signature · 6 lines
2.20.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v3 2/2 support/dependencies: set cmake version min to 3.10
Quoted 11 lines · Yann E. MORIN
James, All,
On 2019-10-12 07:13 -0600, James Hilliard spake thusly:
Quoted 1 line
This is required by wpewebkit and webkitgtk.
Maybe, but as my pro alter-ego already pointed out [0], cmake 3.10 and above require a C++ compiler, which supports the
emplace_hintmetchod, which is not always availble on the distributions Buildroot is supposed to support.
Quoted 6 lines
Which means that, by bumping the cmake requirement to 3.10, all cmake packages will have to depend on
BR2_HOST_GCC_AT_LEAST_4_8(or 4.9 or what?).I am not saying we do not want this, but the bump should not be lightly applied. It has consequences.
Since we have now bumped the requirements can this be merged as is?
Quoted 43 lines
[0] http://lists.busybox.net/pipermail/buildroot/2019-October/261264.html
Regards,
Yann E. MORIN.Quoted 25 lines
Signed-off-by James Hilliard <[email protected]>Reviewed-by Adrian Perez de Castro <[email protected]>--- support/dependencies/check-host-cmake.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)support/dependencies/check-host-cmake.mk +2
-3@@ -1,9 +1,9 @@ -# Set this to either 3.8 or higher, depending on the highest minimum +# Set this to either 3.10 or higher, depending on the highest minimum # version required by any of the packages bundled in Buildroot. If a # package is bumped or a new one added, and it requires a higher # version, our cmake infra will catch it and build its own. # -BR2_CMAKE_VERSION_MIN = 3.8 +BR2_CMAKE_VERSION_MIN = 3.10 BR2_CMAKE_CANDIDATES ?= cmake cmake3 BR2_CMAKE ?= $(call suitable-host-package,cmake,\ --2.20.1
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot--
.-----------------.--------------------.------------------.--------------------.| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
PATCH v3 2/2 support/dependencies: set cmake version min to 3.10
James, All,
On 2019-10-29 19:37 -0400, James Hilliard spake thusly:
Quoted 3 lines · Yann E. MORIN
Quoted 2 lines
On 2019-10-12 07:13 -0600, James Hilliard spake thusly:
Quoted 1 line
This is required by wpewebkit and webkitgtk.
[--SNIP--]
Quoted 3 lines
Quoted 2 lines
I am not saying we do not want this, but the bump should not be lightly applied. It has consequences.
Since we have now bumped the requirements can this be merged as is?
As far as I know, this has been applied already:
commit d4773b610a40be1d3ac7d793033abaf4eb2491ed
Author: James Hilliard <[email protected]>
AuthorDate: Sat Oct 12 07:13:04 2019 -0600
Commit: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
CommitDate: Mon Oct 28 23:01:47 2019 +0100
support/dependencies: set cmake version min to 3.10
This is required by wpewebkit and webkitgtk.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v3 2/2 support/dependencies: set cmake version min to 3.10
In reply to James HilliardQuoted 1 line · James Hilliard
Since we have now bumped the requirements can this be merged as is?
I merged d4773b610a40 on Monday. I replied to the v6 thread, not this thread,
that's possibly why you missed it. I'm sorry I was too lazy to reply to this thread too :-)
Regards,
Arnout