git: 4e1ace61572d - main - net/kea: prepare for Boost-1.89, do not link with stub Boost::system

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 22 Sep 2025 09:48:27 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e1ace61572d084ba5835e1e24e45f8130e55d80

commit 4e1ace61572d084ba5835e1e24e45f8130e55d80
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-09-22 09:44:31 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-09-22 09:44:31 +0000

    net/kea: prepare for Boost-1.89, do not link with stub Boost::system
    
    Backport upstream MR2771 (https://gitlab.isc.org/isc-projects/kea/-/merge_requests/2771)
    
    Approved by:    portmgr blanket
---
 net/kea/Makefile                                       |  3 ++-
 net/kea/files/patch-meson.build                        | 13 +++++++++++--
 net/kea/files/patch-src_lib_asiodns_io__fetch.h        | 10 ++++++++++
 net/kea/files/patch-src_lib_asiolink_interval__timer.h | 10 ++++++++++
 4 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/net/kea/Makefile b/net/kea/Makefile
index a937964fc4ab..a70dcc3cf3e7 100644
--- a/net/kea/Makefile
+++ b/net/kea/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kea
 DISTVERSION=	3.0.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	ISC/kea/${DISTVERSION}
 
@@ -10,7 +11,7 @@ WWW=		https://kea.isc.org/
 LICENSE=	MPL20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
+LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs \
 		liblog4cplus.so:devel/log4cplus
 
 USES=		compiler:c++11-lang cpe iconv libtool pathfix ssl python tar:xz meson pkgconfig cmake:indirect shebangfix
diff --git a/net/kea/files/patch-meson.build b/net/kea/files/patch-meson.build
index f444e3bcdafe..d630616d50fb 100644
--- a/net/kea/files/patch-meson.build
+++ b/net/kea/files/patch-meson.build
@@ -1,4 +1,4 @@
---- meson.build.orig	2025-06-20 16:28:47 UTC
+--- meson.build.orig	2025-08-20 08:14:44 UTC
 +++ meson.build
 @@ -59,7 +59,7 @@ if PREFIX == '/usr/local'
  # Meson is annoying with its opinionated alteration of certain paths based on whether prefix is default or not.
@@ -44,7 +44,16 @@
  endif
  
  #### Build Options
-@@ -1108,9 +1108,9 @@ if PREFIX == '/usr/local'
+@@ -189,7 +189,7 @@ message(f'Detected system "@SYSTEM@".')
+ 
+ #### Dependencies
+ 
+-boost_dep = dependency('boost', version: '>=1.66', modules: ['system'])
++boost_dep = dependency('boost', version: '>=1.69')
+ dl_dep = dependency('dl')
+ threads_dep = dependency('threads')
+ add_project_dependencies(boost_dep, dl_dep, threads_dep, language: ['cpp'])
+@@ -1127,9 +1127,9 @@ if PREFIX == '/usr/local'
  # In case prefix is default, install to hardcoded path.
  if PREFIX == '/usr/local'
      install_emptydir('/usr/local/lib/kea')
diff --git a/net/kea/files/patch-src_lib_asiodns_io__fetch.h b/net/kea/files/patch-src_lib_asiodns_io__fetch.h
new file mode 100644
index 000000000000..fb9d73b8c564
--- /dev/null
+++ b/net/kea/files/patch-src_lib_asiodns_io__fetch.h
@@ -0,0 +1,10 @@
+--- src/lib/asiodns/io_fetch.h.orig	2025-08-20 08:14:44 UTC
++++ src/lib/asiodns/io_fetch.h
+@@ -16,6 +16,7 @@
+ #include <util/buffer.h>
+ 
+ #include <boost/asio/coroutine.hpp>
++#include <boost/asio/deadline_timer.hpp>
+ #include <boost/shared_array.hpp>
+ #include <boost/shared_ptr.hpp>
+ #include <boost/date_time/posix_time/posix_time_types.hpp>
diff --git a/net/kea/files/patch-src_lib_asiolink_interval__timer.h b/net/kea/files/patch-src_lib_asiolink_interval__timer.h
new file mode 100644
index 000000000000..433c6df0e7f0
--- /dev/null
+++ b/net/kea/files/patch-src_lib_asiolink_interval__timer.h
@@ -0,0 +1,10 @@
+--- src/lib/asiolink/interval_timer.h.orig	2025-08-20 08:14:44 UTC
++++ src/lib/asiolink/interval_timer.h
+@@ -7,6 +7,7 @@
+ #ifndef ASIOLINK_INTERVAL_TIMER_H
+ #define ASIOLINK_INTERVAL_TIMER_H 1
+ 
++#include <boost/asio/deadline_timer.hpp>
+ #include <boost/shared_ptr.hpp>
+ #include <functional>
+