# Boost::thread depends on Boost::atomic, so list it explicitly.
set(BOOST_COMPONENTS
atomic chrono thread system regex random program_options date_time
- iostreams context coroutine filesystem)
+ iostreams context coroutine)
set(BOOST_HEADER_COMPONENTS container)
if(WITH_MGR)
list(APPEND rgw_libs ${LUA_LIBRARIES})
if(WITH_RADOSGW_LUA_PACKAGES)
- list(APPEND rgw_libs Boost::filesystem)
+ list(APPEND rgw_libs Boost::filesystem StdFilesystem::filesystem)
endif()
set(rgw_schedulers_srcs
#include "rgw_sal_rados.h"
#include "rgw_lua.h"
#ifdef WITH_RADOSGW_LUA_PACKAGES
+#include <filesystem>
#include <boost/process.hpp>
-#include <boost/filesystem.hpp>
#include "rgw_lua_version.h"
#endif
int install_packages(const DoutPrefixProvider *dpp, rgw::sal::Store* store, optional_yield y, packages_t& failed_packages, std::string& output) {
// luarocks directory cleanup
- boost::system::error_code ec;
+ std::error_code ec;
const auto& luarocks_path = store->get_luarocks_path();
- boost::filesystem::remove_all(luarocks_path, ec);
- if (ec.value() != 0 && ec.value() != ENOENT) {
+ if (!std::filesystem::remove_all(luarocks_path, ec) &&
+ ec != std::errc::no_such_file_or_directory) {
output.append("failed to clear luarock directory: ");
output.append(ec.message());
output.append("\n");
main.cc
lazy_omap_stats_test.cc)
target_link_libraries(ceph_test_lazy_omap_stats
- librados Boost::system Boost::filesystem ${UNITTEST_LIBS})
+ librados Boost::system ${UNITTEST_LIBS})
install(TARGETS
ceph_test_lazy_omap_stats
DESTINATION ${CMAKE_INSTALL_BINDIR})