Skip to content

Commit

Permalink
Update net/unbound to version 1.20.0.
Browse files Browse the repository at this point in the history
Pkgsrc changes:
 * Adjust patch-configure so it still applies.
 * Adjust checksums.

Upstream changes:

Features
- The config for discard-timeout, wait-limit, wait-limit-cookie,
  wait-limit-netblock and wait-limit-cookie-netblock was added, for
  the fix to the DNSBomb issue.
- Merge #1027: Introduce 'cache-min-negative-ttl' option.
- Merge #1043 from xiaoxiaoafeifei: Add loongarch support; updates
  config.guess(2024-01-01) and config.sub(2024-01-01), verified
  with upstream.
- Implement cachedb-check-when-serve-expired: yes option, default
  is enabled. When serve expired is enabled with cachedb, it first
  checks cachedb before serving the expired response.
- Fix #876: [FR] can unbound-checkconf be silenced when configuration
  is valid?

Bug Fixes
- Fix for the DNSBomb vulnerability CVE-2024-33655. Thanks to Xiang Li
  from the Network and Information Security Lab of Tsinghua University
  for reporting it.
- Update doc/unbound.doxygen with 'doxygen -u'. Fixes option
  deprecation warnings and updates with newer defaults.
- Remove unused portion from iter_dname_ttl unit test.
- Fix validator classification of qtype DNAME for positive and
  redirection answers, and fix validator signature routine for dealing
  with the synthesized CNAME for a DNAME without previously
  encountering it and also for when the qtype is DNAME.
- Fix qname minimisation for reply with a DNAME for qtype CNAME that
  answers it.
- Fix doc test so it ignores but outputs unsupported doxygen options.
- Fix #1021 Inconsistent Behavior with Changing rpz-cname-override
  and doing a unbound-control reload.
- Merge #1028: Clearer documentation for tcp-idle-timeout and
  edns-tcp-keepalive-timeout.
- Fix #1029: rpz trigger clientip and action rpz-passthru not working
  as expected.
- Fix rpz that the rpz override is taken in case of clientip triggers.
  Fix that the clientip passthru action is logged. Fix that the
  clientip localdata action is logged. Fix rpz override action cname
  for the clientip trigger.
- Fix to unify codepath for local alias for rpz cname action override.
- Fix rpz for cname override action after nsdname and nsip triggers.
- Fix that addrinfo is not kept around but copied and freed, so that
  log-destaddr uses a copy of the information, much like NSD does.
- Merge #1030: Persist the openssl and expat directories for repeated
  Windows builds.
- Fix that rpz CNAME content is limited to the max number of cnames.
- Fix rpz, it follows iterator CNAMEs for nsip and nsdname and sets
  the reply query_info values, that is better for debug logging.
- Fix rpz that copies the cname override completely to the temp
  region, so there are no references to the rpz region.
- Add rpz unit test for nsip action override.
- Fix rpz for qtype CNAME after nameserver trigger.
- Fix rpz so that rpz CNAME can apply after rpz CNAME. And fix that
  clientip and nsip can give a CNAME.
- Fix localdata and rpz localdata to match CNAME only if no direct
  type match is available.
- Merge #831 from Pierre4012: Improve Windows NSIS installer
  script (setup.nsi).
- For #831: Format text, use exclamation icon and explicit label
  names.
- Fix name of unit test for subnet cache response.
- Fix #1032: The size of subnet_msg_cache calculation mistake cause
  memory usage increased beyond expectations.
- Fix for #1032, add safeguard to make table space positive.
- Fix comment in lruhash space function.
- Fix to add unit test for lruhash space that exercises the routines.
- Fix that when the server truncates the pidfile, it does not follow
  symbolic links.
- Fix that the server does not chown the pidfile.
- Fix #1034: DoT forward-zone via unbound-control.
- Fix for crypto related failures to have a better error string.
- Fix #1035: Potential Bug while parsing port from the "stub-host"
  string; also affected forward-zones and remote-control host
  directives.
- Fix #369: dnstap showing extra responses; for client responses
  right from the cache when replying with expired data or
  prefetching.
- Fix #1040: fix heap-buffer-overflow issue in function cfg_mark_ports
  of file util/config_file.c.
- For #1040: adjust error text and disallow negative ports in other
  parts of cfg_mark_ports.
- Fix comment syntax for view function views_find_view.
- Fix #595: unbound-anchor cannot deal with full disk; it will now
  first write out to a temp file before replacing the original one,
  like Unbound already does for auto-trust-anchor-file.
