knot-resolver: update to version 5.4.0
authorMichal Vasilek <michal.vasilek@nic.cz>
Thu, 5 Aug 2021 12:26:29 +0000 (14:26 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Mon, 9 Aug 2021 21:13:15 +0000 (23:13 +0200)
* refresh patches
* disable kres_gen_test to fix cross

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
(cherry picked from commit e7127d468490baeaa863b4ab817ac05ec74186fa)

net/knot-resolver/Makefile
net/knot-resolver/patches/030-fix-policy-hack.patch

index dc215d4dd81f285de8104e0781563e33f738bfba..83451214aace3ceda8a2a1b28015d35c39c91b01 100644 (file)
@@ -10,12 +10,12 @@ PKG_RELRO_FULL:=0
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=knot-resolver
-PKG_VERSION:=5.3.2
-PKG_RELEASE:=2
+PKG_VERSION:=5.4.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-resolver
-PKG_HASH:=8b6f447d5fe93422d4c129a2d4004a977369c3aa6e55258ead1cbd488bc01436
+PKG_HASH:=534af671b98433b23b57039acc9d7d3c100a4888a8cf9aeba36161774ca0815e
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
 PKG_LICENSE:=GPL-3.0-later
@@ -57,6 +57,7 @@ define Package/knot-resolver/config
        source "$(SOURCE)/Config.in"
 endef
 
+# kres_gen_test breaks on cross, fix is already upstream
 MESON_ARGS+= \
        $(if $(CONFIG_PACKAGE_knot-resolver_dnstap), -Ddnstap=enabled,-Ddnstap=disabled) \
        -Dcapng=disabled \
@@ -69,6 +70,7 @@ MESON_ARGS+= \
        -Dkeyfile_default=/etc/knot-resolver/root.keys \
        -Dprefix=/usr \
        -Dunit_tests=disabled \
+       -Dkres_gen_test=false \
        -Dutils=disabled
 
 define Package/knot-resolver/install
index a4eac6c8dc0690ee540da98a858c4f28f2617a2b..88f5c06d115d1cffac4d272f8d51ff5eb1251b65 100644 (file)
@@ -2,7 +2,7 @@ This patch fixes the problem with forwarding in knot-resolver v4.3.0.
 It reintroduces a fix which enables  policy related hack (knot/knot-resolver#205 (comment 94566) )
 --- a/modules/policy/policy.lua
 +++ b/modules/policy/policy.lua
-@@ -982,7 +982,7 @@ policy.layer = {
+@@ -984,7 +984,7 @@ policy.layer = {
                if bit.band(state, bit.bor(kres.FAIL, kres.DONE)) ~= 0 then return state end
                local qry = req:initial() -- same as :current() but more descriptive
                return policy.evaluate(policy.rules, req, qry, state)