From 1d0eb5afa77244a573cbb73d489bb1c06a8a5359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 30 Mar 2026 22:04:12 +0700 Subject: [PATCH] dnsdist: fix for boost 1.91 --- srcpkgs/dnsdist/patches/boost-1.91.patch | 29 ++++++++++++++++++++++++ srcpkgs/dnsdist/template | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dnsdist/patches/boost-1.91.patch diff --git a/srcpkgs/dnsdist/patches/boost-1.91.patch b/srcpkgs/dnsdist/patches/boost-1.91.patch new file mode 100644 index 00000000000..ffb37cdccff --- /dev/null +++ b/srcpkgs/dnsdist/patches/boost-1.91.patch @@ -0,0 +1,29 @@ +--- a/dnsdist-lua.cc ++++ b/dnsdist-lua.cc +@@ -3083,7 +3083,7 @@ static void setupLuaConfig(LuaContext& l + customName = std::optional(*optCustomName); + } + if (!customName) { +- boost::optional vars = {boost::get(opts.get())}; ++ boost::optional vars = boost::get(opts.get()); + getOptionalValue(vars, "customName", customName); + getOptionalValue(vars, "withLabels", withLabels); + checkAllParametersConsumed("declareMetric", vars); +@@ -3106,7 +3106,7 @@ static void setupLuaConfig(LuaContext& l + step = *custom_step; + } + else { +- boost::optional vars = {boost::get(incOpts)}; ++ boost::optional vars = boost::get(incOpts); + getOptionalValue(vars, "step", step); + getOptionalValue>(vars, "labels", labels); + checkAllParametersConsumed("incMetric", vars); +@@ -3128,7 +3128,7 @@ static void setupLuaConfig(LuaContext& l + step = *custom_step; + } + else { +- boost::optional vars = {boost::get(decOpts)}; ++ boost::optional vars = boost::get(decOpts); + getOptionalValue(vars, "step", step); + getOptionalValue>(vars, "labels", labels); + checkAllParametersConsumed("decMetric", vars); diff --git a/srcpkgs/dnsdist/template b/srcpkgs/dnsdist/template index 1743493eee8..d5077287e21 100644 --- a/srcpkgs/dnsdist/template +++ b/srcpkgs/dnsdist/template @@ -8,7 +8,7 @@ configure_args="-Ddnscrypt=enabled -Dreproducible=true -Dsnmp=enabled -Dyaml=disabled --sysconfdir=/etc/dnsdist" conf_files="/etc/dnsdist/dnsdist.conf" hostmakedepends="cmake pkg-config python3 python3-yaml tar" -makedepends="boost-devel fstrm-devel libcap-devel libedit-devel +makedepends="boost-headers fstrm-devel libcap-devel libedit-devel libsodium-devel lua54-devel net-snmp-devel nghttp2-devel openssl-devel re2-devel" short_desc="Dynamic DNS loadbalancer"