From: Adam C. Emerson Date: Thu, 8 May 2025 18:34:54 +0000 (-0400) Subject: {test,rgw,tools}: Explicitly use Boost.Process v1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dce2c80dbd500deaaa3846e865e7ae75eb85a35a;p=ceph.git {test,rgw,tools}: Explicitly use Boost.Process v1 Boost 1.88 removed the default of using the v1 interface automatically. See https://github.com/boostorg/process/issues/480 for an example. https://www.boost.org/doc/libs/1_88_0/libs/process/doc/html/index.html#version_2 describes the new, preferred version which we probably want to migrate to eventually. In this change we simply include the v1 files and change the namespace we alias. Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/driver/rados/rgw_sal_rados.cc b/src/rgw/driver/rados/rgw_sal_rados.cc index 34c9f2e4eec..481822bb1cc 100644 --- a/src/rgw/driver/rados/rgw_sal_rados.cc +++ b/src/rgw/driver/rados/rgw_sal_rados.cc @@ -20,7 +20,6 @@ #include #include -#include #include diff --git a/src/rgw/rgw_lua.cc b/src/rgw/rgw_lua.cc index a0f04f81d49..aacec7c7fe0 100644 --- a/src/rgw/rgw_lua.cc +++ b/src/rgw/rgw_lua.cc @@ -8,7 +8,13 @@ #include "rgw_lua.h" #ifdef WITH_RADOSGW_LUA_PACKAGES #include -#include +#include +#include +#include +#include +#include +#include +#include #endif #define dout_subsys ceph_subsys_rgw @@ -96,7 +102,7 @@ int delete_script(const DoutPrefixProvider *dpp, sal::LuaManager* manager, const #ifdef WITH_RADOSGW_LUA_PACKAGES -namespace bp = boost::process; +namespace bp = boost::process::v1; int add_package(const DoutPrefixProvider* dpp, rgw::sal::Driver* driver, optional_yield y, const std::string& package_name, bool allow_compilation) { @@ -142,8 +148,6 @@ int remove_package(const DoutPrefixProvider *dpp, rgw::sal::Driver* driver, opti return driver->get_lua_manager("")->remove_package(dpp, y, package_name); } -namespace bp = boost::process; - int list_packages(const DoutPrefixProvider *dpp, rgw::sal::Driver* driver, optional_yield y, packages_t& packages) { return driver->get_lua_manager("")->list_packages(dpp, y, packages); diff --git a/src/test/mon/test_mon_memory_target.cc b/src/test/mon/test_mon_memory_target.cc index e8f975b47bb..1c87dbbca42 100644 --- a/src/test/mon/test_mon_memory_target.cc +++ b/src/test/mon/test_mon_memory_target.cc @@ -6,10 +6,12 @@ #include #include -#include +#include +#include +#include #include -namespace bp = boost::process; +namespace bp = boost::process::v1; using namespace std; int main(int argc, char** argv) diff --git a/src/tools/cephfs/ProgressTracker.cc b/src/tools/cephfs/ProgressTracker.cc index fe9b6374637..52ed354a2af 100644 --- a/src/tools/cephfs/ProgressTracker.cc +++ b/src/tools/cephfs/ProgressTracker.cc @@ -6,13 +6,21 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "common/ceph_context.h" #include "global/global_context.h" #include "include/cephfs/libcephfs.h" -namespace bp = boost::process; +namespace bp = boost::process::v1; namespace asio = boost::asio; namespace {