Here's an update to knot-3.6.2.  It doesn't require lmdb 1.X but since
it implements an automated migration from lmdb 0.9 to 1.X, it will
help people upgrade.  The new tarball includes some code from lmdb
0.9, still using system lmdb.  The following diff adds the same
lack-of-UBC workaround as already used in databases/lmdb, I'm not 100%
certain it is needed.

I have tested this with -current lmdb 0.9.33 and with the latest
lmdb-1.0.2 update diff.  My test setup is very basic so more serious
tests would be welcome.  oks too.


Index: net/knot/Makefile
===================================================================
RCS file: /home/cvs/ports/net/knot/Makefile,v
diff -u -p -r1.90 Makefile
--- net/knot/Makefile   30 Sep 2026 14:19:36 -0000      1.90
+++ net/knot/Makefile   1 Nov 2026 11:33:28 -0000
@@ -1,11 +1,9 @@
 COMMENT =              authoritative DNS server
 
 # update net/py-libknot when updating this
-DISTNAME =             knot-3.5.8
-REVISION =             0
+DISTNAME =             knot-3.6.2
 
-SHARED_LIBS +=  dnssec               7.0      # 10.0
-SHARED_LIBS +=  knot                 13.0     # 16.0
+SHARED_LIBS +=  knot                 14.0     # 17.0
 SHARED_LIBS +=  zscanner             4.0      # 5.0
 
 CATEGORIES =           net
