git: 7b13575d163d - main - net/chrony: update to 4.8
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Aug 2025 14:55:45 UTC
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7b13575d163d6886af1aa355ccd861c0c311f261
commit 7b13575d163d6886af1aa355ccd861c0c311f261
Author: Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-08-27 14:52:26 +0000
Commit: Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-08-27 14:55:43 +0000
net/chrony: update to 4.8
Changelog: https://chrony-project.org/news.html#_27_aug_2025_chrony_4_8_released
While here, disable the socket.c self-test, which fails because the test
sets a TCP accept()ed socket O_NONBLOCK and recvmsg() returns error
with errno==EAGAIN, unless run under truss.
Upstream bug report via mailing list, see:
https://www.mail-archive.com/chrony-users@chrony.tuxfamily.org/msg03849.html
---
net/chrony/Makefile | 13 ++++++++++++-
net/chrony/distinfo | 6 +++---
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/net/chrony/Makefile b/net/chrony/Makefile
index d2167508a83e..68f89fcf6eae 100644
--- a/net/chrony/Makefile
+++ b/net/chrony/Makefile
@@ -1,5 +1,5 @@
PORTNAME= chrony
-DISTVERSION= 4.7
+DISTVERSION= 4.8
PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= https://chrony-project.org/releases/ \
@@ -90,6 +90,17 @@ post-patch:
${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!g' \
-e 's!/var/lib!/var/db!g' \
${PORTEXAMPLES:M*.conf.example*}
+.if "4.8" == ${PORTVERSION} && empty(WITH_DEBUG)
+ # SCK_AcceptConnection sets the socket to non-blocking,
+ # and socket.test (built from socket.c and wildcarded)
+ # fails with EAGAIN; to see for yourself, build
+ # with WITH_DEBUG=yes set, so that you get --enable-debug
+ # for configure, and run test/unit/socket.test -d
+ # You can avoid that by running under truss, at least
+ # on FreeBSD 14.3 amd64. The same does not happen
+ # on Fedora Linux 42 x86_64 on the very same computer.
+ ${MV} ${WRKSRC}/test/unit/socket.c ${WRKSRC}/test/unit/socket.c.disabled
+.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc
diff --git a/net/chrony/distinfo b/net/chrony/distinfo
index 0eafb1655821..e6be01363ebf 100644
--- a/net/chrony/distinfo
+++ b/net/chrony/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1749665413
-SHA256 (chrony-4.7.tar.gz) = c0de41a8c051e5d32b101b5f7014b98ca978b18e592f30ce6840b6d4602d947b
-SIZE (chrony-4.7.tar.gz) = 644610
+TIMESTAMP = 1756301202
+SHA256 (chrony-4.8.tar.gz) = 33ea8eb2a4daeaa506e8fcafd5d6d89027ed6f2f0609645c6f149b560d301706
+SIZE (chrony-4.8.tar.gz) = 649368