From: Rosen Penev Date: Sat, 11 Oct 2025 20:36:28 +0000 (-0700) Subject: kea: fix compilation with boost 1.89 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=73c94594a9b7b05e9b5ddd6925f3b7c119fdaf9b;p=feed%2Fpackages.git kea: fix compilation with boost 1.89 system goes header only. Added small patch to get rid of deadline_timer. It's gone. Signed-off-by: Rosen Penev --- diff --git a/net/kea/Makefile b/net/kea/Makefile index accd1f1ef3..a08220b385 100644 --- a/net/kea/Makefile +++ b/net/kea/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=kea PKG_VERSION:=2.6.4 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://ftp.isc.org/isc/kea/$(PKG_VERSION) @@ -20,13 +20,11 @@ PKG_MAINTAINER:=BangLang Huang , Rosy Song timeout != -1) { +- data_->timer.expires_from_now(boost::posix_time::milliseconds( ++ data_->timer.expires_after(std::chrono::milliseconds( + data_->timeout)); + data_->timer.async_wait(std::bind(&IOFetch::stop, *this, + TIME_OUT)); +--- a/src/lib/asiolink/interval_timer.cc ++++ b/src/lib/asiolink/interval_timer.cc +@@ -88,7 +88,7 @@ private: + IOServicePtr io_service_; + + /// @brief The asio timer. +- boost::asio::deadline_timer timer_; ++ boost::asio::steady_timer timer_; + + /// @brief Controls how the timer behaves after expiration. + IntervalTimer::Mode mode_; +@@ -141,7 +141,7 @@ void + IntervalTimerImpl::update() { + try { + // Update expire time to (current time + interval_). +- timer_.expires_from_now(boost::posix_time::millisec(long(interval_))); ++ timer_.expires_after(std::chrono::milliseconds(interval_)); + // Reset timer. + // Pass a function bound with a shared_ptr to this. + timer_.async_wait(std::bind(&IntervalTimerImpl::callback,