diff options
Diffstat (limited to 'net/chrony')
-rw-r--r-- | net/chrony/Makefile | 2 | ||||
-rw-r--r-- | net/chrony/distinfo | 6 | ||||
-rw-r--r-- | net/chrony/files/patch-test_unit_socket.c | 30 |
3 files changed, 34 insertions, 4 deletions
diff --git a/net/chrony/Makefile b/net/chrony/Makefile index d2167508a83e..7b2e1654d237 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/ \ 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 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) |