diff --git a/chrony-124-tai.patch b/chrony-124-tai.patch new file mode 100644 index 0000000..943c854 --- /dev/null +++ b/chrony-124-tai.patch @@ -0,0 +1,35 @@ +From 8f5b3084144967b313cfb51285bf6517e06e1b9e Mon Sep 17 00:00:00 2001 +From: Miroslav Lichvar +Date: Tue, 4 Jun 2024 16:23:41 +0200 +Subject: [PATCH] test: make 124-tai more reliable + +Reported-by: Reinhard Max +--- + test/simulation/124-tai | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/simulation/124-tai b/test/simulation/124-tai +index 0192e10..e8c909d 100755 +--- a/test/simulation/124-tai ++++ b/test/simulation/124-tai +@@ -20,7 +20,7 @@ client_conf=" + refclock SHM 0 dpoll 0 poll 0 tai + leapseclist tmp/leap.list + leapsecmode ignore +-maxchange 1e-3 1 0" ++maxchange 1e-3 10 0" + + cat > tmp/leap.list <<-EOF + #$ 3676924800 +@@ -43,7 +43,7 @@ client_conf=" + refclock SHM 0 dpoll 0 poll 0 tai + leapseclist tmp/leap.list + makestep 1 1 +-maxchange 1e-3 1 0" ++maxchange 1e-3 10 0" + + run_test || test_fail + check_chronyd_exit || test_fail +-- +GitLab + diff --git a/chrony.spec b/chrony.spec index 0a627df..9f4b58c 100644 --- a/chrony.spec +++ b/chrony.spec @@ -70,7 +70,7 @@ Patch2: chrony-logrotate.patch Patch3: chrony-service-ordering.patch Patch7: chrony-htonl.patch Patch8: chrony.nm-dispatcher.dhcp.patch -Patch9: chrony-tai.patch +Patch9: chrony-124-tai.patch BuildRequires: NetworkManager-devel BuildRequires: bison BuildRequires: findutils @@ -182,7 +182,7 @@ e.g. because the servers will be set via DHCP. %patch -P 3 %patch -P 7 %patch -P 8 -#%patch -P 9 +%patch -P 9 # Remove pool statements from the default /etc/chrony.conf. They will # be provided by branding packages in /etc/chrony.d/pool.conf . @@ -296,7 +296,7 @@ find %{buildroot} -type f | xargs sed -i ' %ifnarch %ix86 %check # Set random seed to get deterministic results -#export CLKNETSIM_RANDOM_SEED=24501 +export CLKNETSIM_RANDOM_SEED=24501 export CFLAGS="%{optflags}" make %{?_smp_mflags} -C test/simulation/clknetsim pushd test/simulation