Skip to contentSkip to conversation

cmake: Update 3.10.3 -> 3.11.4

PATCH New Otavio Salvador 1 participant 1 message Jul 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmake: Update 3.10.3 -> 3.11.4

This updates CMake to the current stable release and drop many backported patches in the process.

---

 ...ative_3.10.3.bb => cmake-native_3.11.4.bb} |   4 +-
 meta/recipes-devtools/cmake/cmake.inc         |  21 +-
 ...1.66.0-dependency-and-release-update.patch |  52 ---
 ...correct-alphabetisation-of-headers-l.patch |  29 --
 ...1-cmake-Prevent-the-detection-of-Qt5.patch | 122 ++++++++
 ...ent-Architecture-and-Address-Model-t.patch | 132 --------
 ...-OpenEmbedded-Qt4-tool-binary-names.patch} |  15 +-
 ...if-system-Qt-installation-is-broken.patch} |  13 +-
 ...-for-upstream-packaged-libs-next-to-.patch |  31 --
 ...t2fs-ext2_fs.h-by-cmake-s-internal-.patch} |  18 +-
 ...te-imported-targets-for-future-Boost.patch |  35 ---
 ...indBoost-support-OPTIONAL_COMPONENTS.patch |  42 ---
 ...pport-for-Boost-1.67-with-Python-ver.patch | 296 ------------------
 .../cmake-Prevent-the-detection-of-Qt5.patch  | 215 -------------
 .../{cmake_3.10.3.bb => cmake_3.11.4.bb}      |   0
 15 files changed, 163 insertions(+), 862 deletions(-)
 rename meta/recipes-devtools/cmake/{cmake-native_3.10.3.bb => cmake-native_3.11.4.bb} (90%)
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0001-FindBoost-Boost-1.66.0-dependency-and-release-update.patch
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0001-FindBoost-Fix-incorrect-alphabetisation-of-headers-l.patch
 create mode 100644 meta/recipes-devtools/cmake/cmake/0001-cmake-Prevent-the-detection-of-Qt5.patch
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0002-FindBoost-Implement-Architecture-and-Address-Model-t.patch
 rename meta/recipes-devtools/cmake/cmake/{support-oe-qt4-tools-names.patch => 0002-cmake-support-OpenEmbedded-Qt4-tool-binary-names.patch} (87%)
 rename meta/recipes-devtools/cmake/cmake/{qt4-fail-silent.patch => 0003-Fail-silently-if-system-Qt-installation-is-broken.patch} (84%)
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0003-FindBoost-Search-for-upstream-packaged-libs-next-to-.patch
 rename meta/recipes-devtools/cmake/cmake/{cmlibarchive-disable-ext2fs.patch => 0004-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal-.patch} (58%)
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0005-FindBoost-support-OPTIONAL_COMPONENTS.patch
 delete mode 100644 meta/recipes-devtools/cmake/cmake/0006-FindBoost-Add-support-for-Boost-1.67-with-Python-ver.patch
 delete mode 100644 meta/recipes-devtools/cmake/cmake/cmake-Prevent-the-detection-of-Qt5.patch
 rename meta/recipes-devtools/cmake/{cmake_3.10.3.bb => cmake_3.11.4.bb} (100%)
meta/recipes-devtools/cmake/cmake-native_3.11.4.bb renamed from meta/recipes-devtools/cmake/cmake-native_3.10.3.bb +1 -3
similarity index 90%
rename from meta/recipes-devtools/cmake/cmake-native_3.10.3.bb
rename to meta/recipes-devtools/cmake/cmake-native_3.11.4.bb
index e55e8b1cf6..9f371e9b0c 100644
@@ -3,9 +3,7 @@ inherit native
 
 DEPENDS += "bzip2-replacement-native expat-native xz-native zlib-native curl-native"
 
-SRC_URI += "\
-    file://cmlibarchive-disable-ext2fs.patch \
-"
+SRC_URI += "file://0004-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal-.patch"
 
 B = "${WORKDIR}/build"
 do_configure[cleandirs] = "${B}"
meta/recipes-devtools/cmake/cmake.inc +7 -14
index 533db6ae86..436363e4e3 100644
@@ -6,26 +6,19 @@ HOMEPAGE = "http://www.cmake.org/"
 BUGTRACKER = "http://public.kitware.com/Bug/my_view_page.php"
 SECTION = "console/utils"
 LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://Copyright.txt;md5=79b5b78197c74d5c5f9c7ccadeee4e8c \
