summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2021-10-27 13:36:33 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2021-12-21 15:02:09 +0100
commit5ec65369cbdf6a63d6280d6c2037eab8a460f7a0 (patch)
tree3f1749f800341a934e32748bb7155822cb8c5dc3
parentpolicy: add extended errors (diff)
downloadknot-resolver-5ec65369cbdf6a63d6280d6c2037eab8a460f7a0.tar.xz
knot-resolver-5ec65369cbdf6a63d6280d6c2037eab8a460f7a0.zip
libknot: bump dependency version to 3.0.2
Version 2.9 isn't supported anymore anyway, but 3.0.2 is needed for extended error constants.
-rw-r--r--NEWS12
-rw-r--r--daemon/lua/kres-gen-30.lua (renamed from daemon/lua/kres-gen-29.lua)0
-rw-r--r--daemon/lua/meson.build2
-rw-r--r--distro/pkg/deb/control2
-rw-r--r--distro/pkg/rpm/knot-resolver.spec6
-rw-r--r--doc/build.rst2
-rw-r--r--doc/upgrading.rst10
-rw-r--r--lib/dnssec/signature.c6
-rw-r--r--meson.build5
9 files changed, 31 insertions, 14 deletions
diff --git a/NEWS b/NEWS
index e00d7d2e..2999b1d2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,15 @@
+Knot Resolver 5.5.0 (2022-mm-dd)
+================================
+
+Improvements
+------------
+- extended_errors: module for extended DNS error support, RFC8914 (!1234)
+
+Incompatible changes
+--------------------
+- libknot >= 3.0.2 is required
+
+
Knot Resolver 5.4.3 (2021-12-01)
================================
diff --git a/daemon/lua/kres-gen-29.lua b/daemon/lua/kres-gen-30.lua
index a80bf362..a80bf362 100644
--- a/daemon/lua/kres-gen-29.lua
+++ b/daemon/lua/kres-gen-30.lua
diff --git a/daemon/lua/meson.build b/daemon/lua/meson.build
index e8fc3be4..410cb023 100644
--- a/daemon/lua/meson.build
+++ b/daemon/lua/meson.build
@@ -40,7 +40,7 @@ distro_preconfig = configure_file(
# Unfortunately the different ABI implies different contents of 'kres-gen.lua'.
kres_gen_fname = (libknot.version().version_compare('>= 3.1')
- ? 'kres-gen-31.lua' : 'kres-gen-29.lua')
+ ? 'kres-gen-31.lua' : 'kres-gen-30.lua')
kres_gen_lua = configure_file(
input: kres_gen_fname,
diff --git a/distro/pkg/deb/control b/distro/pkg/deb/control
index 1fbc93c1..85a998a3 100644
--- a/distro/pkg/deb/control
+++ b/distro/pkg/deb/control
@@ -10,7 +10,7 @@ Build-Depends:
libedit-dev,
libfstrm-dev,
libgnutls28-dev,
- libknot-dev (>= 2.9),
+ libknot-dev (>= 3.0.2),
liblmdb-dev,
libluajit-5.1-dev,
libnghttp2-dev,
diff --git a/distro/pkg/rpm/knot-resolver.spec b/distro/pkg/rpm/knot-resolver.spec
index eb36056b..89f6ab1a 100644
--- a/distro/pkg/rpm/knot-resolver.spec
+++ b/distro/pkg/rpm/knot-resolver.spec
@@ -41,9 +41,9 @@ BuildRequires: meson
BuildRequires: pkgconfig(cmocka)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libedit)
-BuildRequires: pkgconfig(libknot) >= 2.9
-BuildRequires: pkgconfig(libzscanner) >= 2.9
-BuildRequires: pkgconfig(libdnssec) >= 2.9
+BuildRequires: pkgconfig(libknot) >= 3.0.2
+BuildRequires: pkgconfig(libzscanner) >= 3.0.2
+BuildRequires: pkgconfig(libdnssec) >= 3.0.2
BuildRequires: pkgconfig(libnghttp2)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libcap-ng)
diff --git a/doc/build.rst b/doc/build.rst
index de6e2513..75dfa882 100644
--- a/doc/build.rst
+++ b/doc/build.rst
@@ -33,7 +33,7 @@ The following dependencies are needed to build and run Knot Resolver:
"meson >= 0.49", "*build only* [#]_"
"C and C++ compiler", "*build only* [#]_"
"`pkg-config`_", "*build only* [#]_"
- "libknot_ 2.9+", "Knot DNS libraries"
+ "libknot_ 3.0.2+", "Knot DNS libraries"
"LuaJIT_ 2.0+", "Embedded scripting language"
"libuv_ 1.7+", "Multiplatform I/O and services"
"lmdb", "Memory-mapped database for cache"
diff --git a/doc/upgrading.rst b/doc/upgrading.rst
index ae260a17..75116565 100644
--- a/doc/upgrading.rst
+++ b/doc/upgrading.rst
@@ -28,6 +28,16 @@ newer versions when they are released.
.. _`systemd`: https://systemd.io/
.. _`supervisord`: http://supervisord.org/
+
+5.4 to 5.5
+==========
+
+Packagers & Developers
+----------------------
+
+* Knot DNS >= 3.0.2 is required.
+
+
5.3 to 5.4
==========
diff --git a/lib/dnssec/signature.c b/lib/dnssec/signature.c
index 5eba8177..6fcf3a42 100644
--- a/lib/dnssec/signature.c
+++ b/lib/dnssec/signature.c
@@ -274,11 +274,7 @@ int kr_check_signature(const knot_rdata_t *rrsig,
goto fail;
}
- ret = dnssec_sign_verify(sign_ctx,
- #if KNOT_VERSION_MAJOR >= 3
- false,
- #endif
- &signature);
+ ret = dnssec_sign_verify(sign_ctx, false, &signature);
if (ret != 0) {
ret = kr_error(EBADMSG);
goto fail;
diff --git a/meson.build b/meson.build
index 86e77fc0..21a77d1d 100644
--- a/meson.build
+++ b/meson.build
@@ -18,7 +18,7 @@ endif
message('--- required dependencies ---')
-knot_version = '>=2.9'
+knot_version = '>=3.0.2'
libknot = dependency('libknot', version: knot_version)
libdnssec = dependency('libdnssec', version: knot_version)
libzscanner = dependency('libzscanner', version: knot_version)
@@ -110,8 +110,7 @@ else
endif
### XDP: not configurable - we just check if libknot supports it
-xdp = meson.get_compiler('c').has_header('libknot/xdp/xdp.h'
- ) and libknot.version().version_compare('>= 3.0.2')
+xdp = meson.get_compiler('c').has_header('libknot/xdp/xdp.h')
### Systemd
systemd_files = get_option('systemd_files')