- Fixup compile without cachedb.
- Add test for cachedb serve expired.
- Extended test for cachedb serve expired.
- Fix makefile dependencies for fake_event.c.
- Fix cachedb for serve-expired with serve-expired-reply-ttl.
- Fix to not reply serve expired unless enabled for cachedb.
- Fix cachedb for serve-expired with serve-expired-client-timeout.
- Fixup unit test for cachedb server expired client timeout with
  a check if response if from upstream or from cachedb.
- Fixup cachedb to not refetch when serve-expired-client-timeout is
  used.
- Merge #1049 from Petr Men#ík: Py_NoSiteFlag is not needed since
  Python 3.8
- Fix #1048: Update ax_pkg_swig.m4 and ax_pthread.m4.
- Fix configure, autoconf for #1048.
- Add checklock feature verbose_locking to trace locks and unlocks.
- Fix edns subnet to sort rrset references when storing messages
  in the cache. This fixes a race condition in the rrset locks.
- Merge #1053: Remove child delegations from cache when grandchild
  delegations are returned from parent.
- Fix ci workflow for macos for moved install locations.
- Fix configure flto check error, by finding grep for it.
- Merge #1041: Stub and Forward unshare. This has one structure
  for them and fixes #1038: fatal error: Could not initialize
  thread / error: reading root hints.
- Fix to disable fragmentation on systems with IP_DONTFRAG,
  with a nonzero value for the socket option argument.
- Fix doc unit test for out of directory build.
- Fix cachedb with serve-expired-client-timeout disabled. The edns
  subnet module deletes global cache and cachedb cache when it
  stores a result, and serve-expired is enabled, so that the global
  reply, that is older than the ecs reply, does not return after
  the ecs reply expires.
- Add unit tests for cachedb and subnet cache expired data.
- Man page entry for unbound-checkconf -q.
- Cleanup unnecessary strdup calls for EDE strings.
- Fix doxygen comment for errinf_to_str_bogus.
  • Loading branch information
he32 committed May 8, 2024
1 parent f00ffeb commit 25353dc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions net/unbound/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.109 2024/04/20 14:49:05 nia Exp $
# $NetBSD: Makefile,v 1.110 2024/05/08 11:16:48 he Exp $

DISTNAME= unbound-1.19.3
PKGREVISION= 2
DISTNAME= unbound-1.20.0
CATEGORIES= net
MASTER_SITES= https://nlnetlabs.nl/downloads/unbound/

Expand Down
10 changes: 5 additions & 5 deletions net/unbound/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.79 2024/03/14 09:38:19 he Exp $
$NetBSD: distinfo,v 1.80 2024/05/08 11:16:48 he Exp $

BLAKE2s (unbound-1.19.3.tar.gz) = c3825b7651b250ca5531cd11089ece3157e7419ad174c1ab100567df1e49f042
SHA512 (unbound-1.19.3.tar.gz) = f860614f090a5a081cceff8ca7f4b3d416c00a251ae14ceb6b4159dc8cd022f025592074d3d78aee2f86c3eeae9d1a314713e4740aa91062579143199accd159
Size (unbound-1.19.3.tar.gz) = 6338685 bytes
SHA1 (patch-configure) = fe43ed9fdcfe12897e30f03833aec631d473529d
BLAKE2s (unbound-1.20.0.tar.gz) = bbef0a2d1f42d6cea502f720a0368167d19d7e2d60cf6224a593675109b8086c
SHA512 (unbound-1.20.0.tar.gz) = 2f6bc76c03b71ca1c2cd2331dc72d62f51493d15e17c59af46b400e542fcabff22e6b9d33f750a3e5f918a0116f45afa760651b2d5aa2feadac151cbbd71b0bd
Size (unbound-1.20.0.tar.gz) = 6550938 bytes
SHA1 (patch-configure) = 0779bb9174e358163430fa0b05e81c464776b12f
8 changes: 4 additions & 4 deletions net/unbound/patches/patch-configure
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
$NetBSD: patch-configure,v 1.5 2022/10/13 12:09:00 he Exp $
$NetBSD: patch-configure,v 1.6 2024/05/08 11:16:49 he Exp $

Pretend expat.h is found: it is guaranteed by PkgSrc, but on Darwin it might
be buried inside an SDK; we don't want the SDK path being exposed in CFLAGS.

--- configure.orig 2017-07-09 07:41:42.000000000 +0000
+++ configure
@@ -19850,7 +19850,7 @@ fi
@@ -21900,7 +21900,7 @@ fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
$as_echo_n "checking for libexpat... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
printf %s "checking for libexpat... " >&6; }
-found_libexpat="no"
+found_libexpat="yes"
for dir in $withval ; do
Expand Down

0 comments on commit 25353dc

Please sign in to comment.