pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
net/chrony: update to 4.9
Hi,
At around end of August chrony 4.9 was released. Below is the updated pkgsrc of it.
Tested successfully on a Hetzner ARM VM on NetBSD 11.0 as a testing NTP NTS server. And as a NTP NTS client only on a local NetBSD 11.0 x86_64 Proxmox VM.
The diff is against pkgsrc trunk.
'verifypc' returns two lines but unfortunately I don't what to with that information. I can't see neither of them as direct deps in the Makefile (which the tools mentions), would they have to be?
# verifypc
verifypc: libtasn1 not a direct dependency
verifypc: p11-kit-1 not a direct dependency
Have an excellent day
Thomas
---
From 566955c048db61c941e4281e565ba34ac8f1185b Mon Sep 17 00:00:00 2001
From: Thomas Kupper <tom%kupper.org@localhost>
Date: Tue, 8 Sep 2026 10:04:21 +0000
Subject: [PATCH] net/chrony: updated to 4.9
27 Aug 2026: chrony-4.9 released
New in version 4.9
==================
Enhancements
------------
* Add support for OpenBSD
* Add refclock driver for OpenBSD timedelta sensors
* Add "optional" option to refclock directive to ignore missing devices
* Add maxntsretry option to server/pool directive to configure maximum NTS-KE retry interval
* Add maxtxbuffers directive to enable processing of hardware and kernel TX timestamps from non-Ethernet devices and tunnels
* Add minstratum and maxstratum directives to limit acceptable strata
* Add -N option for s6-style service notification
* Improve measurement of local clock precision
* Reduce impact of client logging on server performance
* Update NTP-over-PTP support to final specification (RFC 10030)
* Update Nettle support for version 4.0
* Update seccomp filter
* Warn if no hostnames of online sources can be resolved
* Add -w option to chronyc to enable wider output for IPv6 addresses
Bug fixes
---------
* Fix ratelimit directives to accept burst values over 32
* Fix handling of hardware RX timestamps with zero interface index
---
net/chrony/Makefile | 3 +-
net/chrony/distinfo | 10 ++---
net/chrony/patches/patch-cmac__nettle.c | 60 -------------------------
net/chrony/patches/patch-configure | 9 ----
net/chrony/patches/patch-hash__nettle.c | 45 -------------------
5 files changed, 5 insertions(+), 122 deletions(-)
delete mode 100644 net/chrony/patches/patch-cmac__nettle.c
delete mode 100644 net/chrony/patches/patch-hash__nettle.c
diff --git a/net/chrony/Makefile b/net/chrony/Makefile
index ec7118c0c526da045532d76980c5e32eb3fbb639..e0ad2565178e4d7984b417ec1f45fc1a9545d84d 100644
--- a/net/chrony/Makefile
+++ b/net/chrony/Makefile
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.65 2026/06/07 17:36:03 adam Exp $
-DISTNAME= chrony-4.8
-PKGREVISION= 3
+DISTNAME= chrony-4.9
CATEGORIES= net
MASTER_SITES= https://chrony-project.org/releases/
diff --git a/net/chrony/distinfo b/net/chrony/distinfo
index b4a933f0a140b09bba5da7bbd88b18943fda7434..981dea8e3a3781677397412f3f878d6d056a48ce 100644
--- a/net/chrony/distinfo
+++ b/net/chrony/distinfo
@@ -1,12 +1,10 @@
$NetBSD: distinfo,v 1.21 2026/06/07 17:36:03 adam Exp $
-BLAKE2s (chrony-4.8.tar.gz) = 34eafb5ca35d3b21b1e3fc496a3b1e5ec1721bbab1d1cf0db8da5a4e8e53859e
-SHA512 (chrony-4.8.tar.gz) = 949b796bb34db32a5c1b9e6b53be6a22e51c59f24a316d585b8a52a52ab1f61bdf0378dc58b282bb0ba4fac1f05e1e99fbe37cb4259aa2b359e7bf679c176aab
-Size (chrony-4.8.tar.gz) = 649368 bytes
+BLAKE2s (chrony-4.9.tar.gz) = 795ca4cda83ec7fb2ea0ac9370caff646f2dfa1a9b470ebb462d0c3d2c08068d
+SHA512 (chrony-4.9.tar.gz) = 9eeee9738727e86562d75e4aee60916957e0626b767d9fea325918d3973e02b3f252c32fd1c4b4cf8461406acccbc8196d6f7d2e9d2d3ce205bc3245b83924b5
+Size (chrony-4.9.tar.gz) = 663809 bytes
SHA1 (patch-Makefile.in) = 42ebfcdbce472a173890571625efc4fef583d5b6
SHA1 (patch-client.c) = 483c71fc734192002bb0eaaefcb0f73c9aaaa941
-SHA1 (patch-cmac__nettle.c) = bdf58604d505e944abbb4c8b361cd020b9186d65
-SHA1 (patch-configure) = 25f9294d78f7a1e0392260adad6c86cbe269fab2
+SHA1 (patch-configure) = 98da1ddcc0980f3394b4d29414bc3167f35a33d5
SHA1 (patch-doc_Makefile.in) = 8e9902690ff431fd47429d53346faf2ac8f1b923
SHA1 (patch-examples_chrony.conf.example3) = 52ab12ded077447b79601c0f07257740dd2ec926
-SHA1 (patch-hash__nettle.c) = f8b3cf7695ce1c0d9baee1db36d7b916c68cde96
diff --git a/net/chrony/patches/patch-cmac__nettle.c b/net/chrony/patches/patch-cmac__nettle.c
deleted file mode 100644
index 1d13247db4ec599b9609c7d304fd56d68dba3b27..0000000000000000000000000000000000000000
--- a/net/chrony/patches/patch-cmac__nettle.c
+++ /dev/null
@@ -1,60 +0,0 @@
-$NetBSD: patch-cmac__nettle.c,v 1.1 2026/06/07 17:36:03 adam Exp $
-
-Add support for Nettle 4.0
-https://gitlab.com/chrony/chrony/-/commit/fee12ec914cce805cc704a4c2804d75b4933ad2f
-
---- cmac_nettle.c.orig 2025-08-27 12:05:31.000000000 +0000
-+++ cmac_nettle.c
-@@ -30,8 +30,10 @@
- #include "sysincl.h"
-
- #include <nettle/cmac.h>
-+#include <nettle/version.h>
-
- #include "cmac.h"
-+#include "hash.h"
- #include "memory.h"
-
- struct CMC_Instance_Record {
-@@ -86,25 +88,39 @@ CMC_CreateInstance(CMC_Algorithm algorit
- int
- CMC_Hash(CMC_Instance inst, const void *in, int in_len, unsigned char *out, int out_len)
- {
-+ unsigned char buf[MAX_HASH_LENGTH];
-+
- if (in_len < 0 || out_len < 0)
- return 0;
-
- if (out_len > CMAC128_DIGEST_SIZE)
- out_len = CMAC128_DIGEST_SIZE;
-
-+ assert(CMAC128_DIGEST_SIZE <= sizeof (buf));
-+
- switch (inst->key_length) {
- case AES128_KEY_SIZE:
- cmac_aes128_update(&inst->context.aes128, in_len, in);
-- cmac_aes128_digest(&inst->context.aes128, out_len, out);
-+ cmac_aes128_digest(&inst->context.aes128,
-+#if NETTLE_VERSION_MAJOR < 4
-+ CMAC128_DIGEST_SIZE,
-+#endif
-+ buf);
- break;
- case AES256_KEY_SIZE:
- cmac_aes256_update(&inst->context.aes256, in_len, in);
-- cmac_aes256_digest(&inst->context.aes256, out_len, out);
-+ cmac_aes256_digest(&inst->context.aes256,
-+#if NETTLE_VERSION_MAJOR < 4
-+ CMAC128_DIGEST_SIZE,
-+#endif
-+ buf);
- break;
- default:
- assert(0);
- }
-
-+ memcpy(out, buf, out_len);
-+
- return out_len;
- }
-
diff --git a/net/chrony/patches/patch-configure b/net/chrony/patches/patch-configure
index bea0e6f5ae20d75f38cc17e872e9c883cabbab68..8d005e810b7afd0e07fa6c0eb2c02a95ca88e9af 100644
--- a/net/chrony/patches/patch-configure
+++ b/net/chrony/patches/patch-configure
@@ -17,12 +17,3 @@ https://gitlab.com/chrony/chrony/-/commit/fee12ec914cce805cc704a4c2804d75b4933ad
'add_history(readline("prompt"));'
then
add_def FEAT_READLINE
-@@ -891,7 +891,7 @@ HASH_LINK=""
- if [ $feat_sechash = "1" ] && [ "x$HASH_LINK" = "x" ] && [ $try_nettle = "1" ]; then
- test_cflags="`pkg_config --cflags nettle`"
- test_link="`pkg_config --libs nettle`"
-- if test_code 'nettle' 'nettle/nettle-meta.h nettle/sha2.h' \
-+ if test_code 'nettle' 'nettle/nettle-meta.h nettle/sha2.h nettle/version.h' \
- "$test_cflags" "$test_link" \
- 'return nettle_hashes[0]->context_size;'
- then
diff --git a/net/chrony/patches/patch-hash__nettle.c b/net/chrony/patches/patch-hash__nettle.c
deleted file mode 100644
index 1bb64e11706d18602ced57918ca72183920b336b..0000000000000000000000000000000000000000
--- a/net/chrony/patches/patch-hash__nettle.c
+++ /dev/null
@@ -1,45 +0,0 @@
-$NetBSD: patch-hash__nettle.c,v 1.1 2026/06/07 17:36:03 adam Exp $
-
-Add support for Nettle 4.0
-https://gitlab.com/chrony/chrony/-/commit/fee12ec914cce805cc704a4c2804d75b4933ad2f
-
---- hash_nettle.c.orig 2025-08-27 12:05:31.000000000 +0000
-+++ hash_nettle.c
-@@ -30,6 +30,7 @@
- #include "sysincl.h"
-
- #include <nettle/nettle-meta.h>
-+#include <nettle/version.h>
-
- #include "hash.h"
- #include "memory.h"
-@@ -91,6 +92,7 @@ int
- HSH_Hash(int id, const void *in1, int in1_len, const void *in2, int in2_len,
- unsigned char *out, int out_len)
- {
-+ unsigned char buf[MAX_HASH_LENGTH];
- const struct nettle_hash *hash;
- void *context;
-
-@@ -103,11 +105,20 @@ HSH_Hash(int id, const void *in1, int in
- if (out_len > hash->digest_size)
- out_len = hash->digest_size;
-
-+ if (hash->digest_size > sizeof (buf))
-+ return 0;
-+
- hash->init(context);
- hash->update(context, in1_len, in1);
- if (in2)
- hash->update(context, in2_len, in2);
-- hash->digest(context, out_len, out);
-+ hash->digest(context,
-+#if NETTLE_VERSION_MAJOR < 4
-+ hash->digest_size,
-+#endif
-+ buf);
-+
-+ memcpy(out, buf, out_len);
-
- return out_len;
- }
---
Home |
Main Index |
Thread Index |
Old Index