build: require boost >= 1.71.0

Refs: #5276
Change-Id: Ia1014604d6933ca0042cecbaa25e8df2e7e2356c
This commit is contained in:
Davide Pesavento committed 2023-09-23 20:33:42 -04:00
1 parent 0b272e0e69
commit 690272d427
2 files changed
+8 -8

No files matched your search

+4 -8
View File
@@ -1,7 +1,7 @@
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
/* /*
* Copyright (c) 2013-2022 Regents of the University of California * Copyright (c) 2013-2023, Regents of the University of California,
* The University of Memphis * The University of Memphis.
* *
* This file is part of PSync. * This file is part of PSync.
* *
@@ -22,7 +22,7 @@
#include "tests/clock-fixture.hpp" #include "tests/clock-fixture.hpp"
#include <boost/asio/io_service.hpp> #include <boost/asio/io_context.hpp>
namespace psync::tests { namespace psync::tests {
@@ -33,17 +33,13 @@ private:
afterTick() final afterTick() final
{ {
if (m_io.stopped()) { if (m_io.stopped()) {
#if BOOST_VERSION >= 106600
m_io.restart(); m_io.restart();
#else
m_io.reset();
#endif
} }
m_io.poll(); m_io.poll();
} }
protected: protected:
boost::asio::io_service m_io; boost::asio::io_context m_io;
}; };
} // namespace psync::tests } // namespace psync::tests
+4
View File
@@ -51,6 +51,10 @@ def configure(conf):
uselib_store='NDN_CXX', pkg_config_path=pkg_config_path) uselib_store='NDN_CXX', pkg_config_path=pkg_config_path)
conf.check_boost(lib='iostreams', mt=True) conf.check_boost(lib='iostreams', mt=True)
if conf.env.BOOST_VERSION_NUMBER < 107100:
conf.fatal('The minimum supported version of Boost is 1.71.0.\n'
'Please upgrade your distribution or manually install a newer version of Boost.\n'
'For more information, see https://redmine.named-data.net/projects/nfd/wiki/Boost')
for scheme in COMPRESSION_SCHEMES: for scheme in COMPRESSION_SCHEMES:
if getattr(conf.options, f'without_{scheme}'): if getattr(conf.options, f'without_{scheme}'):