+LIC_FILES_CHKSUM = "file://Copyright.txt;md5=891b81f415fb25fbad03e41f87fd5dfb \
                     file://Source/cmake.h;md5=4494dee184212fc89c469c3acd555a14;beginline=1;endline=3 \
                     "
 
 CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
 
 SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
-           file://support-oe-qt4-tools-names.patch \
-           file://qt4-fail-silent.patch \
-           file://cmake-Prevent-the-detection-of-Qt5.patch \
-           file://0001-FindBoost-Boost-1.66.0-dependency-and-release-update.patch \
-           file://0001-FindBoost-Fix-incorrect-alphabetisation-of-headers-l.patch \
-           file://0002-FindBoost-Implement-Architecture-and-Address-Model-t.patch \
-           file://0003-FindBoost-Search-for-upstream-packaged-libs-next-to-.patch \
-           file://0004-FindBoost-Generate-imported-targets-for-future-Boost.patch \
-           file://0005-FindBoost-support-OPTIONAL_COMPONENTS.patch \
-           file://0006-FindBoost-Add-support-for-Boost-1.67-with-Python-ver.patch \
-           "
+           file://0001-cmake-Prevent-the-detection-of-Qt5.patch \
+           file://0002-cmake-support-OpenEmbedded-Qt4-tool-binary-names.patch \
+           file://0003-Fail-silently-if-system-Qt-installation-is-broken.patch \
+"
 
-SRC_URI[md5sum] = "1c38c67295ca696aeafd8c059d748b38"
-SRC_URI[sha256sum] = "0c3a1dcf0be03e40cf4f341dda79c96ffb6c35ae35f2f911845b72dab3559cf8"
+SRC_URI[md5sum] = "72e168b3bad2f9c34dcebbad7af56ff0"
+SRC_URI[sha256sum] = "8f864e9f78917de3e1483e256270daabc4a321741592c5b36af028e72bff87f5"
 
 UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
meta/recipes-devtools/cmake/cmake/0001-FindBoost-Boost-1.66.0-dependency-and-release-update.patch deleted +0 -52

52 lines not on this page · raw message

