From 0170e780b0c20c64cb07a0854ebc849c7ee206a9 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 28 May 2026 19:23:55 +0300 Subject: [PATCH] kea: fix BOOST_STATIC_ASSERT use in src/lib/dns/rdataclass.cc Snapshot builds for i386_pentium-mmx (and presumably every other target now that Boost 1.91 has been bumped in the feed) fail with:: src/lib/dns/rdataclass.cc:1401:5: error: 'BOOST_STATIC_ASSERT' was not declared in this scope; did you mean 'BOOST_HAS_STATIC_ASSERT'? 1401 | BOOST_STATIC_ASSERT(sizeof(numdata_) == ``BOOST_STATIC_ASSERT`` lives in ````. In earlier Boost releases it was reachable through any number of transitive includes pulled in by Kea's other DNS headers; in 1.91 those transitive paths have been pruned, so call sites must include the declaring header explicitly. ``050-boost-static-assert.patch`` already does this for ``src/lib/log/logger_level_impl.cc``; ``src/lib/dns/rdataclass.cc`` uses the same macro at SOA::getMinimum() to size-check ``numdata_`` and was missed. Extend the existing patch with the matching include in rdataclass.cc. Same fix shape as the earlier hunk; no behavioural change. Build log: https://downloads.openwrt.org/snapshots/faillogs/i386_pentium-mmx/packages/kea/ Signed-off-by: Alexandru Ardelean --- net/kea/patches/050-boost-static-assert.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/net/kea/patches/050-boost-static-assert.patch b/net/kea/patches/050-boost-static-assert.patch index b1fe4845e9..cda8328442 100644 --- a/net/kea/patches/050-boost-static-assert.patch +++ b/net/kea/patches/050-boost-static-assert.patch @@ -8,3 +8,13 @@ #include +--- a/src/lib/dns/rdataclass.cc ++++ b/src/lib/dns/rdataclass.cc +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + + #include + #include