knot: update to version 3.5.0
authorJan Hák <[email protected]>
Mon, 22 Sep 2025 13:21:21 +0000 (15:21 +0200)
committerJosef Schlehofer <[email protected]>
Wed, 24 Sep 2025 18:21:15 +0000 (20:21 +0200)
Release notes: https://www.knot-dns.cz/2025-09-18-version-350.html
Patch from commit https://gitlab.nic.cz/knot/knot-dns/-/commit/1297a6cc0fef21f35cfa517b5b55d94cd9cea41d

Signed-off-by: Jan Hák <[email protected]>
net/knot/Makefile
net/knot/patches/01_zscanner_tests.patch
net/knot/patches/03_common_stats.patch [new file with mode: 0644]

index 95c749f8453cf6b00d82f1a9ebfa1d63c0da71dd..46786572042d381f6471f03a9370c544d275c441 100644 (file)
@@ -8,15 +8,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=knot
-PKG_VERSION:=3.4.8
+PKG_VERSION:=3.5.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
-PKG_HASH:=6730a73dbfc12d79d8000ffe22d36d068b7467e74bee1eb122ac4935ecea49f9
+PKG_HASH:=d52538bf7364c280999dec58c2a02a405dd922ef5794da1473ca7c3cf7f01277
 
 PKG_MAINTAINER:=Daniel Salzman <[email protected]>
-PKG_LICENSE:=GPL-3.0 LGPL-2.0 0BSD BSD-3-Clause OLDAP-2.8
+PKG_LICENSE:=GPL-2.0-or-later LGPL-2.0-or-later MIT ISC BSD-3-Clause
 PKG_CPE_ID:=cpe:/a:knot-dns:knot_dns
 
 PKG_FIXUP:=autoreconf
index 7b834941cb5cea2185f3220b7855ce70317152e9..23958807de5d97c9ca1b467b8feca4eb3704e7f2 100644 (file)
@@ -1,7 +1,8 @@
 --- a/tests/libzscanner/test_zscanner.in
 +++ b/tests/libzscanner/test_zscanner.in
-@@ -1,15 +1,14 @@
- #!/bin/sh
+@@ -3,16 +3,15 @@
+ # SPDX-License-Identifier: GPL-2.0-or-later
+ # For more information, see <https://www.knot-dns.cz/>
  
 -SOURCE=@top_srcdir@/tests/libzscanner
 -BUILD=@top_builddir@/tests/libzscanner
diff --git a/net/knot/patches/03_common_stats.patch b/net/knot/patches/03_common_stats.patch
new file mode 100644 (file)
index 0000000..6d965a5
--- /dev/null
@@ -0,0 +1,22 @@
+From 4f02c29b67790ff05f23fc6593e145be7c223c70 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20H=C3=A1k?= <[email protected]>
+Date: Tue, 23 Sep 2025 12:52:25 +0200
+Subject: [PATCH] fix: failing build of knot/common/stats.c on PowerPC and MIPS
+
+---
+ src/knot/common/stats.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/src/knot/common/stats.c
++++ b/src/knot/common/stats.c
+@@ -127,8 +127,8 @@ int stats_server(stats_dump_ctr_f fcn, s
+       }
+       DUMP_VAL(params, "zone-count", knot_zonedb_size(ctx->server->zone_db));
+-      DUMP_VAL(params, "tcp-io-timeout", ctx->server->stats.tcp_io_timeout);
+-      DUMP_VAL(params, "tcp-idle-timeout", ctx->server->stats.tcp_idle_timeout);
++      DUMP_VAL(params, "tcp-io-timeout", ATOMIC_GET(ctx->server->stats.tcp_io_timeout));
++      DUMP_VAL(params, "tcp-idle-timeout", ATOMIC_GET(ctx->server->stats.tcp_idle_timeout));
+       return KNOT_EOK;
+ }