meta/recipes-devtools/cmake/cmake/0001-FindBoost-Fix-incorrect-alphabetisation-of-headers-l.patch deleted +0 -29
deleted file mode 100644
index b3a75206f7..0000000000
@@ -1,29 +0,0 @@
-From b1e9f67137733bc109d355450fcd06edda4784c5 Mon Sep 17 00:00:00 2001
-From: "Paul \"TBBle\" Hampson" <[email protected]>
-Date: Fri, 29 Dec 2017 20:07:31 +1100
-Subject: [PATCH 1/6] FindBoost: Fix incorrect alphabetisation of headers list
-
-Affects cmake < 3.11.0
-
-Upstream-Status: Backport
-[Yocto 12762]
-Signed-off-by: Armin Kuster <[email protected]>
-
----
- Modules/FindBoost.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: cmake-3.10.3/Modules/FindBoost.cmake
-===================================================================
---- cmake-3.10.3.orig/Modules/FindBoost.cmake
-+++ cmake-3.10.3/Modules/FindBoost.cmake
-@@ -831,8 +831,8 @@ function(_Boost_COMPONENT_HEADERS compon
-   set(_Boost_CONTAINER_HEADERS           "boost/container/container_fwd.hpp")
-   set(_Boost_CONTEXT_HEADERS             "boost/context/all.hpp")
-   set(_Boost_COROUTINE_HEADERS           "boost/coroutine/all.hpp")
--  set(_Boost_EXCEPTION_HEADERS           "boost/exception/exception.hpp")
-   set(_Boost_DATE_TIME_HEADERS           "boost/date_time/date.hpp")
-+  set(_Boost_EXCEPTION_HEADERS           "boost/exception/exception.hpp")
-   set(_Boost_FIBER_HEADERS               "boost/fiber/all.hpp")
-   set(_Boost_FILESYSTEM_HEADERS          "boost/filesystem/path.hpp")
-   set(_Boost_GRAPH_HEADERS               "boost/graph/adjacency_list.hpp")
meta/recipes-devtools/cmake/cmake/0001-cmake-Prevent-the-detection-of-Qt5.patch new file +122 -0

122 lines not on this page · raw message

meta/recipes-devtools/cmake/cmake/0002-FindBoost-Implement-Architecture-and-Address-Model-t.patch deleted +0 -132

132 lines not on this page · raw message

meta/recipes-devtools/cmake/cmake/0002-cmake-support-OpenEmbedded-Qt4-tool-binary-names.patch renamed from meta/recipes-devtools/cmake/cmake/support-oe-qt4-tools-names.patch +8 -7
similarity index 87%
rename from meta/recipes-devtools/cmake/cmake/support-oe-qt4-tools-names.patch
rename to meta/recipes-devtools/cmake/cmake/0002-cmake-support-OpenEmbedded-Qt4-tool-binary-names.patch
index 6841554763..acbe961c64 100644
@@ -1,7 +1,8 @@
-From 10b8b523869124d2fc8cd98d9e028c0bcffd61b1 Mon Sep 17 00:00:00 2001
+From 5fc9c33a7d6781008877b19dfdf0a526a50524f2 Mon Sep 17 00:00:00 2001
 From: Otavio Salvador <[email protected]>
 Date: Thu, 12 May 2011 15:36:03 +0000
-Subject: [PATCH 1/2] cmake: support OpenEmbedded Qt4 tool binary names
+Subject: [PATCH 2/4] cmake: support OpenEmbedded Qt4 tool binary names
+Organization: O.S. Systems Software LTDA.
 
 The FindQt4 module looks for Qt4 binaries to be able to gather the
 paths used for compilation and also to be using during other processes
@@ -18,16 +19,16 @@ The patch was slightly adapted in order to match cmake 3.2.2:
 Instead of find_program, _find_qt4_program is now used.
 
 Signed-off-by: Moritz Blume <[email protected]>
-
+Signed-off-by: Otavio Salvador <[email protected]>
 ---
  Modules/FindQt4.cmake | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
 
 diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
-index c67d0be..0cf169b 100644
+index 5a7eadb96..d48a5bfd1 100644
 --- a/Modules/FindQt4.cmake
 +++ b/Modules/FindQt4.cmake
-@@ -516,7 +516,7 @@ endfunction()
+@@ -517,7 +517,7 @@ endfunction()
  
  set(QT4_INSTALLED_VERSION_TOO_OLD FALSE)
  
@@ -36,7 +37,7 @@ index c67d0be..0cf169b 100644
  _qt4_find_qmake("${_QT4_QMAKE_NAMES}" QT_QMAKE_EXECUTABLE QTVERSION)
  
  if (QT_QMAKE_EXECUTABLE AND
-@@ -1142,12 +1142,12 @@ if (QT_QMAKE_EXECUTABLE AND
+@@ -1143,12 +1143,12 @@ if (QT_QMAKE_EXECUTABLE AND
    _find_qt4_program(QT_MOC_EXECUTABLE Qt4::moc moc-qt4 moc4 moc)
    _find_qt4_program(QT_UIC_EXECUTABLE Qt4::uic uic-qt4 uic4 uic)
    _find_qt4_program(QT_UIC3_EXECUTABLE Qt4::uic3 uic3)
@@ -54,5 +55,5 @@ index c67d0be..0cf169b 100644
    _find_qt4_program(QT_LINGUIST_EXECUTABLE Qt4::linguist linguist-qt4 linguist4 linguist)
  
 -- 
-2.7.4
+2.18.0
 
meta/recipes-devtools/cmake/cmake/0003-Fail-silently-if-system-Qt-installation-is-broken.patch renamed from meta/recipes-devtools/cmake/cmake/qt4-fail-silent.patch +9 -4
similarity index 84%
rename from meta/recipes-devtools/cmake/cmake/qt4-fail-silent.patch
rename to meta/recipes-devtools/cmake/cmake/0003-Fail-silently-if-system-Qt-installation-is-broken.patch
index 80fc277fa2..301da0221d 100644
@@ -1,4 +1,8 @@
-Fail silently if system Qt installation is broken
+From b30da754a32213b5a0b3698f88e1302e5b18518b Mon Sep 17 00:00:00 2001
+From: Otavio Salvador <[email protected]>
+Date: Thu, 5 Jul 2018 10:26:48 -0300
+Subject: [PATCH 3/4] Fail silently if system Qt installation is broken
+Organization: O.S. Systems Software LTDA.
 
 Fixes a regression in behaviour from 2.8.10 to 2.8.11 resulting in the
 following error if the system Qt installation is broken:
@@ -18,15 +22,16 @@ Another set_property was introduced which had to be included
 within the if(QT_QTCORE_FOUND) statement.
 
 Signed-off-by: Moritz Blume <[email protected]>
+Signed-off-by: Otavio Salvador <[email protected]>
 ---
  Modules/FindQt4.cmake | 39 ++++++++++++++++++++-------------------
  1 file changed, 20 insertions(+), 19 deletions(-)
 
 diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
-index 6704769..9048e35 100644
+index d48a5bfd1..e6f22fe9b 100644
 --- a/Modules/FindQt4.cmake
 +++ b/Modules/FindQt4.cmake
-@@ -1000,25 +1000,26 @@ if (QT_QMAKE_EXECUTABLE AND
+@@ -995,25 +995,26 @@ if (QT_QMAKE_EXECUTABLE AND
      endif()
    endmacro()
  
@@ -73,5 +78,5 @@ index 6704769..9048e35 100644
    foreach(QT_MODULE ${QT_MODULES})
      _QT4_ADJUST_LIB_VARS(${QT_MODULE})
 -- 
-1.9.1
+2.18.0
 
meta/recipes-devtools/cmake/cmake/0003-FindBoost-Search-for-upstream-packaged-libs-next-to-.patch deleted +0 -31
deleted file mode 100644
index a44fa3e366..0000000000
@@ -1,31 +0,0 @@
-From d56deff7d127b030739bd0034609d0046121d8cd Mon Sep 17 00:00:00 2001
-From: "Paul \"TBBle\" Hampson" <[email protected]>
-Date: Fri, 29 Dec 2017 22:38:36 +1100
-Subject: [PATCH 3/6] FindBoost: Search for upstream-packaged libs next to
- includes
-
-Upstream packages Boost binaries for Windows with the 'boost' directory
-(the INCLUDE_DIR) next to the lib-... directory (the LIBRARY_DIR).
-
-Affects cmake < 3.11.0
-
-Upstream-Status: Backport
-[Yocto 12762]
-Signed-off-by: Armin Kuster <[email protected]>
-
----
- Modules/FindBoost.cmake | 1 +
- 1 file changed, 1 insertion(+)
-
-Index: cmake-3.10.3/Modules/FindBoost.cmake
-===================================================================
---- cmake-3.10.3.orig/Modules/FindBoost.cmake
-+++ cmake-3.10.3/Modules/FindBoost.cmake
-@@ -1502,6 +1502,7 @@ foreach(c DEBUG RELEASE)
-       ${Boost_INCLUDE_DIR}/stage/lib
-       )
-     _Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS(_boost_LIBRARY_SEARCH_DIRS_${c} "${Boost_INCLUDE_DIR}/..")
-+    _Boost_UPDATE_WINDOWS_LIBRARY_SEARCH_DIRS_WITH_PREBUILT_PATHS(_boost_LIBRARY_SEARCH_DIRS_${c} "${Boost_INCLUDE_DIR}")
-     if( Boost_NO_SYSTEM_PATHS )
-       list(APPEND _boost_LIBRARY_SEARCH_DIRS_${c} NO_CMAKE_SYSTEM_PATH NO_SYSTEM_ENVIRONMENT_PATH)
-     else()
meta/recipes-devtools/cmake/cmake/0004-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal-.patch renamed from meta/recipes-devtools/cmake/cmake/cmlibarchive-disable-ext2fs.patch +16 -2
similarity index 58%
rename from meta/recipes-devtools/cmake/cmake/cmlibarchive-disable-ext2fs.patch
rename to meta/recipes-devtools/cmake/cmake/0004-Disable-use-of-ext2fs-ext2_fs.h-by-cmake-s-internal-.patch
index bf3671259e..91dea4cbba 100644
@@ -1,4 +1,9 @@
-Disable use of ext2fs/ext2_fs.h by cmake's internal libarchive copy
+From d9aa3f7c075dbd0db386995a44a2240ecdbb2c56 Mon Sep 17 00:00:00 2001
+From: Otavio Salvador <[email protected]>
+Date: Thu, 5 Jul 2018 10:28:04 -0300
+Subject: [PATCH 4/4] Disable use of ext2fs/ext2_fs.h by cmake's internal
+ libarchive copy
+Organization: O.S. Systems Software LTDA.
 
 We don't want to add a dependency on e2fsprogs-native for cmake-native,
 and we don't use CPack so just disable this functionality.
@@ -6,10 +11,16 @@ and we don't use CPack so just disable this functionality.
 Upstream-Status: Inappropriate [config]
 
 Signed-off-by: Paul Eggleton <[email protected]>
+Signed-off-by: Otavio Salvador <[email protected]>
+---
+ Utilities/cmlibarchive/CMakeLists.txt | 8 ++------
+ 1 file changed, 2 insertions(+), 6 deletions(-)
 
+diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
+index 206f3c6a5..642fb0dd9 100644
 --- a/Utilities/cmlibarchive/CMakeLists.txt
 +++ b/Utilities/cmlibarchive/CMakeLists.txt
-@@ -237,12 +237,8 @@ LA_CHECK_INCLUDE_FILE("copyfile.h" HAVE_COPYFILE_H)
+@@ -400,12 +400,8 @@ LA_CHECK_INCLUDE_FILE("copyfile.h" HAVE_COPYFILE_H)
  LA_CHECK_INCLUDE_FILE("direct.h" HAVE_DIRECT_H)
  LA_CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H)
  LA_CHECK_INCLUDE_FILE("errno.h" HAVE_ERRNO_H)
@@ -24,3 +35,6 @@ Signed-off-by: Paul Eggleton <[email protected]>
  LA_CHECK_INCLUDE_FILE("fcntl.h" HAVE_FCNTL_H)
  LA_CHECK_INCLUDE_FILE("grp.h" HAVE_GRP_H)
  LA_CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
+-- 
+2.18.0
+
meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch deleted +0 -35
deleted file mode 100644
index 8101e8f479..0000000000
@@ -1,35 +0,0 @@
-From 6297d6c7fd6f80dafe17c0aefeeb0439432aa4b0 Mon Sep 17 00:00:00 2001
-From: "Paul \"TBBle\" Hampson" <[email protected]>
-Date: Sat, 30 Dec 2017 16:00:29 +1100
-Subject: [PATCH 4/6] FindBoost: Generate imported targets for future Boost
- versions
-
-Per discussion on cmake/cmake#17575, this protection not particularly
-valuable, as the dependency information which the imported targets wrap
-is generated anyway.
-
-This removes a road-block for using `Boost_ADDITIONAL_VERSIONS` to
-support newly-released Boost versions pending a new CMake release.
-
-Affects cmake < 3.11.0
-
-Upstream-Status: Backport
-[Yocto 12762]
-Signed-off-by: Armin Kuster <[email protected]>
-
----
- Modules/FindBoost.cmake | 1 -
- 1 file changed, 1 deletion(-)
-
-Index: cmake-3.10.3/Modules/FindBoost.cmake
-===================================================================
---- cmake-3.10.3.orig/Modules/FindBoost.cmake
-+++ cmake-3.10.3/Modules/FindBoost.cmake
-@@ -799,7 +799,6 @@ function(_Boost_COMPONENT_DEPENDENCIES c
-     endif()
-     if(NOT Boost_VERSION VERSION_LESS 106700)
-       message(WARNING "New Boost version may have incorrect or missing dependencies and imported targets")
--      set(_Boost_IMPORTED_TARGETS FALSE)
-     endif()
-   endif()
- 
meta/recipes-devtools/cmake/cmake/0005-FindBoost-support-OPTIONAL_COMPONENTS.patch deleted +0 -42

42 lines not on this page · raw message

meta/recipes-devtools/cmake/cmake/0006-FindBoost-Add-support-for-Boost-1.67-with-Python-ver.patch deleted +0 -296

296 lines not on this page · raw message

meta/recipes-devtools/cmake/cmake/cmake-Prevent-the-detection-of-Qt5.patch deleted +0 -215

215 lines not on this page · raw message

meta/recipes-devtools/cmake/cmake_3.11.4.bb renamed from meta/recipes-devtools/cmake/cmake_3.10.3.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/cmake/cmake_3.10.3.bb
rename to meta/recipes-devtools/cmake/cmake_3.11.4.bb
Signature · 1 line
2.18.0