Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Miroslav Lichvar
555cc6f91e 4.8-1 2025-08-27 14:57:04 +02:00
Miroslav Lichvar
d465978a64 drop workaround for broken build on aarch64 2025-08-27 14:56:58 +02:00
Miroslav Lichvar
8861354ad5 update to 4.8 2025-08-27 14:56:55 +02:00
Miroslav Lichvar
da5c52a83a 4.7-1.fc42 2025-06-11 16:04:52 +02:00
Miroslav Lichvar
13fed6608a update to 4.7 2025-06-11 15:46:31 +02:00
4 changed files with 76 additions and 14 deletions

6
.gitignore vendored
View file

@ -1,3 +1,3 @@
/chrony-4.7-pre1-tar-gz-asc.txt
/chrony-4.7-pre1.tar.gz
/clknetsim-d60afc.tar.gz
/chrony-4.8-tar-gz-asc.txt
/chrony-4.8.tar.gz
/clknetsim-6ee99f50dec8.tar.gz

57
chrony-defconfig.patch Normal file
View file

@ -0,0 +1,57 @@
commit 4a8da7e02dc1b882d33cfbb7301d29bdb5ea915f
Author: Miroslav Lichvar <mlichvar@redhat.com>
Date: Wed Jun 11 14:53:47 2025 +0200
examples: improve chrony.conf examples
Add a note that three servers is the generally recommended minimum for
an NTP client to be able to detect a falseticker. Mention that the pool
directive uses four servers. Update the links to the pool join page and
list of public servers.
diff --git a/examples/chrony.conf.example1 b/examples/chrony.conf.example1
index 5e93ea75..f822813b 100644
--- a/examples/chrony.conf.example1
+++ b/examples/chrony.conf.example1
@@ -1,4 +1,4 @@
-# Use public NTP servers from the pool.ntp.org project.
+# Use four public NTP servers from the pool.ntp.org project.
pool pool.ntp.org iburst
# Record the rate at which the system clock gains/losses time.
diff --git a/examples/chrony.conf.example2 b/examples/chrony.conf.example2
index 03e7d47b..a257f54c 100644
--- a/examples/chrony.conf.example2
+++ b/examples/chrony.conf.example2
@@ -1,5 +1,10 @@
-# Use public servers from the pool.ntp.org project.
-# Please consider joining the pool (https://www.pool.ntp.org/join.html).
+# Note: The general recommendation for an NTP client is to have at least
+# three NTP servers to be able to detect one server providing incorrect
+# time (falseticker).
+
+# Use four public NTP servers from the pool.ntp.org project. If this
+# host has a static public IP address, please consider joining the pool:
+# https://www.ntppool.org/join.html
pool pool.ntp.org iburst
# Record the rate at which the system clock gains/losses time.
diff --git a/examples/chrony.conf.example3 b/examples/chrony.conf.example3
index 8d895d04..01eaff1c 100644
--- a/examples/chrony.conf.example3
+++ b/examples/chrony.conf.example3
@@ -21,10 +21,12 @@
#######################################################################
### SPECIFY YOUR NTP SERVERS
# Most computers using chrony will send measurement requests to one or
-# more 'NTP servers'. You will probably find that your Internet Service
+# more NTP servers. The general recommendation is to have at least
+# three NTP servers to be able to detect one server providing incorrect
+# time (falseticker). You will probably find that your Internet Service
# Provider or company have one or more NTP servers that you can specify.
# Failing that, there are a lot of public NTP servers. There is a list
-# you can access at http://support.ntp.org/bin/view/Servers/WebHome or
+# you can access at https://support.ntp.org/bin/view/Servers/WebHome or
# you can use servers from the pool.ntp.org project.
! server ntp1.example.net iburst

View file

@ -1,6 +1,5 @@
%global _hardened_build 1
%global clknetsim_ver d60afc
%global prerelease -pre1
%global clknetsim_ver 6ee99f50dec8
%bcond_without debug
%bcond_without nts
@ -9,8 +8,8 @@
%endif
Name: chrony
Version: 4.7
Release: 0.2.pre1%{?dist}
Version: 4.8
Release: 1%{?dist}
Summary: An NTP client/server
License: GPL-2.0-only
@ -26,6 +25,8 @@ Source10: https://gitlab.com/chrony/clknetsim/-/archive/master/clknetsim-%
# add distribution-specific bits to DHCP dispatcher
Patch1: chrony-nm-dispatcher-dhcp.patch
# revert upstream changes in default config
Patch2: chrony-defconfig.patch
BuildRequires: libcap-devel libedit-devel nettle-devel pps-tools-devel
BuildRequires: gcc gcc-c++ make bison systemd gnupg2
@ -60,6 +61,7 @@ service to other computers in the network.
%setup -q -n %{name}-%{version}%{?prerelease} -a 10
%{?gitpatch:%patch -P 0 -p1}
%patch -P 1 -p1 -b .nm-dispatcher-dhcp
%patch -P 2 -p1 -R -b .defconfig
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
@ -98,10 +100,6 @@ rm -f getdate.c
mv clknetsim-*-%{clknetsim_ver}* test/simulation/clknetsim
%build
%ifarch aarch64
# workaround for bug #2367978
CFLAGS="$RPM_OPT_FLAGS -fno-inline"
%endif
%configure \
%{?with_debug: --enable-debug} \
--enable-ntp-signd \
@ -210,6 +208,13 @@ fi
%dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
%changelog
* Wed Aug 27 2025 Miroslav Lichvar <mlichvar@redhat.com> 4.8-1
- update to 4.8
- drop workaround for broken build on aarch64
* Wed Jun 11 2025 Miroslav Lichvar <mlichvar@redhat.com> 4.7-1.fc42
- update to 4.7
* Thu May 22 2025 Miroslav Lichvar <mlichvar@redhat.com> 4.7-0.2.pre1
- add workaround for broken build on aarch64

View file

@ -1,3 +1,3 @@
SHA512 (chrony-4.7-pre1-tar-gz-asc.txt) = 6180dfede6bc2d11b4b8a9f2708b306faecdf2f6c92552c52c222b8fe09210aa770ec28c9272a1105ea6716e66553e606dbb00077bce061c6faaf65e1ce2bbf9
SHA512 (chrony-4.7-pre1.tar.gz) = 9f83887d9771a409edd812046a4b1b7e11966d02a99806d48442a52441ee41a7043a75987e29414b04ddb8ff82dedd0b7646135961f6532cc173c52c01c600c1
SHA512 (clknetsim-d60afc.tar.gz) = 9fff0dc7c089169158926741860c933fa4fc6eda68c100a54ead137b294ec94b0a6fccb0e3f86abfed274b38621e89b49f3e1ad96fd9bed48a79fabcc0d0ba5f
SHA512 (chrony-4.8-tar-gz-asc.txt) = df7f4e06f74a4b8c9a49e8fe57ea02e0324c5683d036412c32192a09f08e08f33537609cef8df0b4302bfcd63332b3092f33f40c8d02857c93ecea13822b5b47
SHA512 (chrony-4.8.tar.gz) = 949b796bb34db32a5c1b9e6b53be6a22e51c59f24a316d585b8a52a52ab1f61bdf0378dc58b282bb0ba4fac1f05e1e99fbe37cb4259aa2b359e7bf679c176aab
SHA512 (clknetsim-6ee99f50dec8.tar.gz) = 2621d1c44b84b42fcdf644f236ff90dab9f8a8407a138c8719c53dd9c4f21480db3b4ba598116aa1b9d6bd1fa02fc410d85a43baf55ddf8ad47fc09aba4c4477