File tree Expand file tree Collapse file tree 7 files changed +33
-14
lines changed
Expand file tree Collapse file tree 7 files changed +33
-14
lines changed Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ if(WITH_SYSTEM_BOOST)
748748 if (BOOST_ROOT AND CMAKE_LIBRARY_ARCHITECTURE )
749749 set (BOOST_LIBRARYDIR "${BOOST_ROOT} /lib/${CMAKE_LIBRARY_ARCHITECTURE} " )
750750 endif ()
751- find_package (Boost 1.85 COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
751+ find_package (Boost 1.87 COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
752752 if (NOT ENABLE_SHARED)
753753 set_property (TARGET Boost::iostreams APPEND PROPERTY
754754 INTERFACE_LINK_LIBRARIES ZLIB::ZLIB)
@@ -762,7 +762,7 @@ else()
762762 set (BOOST_J ${DEFAULT_BOOST_J} CACHE STRING "max jobs for Boost build" ) # override w/-DBOOST_J=<n>
763763 set (Boost_USE_STATIC_LIBS ON )
764764 include (BuildBoost)
765- build_boost(1.85
765+ build_boost(1.87
766766 COMPONENTS ${BOOST_COMPONENTS} ${BOOST_HEADER_COMPONENTS} )
767767endif ()
768768include_directories (BEFORE SYSTEM ${Boost_INCLUDE_DIRS} )
Original file line number Diff line number Diff line change @@ -155,14 +155,14 @@ function(do_build_boost root_dir version)
155155 check_boost_version("${PROJECT_SOURCE_DIR} /src/boost" ${version} )
156156 set (source_dir
157157 SOURCE_DIR "${PROJECT_SOURCE_DIR} /src/boost" )
158- elseif (version VERSION_GREATER 1.85 )
158+ elseif (version VERSION_GREATER 1.87 )
159159 message (FATAL_ERROR "Unknown BOOST_REQUESTED_VERSION: ${version} " )
160160 else ()
161161 message (STATUS "boost will be downloaded..." )
162162 # NOTE: If you change this version number make sure the package is available
163163 # at the three URLs below (may involve uploading to download.ceph.com)
164- set (boost_version 1.85 .0)
165- set (boost_sha256 7009fe1faa1697476bdc7027703a2badb84e849b7b0baad5086b087b971f8617 )
164+ set (boost_version 1.87 .0)
165+ set (boost_sha256 af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89 )
166166 string (REPLACE "." "_" boost_version_underscore ${boost_version} )
167167 list (APPEND boost_url
168168 https://download.ceph.com/qa/boost_${boost_version_underscore} .tar.bz2
Original file line number Diff line number Diff line change @@ -1409,7 +1409,7 @@ function(_Boost_COMPONENT_DEPENDENCIES component _ret)
14091409 set (_Boost_THREAD_DEPENDENCIES chrono atomic)
14101410 set (_Boost_WAVE_DEPENDENCIES filesystem serialization thread chrono atomic)
14111411 set (_Boost_WSERIALIZATION_DEPENDENCIES serialization)
1412- if (Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.86 .0 AND NOT Boost_NO_WARN_NEW_VERSIONS)
1412+ if (Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.87 .0 AND NOT Boost_NO_WARN_NEW_VERSIONS)
14131413 message (WARNING "New Boost version may have incorrect or missing dependencies and imported targets" )
14141414 endif ()
14151415 endif ()
@@ -1684,7 +1684,7 @@ else()
16841684 # _Boost_COMPONENT_HEADERS. See the instructions at the top of
16851685 # _Boost_COMPONENT_DEPENDENCIES.
16861686 set (_Boost_KNOWN_VERSIONS ${Boost_ADDITIONAL_VERSIONS}
1687- "1.85.0" "1.85" "1.84.0" "1.84"
1687+ "1.87.0" "1.87" "1.86.0" "1.86" "1. 85.0" "1.85" "1.84.0" "1.84"
16881688 "1.83.0" "1.83" "1.82.0" "1.82" "1.81.0" "1.81" "1.80.0" "1.80" "1.79.0" "1.79"
16891689 "1.78.0" "1.78" "1.77.0" "1.77" "1.76.0" "1.76" "1.75.0" "1.75" "1.74.0" "1.74"
16901690 "1.73.0" "1.73" "1.72.0" "1.72" "1.71.0" "1.71" "1.70.0" "1.70" "1.69.0" "1.69"
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ function install_pkg_on_ubuntu {
141141 fi
142142}
143143
144- boost_ver=1.85
144+ boost_ver=1.87
145145
146146function clean_boost_on_ubuntu {
147147 ci_debug " Running clean_boost_on_ubuntu() in install-deps.sh"
@@ -193,7 +193,7 @@ function install_boost_on_ubuntu {
193193 cut -d' .' -f1,2)
194194 local codename=$1
195195 local project=libboost
196- local sha1=55f34507d322314fb0294629b7c0bb406de07aec
196+ local sha1=9ea1fb8bdad548a88004db87761f173aa50dcc85
197197 install_pkg_on_ubuntu \
198198 $project \
199199 $sha1 \
@@ -205,7 +205,9 @@ function install_boost_on_ubuntu {
205205 ceph-libboost-context${boost_ver} -dev \
206206 ceph-libboost-coroutine${boost_ver} -dev \
207207 ceph-libboost-date-time${boost_ver} -dev \
208+ ceph-libboost-exception${boost_ver} -dev \
208209 ceph-libboost-filesystem${boost_ver} -dev \
210+ ceph-libboost-graph${boost_ver} -dev \
209211 ceph-libboost-iostreams${boost_ver} -dev \
210212 ceph-libboost-locale${boost_ver} -dev \
211213 ceph-libboost-program-options${boost_ver} -dev \
Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ ln -s . $outfile
192192tar cvf $outfile .version.tar $outfile /src/.git_version $outfile /ceph.spec
193193# NOTE: If you change this version number make sure the package is available
194194# at the three URLs referenced below (may involve uploading to download.ceph.com)
195- boost_version=1.85 .0
196- download_boost $boost_version 7009fe1faa1697476bdc7027703a2badb84e849b7b0baad5086b087b971f8617 \
195+ boost_version=1.87 .0
196+ download_boost $boost_version af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89 \
197197 https://download.ceph.com/qa \
198198 https://archives.boost.io/release/$boost_version /source
199199download_liburing 2.5 456f5f882165630f0dc7b75e8fd53bd01a955d5d4720729b4323097e6e9f2a98 \
Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ endif()
115115
116116add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-ftemplate-depth-1024>)
117117
118+ # Because Boost can't be bothered to not include its own deprecated headers
119+ add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-DBOOST_ALLOW_DEPRECATED_HEADERS>)
120+
118121CHECK_CXX_COMPILER_FLAG("-Wpessimizing-move" COMPILER_SUPPORTS_PESSIMIZING_MOVE)
119122if (COMPILER_SUPPORTS_PESSIMIZING_MOVE)
120123 add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wpessimizing-move>)
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ sslDir="${depsToolsetDir}/openssl"
1616sslSrcDir=" ${depsSrcDir} /openssl"
1717
1818# For now, we'll keep the version number within the file path when not using git.
19- boostUrl=" https://download.ceph.com/qa/boost_1_85_0 .tar.bz2"
20- boostSha256Sum=" 7009fe1faa1697476bdc7027703a2badb84e849b7b0baad5086b087b971f8617 "
21- boostSrcDir=" ${depsSrcDir} /boost_1_85_0 "
19+ boostUrl=" https://download.ceph.com/qa/boost_1_87_0 .tar.bz2"
20+ boostSha256Sum=" af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89 "
21+ boostSrcDir=" ${depsSrcDir} /boost_1_87_0 "
2222boostDir=" ${depsToolsetDir} /boost"
2323zlibDir=" ${depsToolsetDir} /zlib"
2424zlibSrcDir=" ${depsSrcDir} /zlib"
@@ -231,6 +231,20 @@ patch -N boost/thread/pthread/thread_data.hpp <<EOL
231231 #endif
232232EOL
233233
234+ patch -N libs/stacktrace/src/from_exception.cpp << EOL
235+ --- libs/stacktrace/src/from_exception.cpp 2019-10-11 15:26:15.678703586 +0300
236+ +++ libs/stacktrace/src/from_exception.cpp.new 2019-10-11 15:26:07.321463698 +0300
237+ @@ -4,7 +4,7 @@
238+ // accompanying file LICENSE_1_0.txt or copy at
239+ // http://www.boost.org/LICENSE_1_0.txt)
240+
241+ -#if defined(_MSC_VER)
242+ +#if defined(__MINGW32__) || defined(_MSC_VER)
243+
244+ #include <boost/stacktrace/safe_dump_to.hpp>
245+ #include <windows.h>
246+ EOL
247+
234248./bootstrap.sh
235249
236250if [[ $ENABLE_SHARED == " ON" ]]; then
You can’t perform that action at this time.
0 commit comments