From ce9ec7a3f465667e27e38ca4e03e3f84eca09a87 Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Sun, 3 May 2026 11:56:25 +0800 Subject: [PATCH] net-misc/chrony: use dynamic pool directive and IPv6-enabled zone On all systems, `pool` is superior for both clients and servers. On IPv6-first systems, `[0123].` approach provides only one time source. Implicit `maxsources 4` will ensure that chrony uses 4 time sources and not 12 as mentioned in previous comment. Bug: https://bugs.gentoo.org/973543 Signed-off-by: LiviaMedeiros Part-of: https://github.com/gentoo/gentoo/pull/46187 Closes: https://github.com/gentoo/gentoo/pull/46187 Signed-off-by: Sam James --- .../chrony/{chrony-4.8.ebuild => chrony-4.8-r1.ebuild} | 2 +- net-misc/chrony/chrony-9999.ebuild | 2 +- ...-gentoo.patch => chrony-4.8-pool-vendor-gentoo.patch} | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) rename net-misc/chrony/{chrony-4.8.ebuild => chrony-4.8-r1.ebuild} (99%) rename net-misc/chrony/files/{chrony-4.7-pool-vendor-gentoo.patch => chrony-4.8-pool-vendor-gentoo.patch} (58%) diff --git a/net-misc/chrony/chrony-4.8.ebuild b/net-misc/chrony/chrony-4.8-r1.ebuild similarity index 99% rename from net-misc/chrony/chrony-4.8.ebuild rename to net-misc/chrony/chrony-4.8-r1.ebuild index 1c5da567bad54..e6623482d24d2 100644 --- a/net-misc/chrony/chrony-4.8.ebuild +++ b/net-misc/chrony/chrony-4.8-r1.ebuild @@ -83,7 +83,7 @@ else fi PATCHES=( - "${FILESDIR}"/${PN}-4.7-pool-vendor-gentoo.patch + "${FILESDIR}"/${PN}-4.8-pool-vendor-gentoo.patch "${FILESDIR}"/${PN}-4.7-systemd-gentoo.patch ) diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild index e0f750ff2e6f9..6242bfaa82039 100644 --- a/net-misc/chrony/chrony-9999.ebuild +++ b/net-misc/chrony/chrony-9999.ebuild @@ -83,7 +83,7 @@ else fi PATCHES=( - "${FILESDIR}"/${PN}-4.7-pool-vendor-gentoo.patch + "${FILESDIR}"/${PN}-4.8-pool-vendor-gentoo.patch "${FILESDIR}"/${PN}-4.7-systemd-gentoo.patch ) diff --git a/net-misc/chrony/files/chrony-4.7-pool-vendor-gentoo.patch b/net-misc/chrony/files/chrony-4.8-pool-vendor-gentoo.patch similarity index 58% rename from net-misc/chrony/files/chrony-4.7-pool-vendor-gentoo.patch rename to net-misc/chrony/files/chrony-4.8-pool-vendor-gentoo.patch index e7b078872ec53..d3fc4a1125d55 100644 --- a/net-misc/chrony/files/chrony-4.7-pool-vendor-gentoo.patch +++ b/net-misc/chrony/files/chrony-4.8-pool-vendor-gentoo.patch @@ -1,16 +1,13 @@ - Use the Gentoo pool -- Use the server directive instead of the pool directive so we get four time - sources and not twelve. +- Use the IPv6-enabled zone --- a/examples/chrony.conf.example1 +++ b/examples/chrony.conf.example1 @@ -1,5 +1,8 @@ -# Use four public NTP servers from the pool.ntp.org project. -pool pool.ntp.org iburst +# Use public NTP servers from the pool.ntp.org project. -+server 0.gentoo.pool.ntp.org iburst -+server 1.gentoo.pool.ntp.org iburst -+server 2.gentoo.pool.ntp.org iburst -+server 3.gentoo.pool.ntp.org iburst ++# Only `2.` zone provides both IPv4 and IPv6, see https://bugs.gentoo.org/973543 ++pool 2.gentoo.pool.ntp.org iburst # Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/drift