From fbd4c3c28d3750cfdf15e26b16cdfb7e18cac2f26e61af81582b96e960988b36 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 31 Jan 2017 17:51:07 +0000 Subject: [PATCH] Accepting request 453663 from home:markkp:branches:network:time Upgraded to version 3.1, along with clknetsim to match. OBS-URL: https://build.opensuse.org/request/show/453663 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=26 --- chrony-3.0.tar.gz | 3 --- chrony-3.1.tar.gz | 3 +++ chrony-config.patch | 19 ++++++++----------- chrony-fix-open.patch | 10 +++++----- chrony-service-helper.patch | 14 ++++++-------- chrony.changes | 18 ++++++++++++++++++ chrony.spec | 4 ++-- clknetsim-6bb6519.tar.gz | 3 --- clknetsim-ce89a1b.tar.gz | 3 +++ 9 files changed, 45 insertions(+), 32 deletions(-) delete mode 100644 chrony-3.0.tar.gz create mode 100644 chrony-3.1.tar.gz delete mode 100644 clknetsim-6bb6519.tar.gz create mode 100644 clknetsim-ce89a1b.tar.gz diff --git a/chrony-3.0.tar.gz b/chrony-3.0.tar.gz deleted file mode 100644 index cf87170..0000000 --- a/chrony-3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0387b91a20f047856a56d6541a1cf920c91b53b32f74c123bcb70f1a5d2cd6d -size 421433 diff --git a/chrony-3.1.tar.gz b/chrony-3.1.tar.gz new file mode 100644 index 0000000..14c37be --- /dev/null +++ b/chrony-3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d9107dcdb7768a03dc129d33b2a7a25f1eea2f5620bc85eb00cfea07c1b6075 +size 424109 diff --git a/chrony-config.patch b/chrony-config.patch index 9189c07..0cecc25 100644 --- a/chrony-config.patch +++ b/chrony-config.patch @@ -1,7 +1,5 @@ -Index: chrony-2.3/examples/chrony.conf.example3 -=================================================================== ---- chrony-2.3.orig/examples/chrony.conf.example3 -+++ chrony-2.3/examples/chrony.conf.example3 +--- chrony-3.1/examples/chrony.conf.example3 2017-01-31 05:22:11.000000000 -0500 ++++ chrony-3.1/examples/chrony.conf.example3 2017-01-31 11:53:04.000000000 -0500 @@ -27,12 +27,38 @@ # you can access at http://support.ntp.org/bin/view/Servers/WebHome or # you can use servers from the pool.ntp.org project. @@ -11,8 +9,7 @@ Index: chrony-2.3/examples/chrony.conf.example3 -! server baz.example.net iburst - ! pool pool.ntp.org iburst -- -+ + +# for Europe: +! server 0.europe.pool.ntp.org +! server 1.europe.pool.ntp.org @@ -43,10 +40,10 @@ Index: chrony-2.3/examples/chrony.conf.example3 +! server 2.oceania.pool.ntp.org +! server 3.oceania.pool.ntp.org + - # However, for dial-up use you probably want these instead. The word - # 'offline' means that the server is not visible at boot time. Use - # chronyc's 'online' command to tell chronyd that these servers have -@@ -77,7 +103,7 @@ + ####################################################################### + ### AVOIDING POTENTIALLY BOGUS CHANGES TO YOUR CLOCK + # +@@ -65,7 +91,7 @@ # immediately so that it doesn't gain or lose any more time. You # generally want this, so it is uncommented. @@ -55,7 +52,7 @@ Index: chrony-2.3/examples/chrony.conf.example3 # If you want to enable NTP authentication with symmetric keys, you will need # to uncomment the following line and edit the file to set up the keys. -@@ -130,8 +156,8 @@ driftfile /var/lib/chrony/drift +@@ -118,8 +144,8 @@ # produce some graphs of your system's timekeeping performance, or you # need help in debugging a problem. diff --git a/chrony-fix-open.patch b/chrony-fix-open.patch index 46334b7..646d9ae 100644 --- a/chrony-fix-open.patch +++ b/chrony-fix-open.patch @@ -1,8 +1,8 @@ -Index: chrony-3.0/clknetsim-6bb6519590ebf43a61f2c11442da525a1950b7df/client.c +Index: chrony-3.1/clknetsim-ce89a1b4e361c432ba3541548008ef0a87bd7fdb/client.c =================================================================== ---- chrony-3.0/clknetsim-6bb6519590ebf43a61f2c11442da525a1950b7df/client.c -+++ chrony-3.0/clknetsim-6bb6519590ebf43a61f2c11442da525a1950b7df/client.c -@@ -954,6 +954,8 @@ int open(const char *pathname, int flags +--- chrony-3.1/clknetsim-ce89a1b4e361c432ba3541548008ef0a87bd7fdb/client.c ++++ chrony-3.1/clknetsim-ce89a1b4e361c432ba3541548008ef0a87bd7fdb/client.c +@@ -1000,6 +1000,8 @@ int open(const char *pathname, int flags else if (!strcmp(pathname, "/dev/ptp1")) return SYSCLK_FD; @@ -11,7 +11,7 @@ Index: chrony-3.0/clknetsim-6bb6519590ebf43a61f2c11442da525a1950b7df/client.c r = _open(pathname, flags); assert(r < 0 || (r < BASE_SOCKET_FD && r < BASE_TIMER_FD)); -@@ -972,6 +974,8 @@ int close(int fd) { +@@ -1018,6 +1020,8 @@ int close(int fd) { return 0; } diff --git a/chrony-service-helper.patch b/chrony-service-helper.patch index bfda129..618d0a2 100644 --- a/chrony-service-helper.patch +++ b/chrony-service-helper.patch @@ -1,12 +1,10 @@ -Index: chrony-2.3/examples/chronyd.service -=================================================================== ---- chrony-2.3.orig/examples/chronyd.service -+++ chrony-2.3/examples/chronyd.service -@@ -8,6 +8,7 @@ Type=forking +--- chrony-3.1/examples/chronyd.service 2017-01-31 05:22:11.000000000 -0500 ++++ chrony-3.1/examples/chronyd.service 2017-01-31 12:00:01.000000000 -0500 +@@ -10,6 +10,7 @@ PIDFile=/var/run/chronyd.pid EnvironmentFile=-/etc/sysconfig/chronyd ExecStart=/usr/sbin/chronyd $OPTIONS +ExecStartPost=/usr/share/chrony-helper update-daemon - - [Install] - WantedBy=multi-user.target + PrivateTmp=yes + ProtectHome=yes + ProtectSystem=full diff --git a/chrony.changes b/chrony.changes index b55331b..fea04e3 100644 --- a/chrony.changes +++ b/chrony.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Jan 31 16:38:05 UTC 2017 - mpost@suse.com + +- Upgraded to version 3.1: + - Enhancements + - Add support for precise cross timestamping of PHC on Linux + - Add minpoll, precision, nocrossts options to hwtimestamp directive + - Add rawmeasurements option to log directive and modify measurements + option to log only valid measurements from synchronised sources + - Allow sub-second polling interval with NTP sources + - Bug fixes + - Fix time smoothing in interleaved mode +- Upgraded clknetsim to version ce89a1b. +- Reworked the following patches to fit the new versions + - chrony-config.patch + - chrony-service-helper.patch + - chrony-fix-open.patch + ------------------------------------------------------------------- Mon Jan 16 22:36:09 UTC 2017 - mpost@suse.com diff --git a/chrony.spec b/chrony.spec index 72e4511..b8a4d39 100644 --- a/chrony.spec +++ b/chrony.spec @@ -24,10 +24,10 @@ %bcond_with systemd %bcond_with syscallfilter %endif -%global clknetsim_ver 6bb6519 +%global clknetsim_ver ce89a1b Name: chrony -Version: 3.0 +Version: 3.1 Release: 0 Summary: System Clock Synchronization Client and Server License: GPL-2.0 diff --git a/clknetsim-6bb6519.tar.gz b/clknetsim-6bb6519.tar.gz deleted file mode 100644 index 5d1fb13..0000000 --- a/clknetsim-6bb6519.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41ff25fadcc79bfb0898711662df367c1ec6e3f02aa135c53169837b656875f6 -size 41044 diff --git a/clknetsim-ce89a1b.tar.gz b/clknetsim-ce89a1b.tar.gz new file mode 100644 index 0000000..381245c --- /dev/null +++ b/clknetsim-ce89a1b.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cdf8e6eba53ec335020b8eaf7141c4cddf886f94f8ca2a2d41c43ff856ae262 +size 42107