]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake,make-dist: bump up boost version to 1.67 21572/head
authorKefu Chai <kchai@redhat.com>
Wed, 18 Apr 2018 04:18:58 +0000 (12:18 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 21 Apr 2018 01:02:28 +0000 (09:02 +0800)
* to pick up the fix of https://svn.boost.org/trac10/ticket/11622
* also the boost::python's library name now includes the version suffix
  of python version, so update BuildBoost.cmake accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildBoost.cmake
make-dist
src/librados/librados_asio.h

index 3791b57123c7d2653594450a0c6ee8d78f09c6e6..819a9b74471362366730eae047b59d433b0b05ff 100644 (file)
@@ -133,14 +133,14 @@ function(do_build_boost version)
     check_boost_version("${PROJECT_SOURCE_DIR}/src/boost" ${version})
     set(source_dir
       SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/boost")
-  elseif(version VERSION_GREATER 1.66)
+  elseif(version VERSION_GREATER 1.67)
     message(FATAL_ERROR "Unknown BOOST_REQUESTED_VERSION: ${version}")
   else()
     message(STATUS "boost will be downloaded...")
     # NOTE: If you change this version number make sure the package is available
     # at the three URLs below (may involve uploading to download.ceph.com)
-    set(boost_version 1.66.0)
-    set(boost_sha256 5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9)
+    set(boost_version 1.67.0)
+    set(boost_sha256 2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba)
     string(REPLACE "." "_" boost_version_underscore ${boost_version} )
     set(boost_url 
       https://dl.bintray.com/boostorg/release/${boost_version}/source/boost_${boost_version_underscore}.tar.bz2)
@@ -202,8 +202,8 @@ macro(build_boost version)
       add_library(Boost::${c} SHARED IMPORTED)
     endif()
     add_dependencies(Boost::${c} Boost)
-    if(c STREQUAL python AND PYTHON_VERSION_MAJOR EQUAL 3)
-      set(buildid 3)
+    if(c STREQUAL python)
+      set(buildid "${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
     else()
       set(buildid "")
     endif()
index b0083882fcef9a3ec8ae9d25efb8af530a9e91ac..eb9aa7b0f2bf36150c0a5a5d72f3c1881e5f73ec 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -130,8 +130,8 @@ ln -s . $outfile
 tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec $outfile/alpine/APKBUILD
 # NOTE: If you change this version number make sure the package is available
 # at the three URLs referenced below (may involve uploading to download.ceph.com)
-boost_version=1.66.0
-download_boost $boost_version 5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9 \
+boost_version=1.67.0
+download_boost $boost_version 2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba \
                https://dl.bintray.com/boostorg/release/$boost_version/source \
                https://downloads.sourceforge.net/project/boost/boost/$boost_version \
                https://download.ceph.com/qa
index 8aeb096966a1df54e9532e7ddeaf4a70e1c68272..4764791c8a3792f64420c3685c14cff06325bf36 100644 (file)
@@ -78,7 +78,7 @@ struct bound_completion_handler : public invoker<Result> {
     // static check for CompletionHandler concept (must be CopyConstructible and
     // callable with no arguments)
     using namespace boost::asio;
-    BOOST_ASIO_COMPLETION_HANDLER_CHECK(bound_completion_handler, *this) type_check;
+    BOOST_ASIO_LEGACY_COMPLETION_HANDLER_CHECK(bound_completion_handler, *this) type_check;
   }
 
   /// Invoke the completion handler with our bound arguments