From 22801e29c6fc852b87e81592fd851b2c0be27299762cf5ba958f14c335da8d8d Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 4 Jun 2024 15:01:28 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=152 --- chrony-tai.patch | 35 ----------------------------------- chrony.changes | 5 +++++ chrony.spec | 13 ------------- 3 files changed, 5 insertions(+), 48 deletions(-) delete mode 100644 chrony-tai.patch diff --git a/chrony-tai.patch b/chrony-tai.patch deleted file mode 100644 index f39e151..0000000 --- a/chrony-tai.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- reference.c.orig -+++ reference.c -@@ -562,6 +562,13 @@ is_offset_ok(double offset) - return 1; - } - -+ static int firsttime = 1; -+ if (firsttime) { -+ LOG(LOGS_WARN, "max_offset = % .010f ", max_offset); -+ firsttime = 0; -+ } -+ -+ LOG(LOGS_WARN, "offset = % .010f ", offset); - if (fabs(offset) > max_offset) { - LOG(LOGS_WARN, - "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ", ---- test/simulation/124-tai.orig -+++ test/simulation/124-tai -@@ -20,13 +20,15 @@ client_conf=" - refclock SHM 0 dpoll 0 poll 0 tai - leapsectz right/UTC - leapsecmode ignore --maxchange 1e-3 1 0" -+maxchange 1.1e-3 1 0" - - run_test || test_fail - check_chronyd_exit || test_fail - check_source_selection || test_fail - check_sync || test_fail - -+test_pass -+ - export CLKNETSIM_START_DATE=$(TZ=UTC date -d 'Jan 01 2009 00:10:00' +'%s') - - time_offset=-1000 diff --git a/chrony.changes b/chrony.changes index f82d816..bdcb1b8 100644 --- a/chrony.changes +++ b/chrony.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 4 14:57:09 UTC 2024 - Reinhard Max + +- bsc#1225362, chrony-124-tai.patch: make 124-tai more reliable + ------------------------------------------------------------------- Mon May 27 15:34:40 UTC 2024 - Reinhard Max diff --git a/chrony.spec b/chrony.spec index 9f4b58c..b0ee217 100644 --- a/chrony.spec +++ b/chrony.spec @@ -299,19 +299,6 @@ find %{buildroot} -type f | xargs sed -i ' export CLKNETSIM_RANDOM_SEED=24501 export CFLAGS="%{optflags}" make %{?_smp_mflags} -C test/simulation/clknetsim -pushd test/simulation -./run -i 100 ./124-tai -exit 0 -%if 0 -./124-tai ||: -for f in tmp/*; do - echo ====$f==== - cat $f -done -echo -popd -exit 1 -%endif make %{?_smp_mflags} quickcheck %endif %endif