Index: net/knot/distinfo
===================================================================
RCS file: /home/cvs/ports/net/knot/distinfo,v
diff -u -p -r1.55 distinfo
--- net/knot/distinfo   27 Sep 2026 11:54:22 -0000      1.55
+++ net/knot/distinfo   1 Nov 2026 11:33:28 -0000
@@ -1,2 +1,2 @@
-SHA256 (knot-3.5.8.tar.xz) = QZfJAv7M8yR1slTH3aoawSNwDjiV9QuAED/+uDUqKAc=
-SIZE (knot-3.5.8.tar.xz) = 1736408
+SHA256 (knot-3.6.2.tar.xz) = KRasEXrHfR8jQaZWLkfXl0k1IbeRtBSWCjgstbwRPiE=
+SIZE (knot-3.6.2.tar.xz) = 1857304
Index: net/knot/patches/patch-src_contrib_lmdb_mdb_c
===================================================================
RCS file: net/knot/patches/patch-src_contrib_lmdb_mdb_c
diff -N net/knot/patches/patch-src_contrib_lmdb_mdb_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ net/knot/patches/patch-src_contrib_lmdb_mdb_c       1 Nov 2026 13:03:01 
-0000
@@ -0,0 +1,13 @@
+enforce MDB_WRITEMAP, because we have no UBC (Unified Buffer Cache).
+
+Index: src/contrib/lmdb/mdb.c
+--- src/contrib/lmdb/mdb.c.orig
++++ src/contrib/lmdb/mdb.c
+@@ -5069,6 +5069,7 @@ mdb_env_open(MDB_env *env, const char *path, unsigned 
+               /* silently ignore WRITEMAP when we're only getting read access 
*/
+               flags &= ~MDB_WRITEMAP;
+       } else {
++              flags |= MDB_WRITEMAP;
+               if (!((env->me_free_pgs = mdb_midl_alloc(MDB_IDL_UM_MAX)) &&
+                         (env->me_dirty_list = calloc(MDB_IDL_UM_SIZE, 
sizeof(MDB_ID2)))))
+                       rc = ENOMEM;
Index: net/knot/pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/net/knot/pkg/PLIST,v
diff -u -p -r1.15 PLIST
--- net/knot/pkg/PLIST  22 Mar 2025 08:44:17 -0000      1.15
+++ net/knot/pkg/PLIST  1 Nov 2026 11:33:28 -0000
@@ -9,22 +9,6 @@
 @bin bin/kzonesign
 include/knot/
 include/knot/module.h
-include/libdnssec/
-include/libdnssec/binary.h
-include/libdnssec/crypto.h
-include/libdnssec/digest.h
-include/libdnssec/dnssec.h
-include/libdnssec/error.h
-include/libdnssec/key.h
-include/libdnssec/keyid.h
-include/libdnssec/keystore.h
-include/libdnssec/keytag.h
-include/libdnssec/nsec.h
-include/libdnssec/pem.h
-include/libdnssec/random.h
-include/libdnssec/sign.h
-include/libdnssec/tsig.h
-include/libdnssec/version.h
 include/libknot/
 include/libknot/attribute.h
 include/libknot/codes.h
@@ -38,6 +22,19 @@ include/libknot/db/db_lmdb.h
 include/libknot/db/db_trie.h
 include/libknot/descriptor.h
 include/libknot/dname.h
+include/libknot/dnssec/
+include/libknot/dnssec/binary.h
+include/libknot/dnssec/crypto.h
+include/libknot/dnssec/digest.h
+include/libknot/dnssec/key.h
+include/libknot/dnssec/keyid.h
+include/libknot/dnssec/keystore.h
+include/libknot/dnssec/keytag.h
+include/libknot/dnssec/nsec.h
+include/libknot/dnssec/pem.h
+include/libknot/dnssec/random.h
+include/libknot/dnssec/sign.h
+include/libknot/dnssec/tsig.h
 include/libknot/dynarray.h
 include/libknot/endian.h
 include/libknot/errcode.h
@@ -92,9 +89,6 @@ include/libzscanner/
 include/libzscanner/error.h
 include/libzscanner/scanner.h
 include/libzscanner/version.h
-@static-lib lib/libdnssec.a
-lib/libdnssec.la
-@lib lib/libdnssec.so.${LIBdnssec_VERSION}
 @static-lib lib/libknot.a
 lib/libknot.la
 @lib lib/libknot.so.${LIBknot_VERSION}
@@ -102,7 +96,6 @@ lib/libknot.la
 lib/libzscanner.la
 @lib lib/libzscanner.so.${LIBzscanner_VERSION}
 lib/pkgconfig/knotd.pc
-lib/pkgconfig/libdnssec.pc
 lib/pkgconfig/libknot.pc
 lib/pkgconfig/libzscanner.pc
 @man man/man1/kdig.1
Index: net/py-libknot/Makefile
===================================================================
RCS file: /home/cvs/ports/net/py-libknot/Makefile,v
diff -u -p -r1.26 Makefile
--- net/py-libknot/Makefile     27 Sep 2026 02:31:41 -0000      1.26
+++ net/py-libknot/Makefile     1 Nov 2026 13:01:17 -0000
@@ -1,6 +1,6 @@
 COMMENT =      Python bindings for libknot
 
-MODPY_DISTV =  3.5.8
+MODPY_DISTV =  3.6.2
 
 DISTNAME =     libknot-${MODPY_DISTV}
 PKGNAME =      py-${DISTNAME}
Index: net/py-libknot/distinfo
===================================================================
RCS file: /home/cvs/ports/net/py-libknot/distinfo,v
diff -u -p -r1.20 distinfo
--- net/py-libknot/distinfo     27 Sep 2026 02:31:41 -0000      1.20
+++ net/py-libknot/distinfo     1 Nov 2026 13:01:20 -0000
@@ -1,2 +1,2 @@
-SHA256 (libknot-3.5.8.tar.gz) = 07JiQj7LVzZTtdq6LghgTbF165hwpTJosFnhsEHdFgc=
-SIZE (libknot-3.5.8.tar.gz) = 16942
+SHA256 (libknot-3.6.2.tar.gz) = qJ5W6Ne6m0bXb5qHm/7FUffnw+K2RQg5MNrIoRMXoJ0=
+SIZE (libknot-3.6.2.tar.gz) = 18105


-- 
jca

Reply via email to