summaryrefslogtreecommitdiff
path: root/net/chrony
diff options
context:
space:
mode:
Diffstat (limited to 'net/chrony')
-rw-r--r--net/chrony/Makefile4
-rw-r--r--net/chrony/distinfo6
-rw-r--r--net/chrony/files/patch-test_unit_socket.c30
3 files changed, 35 insertions, 5 deletions
diff --git a/net/chrony/Makefile b/net/chrony/Makefile
index 5cf16e4d51ff..7b2e1654d237 100644
--- a/net/chrony/Makefile
+++ b/net/chrony/Makefile
@@ -1,6 +1,6 @@
PORTNAME= chrony
-DISTVERSION= 4.6.1
-PORTREVISION= 1
+DISTVERSION= 4.8
+PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= https://chrony-project.org/releases/ \
LOCAL/mandree
diff --git a/net/chrony/distinfo b/net/chrony/distinfo
index bfb7e46a159a..e6be01363ebf 100644
--- a/net/chrony/distinfo
+++ b/net/chrony/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1728827221
-SHA256 (chrony-4.6.1.tar.gz) = 571ff73fbf0ae3097f0604eca2e00b1d8bb2e91affe1a3494785ff21d6199c5c
-SIZE (chrony-4.6.1.tar.gz) = 636076
+TIMESTAMP = 1756301202
+SHA256 (chrony-4.8.tar.gz) = 33ea8eb2a4daeaa506e8fcafd5d6d89027ed6f2f0609645c6f149b560d301706
+SIZE (chrony-4.8.tar.gz) = 649368
diff --git a/net/chrony/files/patch-test_unit_socket.c b/net/chrony/files/patch-test_unit_socket.c
new file mode 100644
index 000000000000..fd9e71d17078
--- /dev/null
+++ b/net/chrony/files/patch-test_unit_socket.c
@@ -0,0 +1,30 @@
+commit 120bf44989391164c924e97d3142dc1352ab7970
+Author: Miroslav Lichvar <mlichvar@redhat.com>
+Date: Thu Aug 28 09:33:34 2025 +0200
+
+ test: fix socket unit test to use non-blocking accepted sockets
+
+ SCK_AcceptConnection() always returns a non-blocking socket. Clear the
+ O_NONBLOCK flag in the socket unit test, which relies on blocking, to
+ avoid failures.
+
+ Reported-by: Matthias Andree <matthias.andree@gmx.de>
+
+--- test/unit/socket.c.orig 2025-08-27 12:05:31 UTC
++++ test/unit/socket.c
+@@ -191,6 +191,7 @@ test_unit(void)
+ s3 = SCK_AcceptConnection(s1, &sa2);
+ TEST_CHECK(UTI_CompareIPs(&sa1.ip_addr, &sa2.ip_addr, NULL) == 0);
+
++ fcntl(s3, F_SETFL, fcntl(s3, F_GETFL) & ~O_NONBLOCK);
+ send_and_recv(SCK_ADDR_IP, 1, 1, s3, s2);
+
+ SCK_ShutdownConnection(s2);
+@@ -227,6 +228,7 @@ test_unit(void)
+ s3 = SCK_AcceptConnection(s1, &sa2);
+ TEST_CHECK(sa2.ip_addr.family == IPADDR_UNSPEC);
+
++ fcntl(s3, F_SETFL, fcntl(s3, F_GETFL) & ~O_NONBLOCK);
+ send_and_recv(SCK_ADDR_UNIX, 1, i % 2, s3, s2);
+
+ if (i % 4)