- Update clknetsim to revision 42b693b
* Drop not needed chrony-fix-open.patch - Build tests with optflags as well - Do not run tests on i586 - Enable signd OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=50
This commit is contained in:
parent
029648ee59
commit
c022e41858
@ -1,22 +0,0 @@
|
|||||||
Index: chrony-3.2/clknetsim-71dbbc509eee05cb29e33468be93d5ba52b79429/client.c
|
|
||||||
===================================================================
|
|
||||||
--- chrony-3.2.orig/clknetsim-71dbbc509eee05cb29e33468be93d5ba52b79429/client.c
|
|
||||||
+++ chrony-3.2/clknetsim-71dbbc509eee05cb29e33468be93d5ba52b79429/client.c
|
|
||||||
@@ -1008,6 +1008,8 @@ int open(const char *pathname, int flags
|
|
||||||
else if (!strcmp(pathname, "/dev/ptp1"))
|
|
||||||
return SYSCLK_FD;
|
|
||||||
|
|
||||||
+ if (!_open)
|
|
||||||
+ _open = (int (*)(const char *pathname, int flags))dlsym(RTLD_NEXT, "open");
|
|
||||||
r = _open(pathname, flags);
|
|
||||||
assert(r < 0 || (r < BASE_SOCKET_FD && r < BASE_TIMER_FD));
|
|
||||||
|
|
||||||
@@ -1026,6 +1028,8 @@ int close(int fd) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (!_close)
|
|
||||||
+ _close = (int (*)(int fd))dlsym(RTLD_NEXT, "close");
|
|
||||||
return _close(fd);
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 3 07:56:06 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update clknetsim to revision 42b693b
|
||||||
|
* Drop not needed chrony-fix-open.patch
|
||||||
|
- Build tests with optflags as well
|
||||||
|
- Do not run tests on i586
|
||||||
|
- Enable signd
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 2 07:52:58 UTC 2018 - mpluskal@suse.com
|
Thu Aug 2 07:52:58 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
10
chrony.spec
10
chrony.spec
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define vendorzone opensuse.
|
%define vendorzone opensuse.
|
||||||
%global clknetsim_ver 71dbbc5
|
%global clknetsim_ver 42b693b
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||||
@ -44,7 +44,6 @@ Patch0: chrony-config.patch
|
|||||||
# Add NTP servers from DHCP when starting service
|
# Add NTP servers from DHCP when starting service
|
||||||
Patch1: chrony-service-helper.patch
|
Patch1: chrony-service-helper.patch
|
||||||
Patch2: chrony-logrotate.patch
|
Patch2: chrony-logrotate.patch
|
||||||
Patch5: chrony-fix-open.patch
|
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -95,7 +94,6 @@ or a different computer.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch5 -p1
|
|
||||||
|
|
||||||
# If this is an openSUSE build, use our vendor zone
|
# If this is an openSUSE build, use our vendor zone
|
||||||
# (2.*pool.ntp.org names include IPv6 addresses). If not
|
# (2.*pool.ntp.org names include IPv6 addresses). If not
|
||||||
@ -132,7 +130,8 @@ export LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
|||||||
%endif
|
%endif
|
||||||
--with-user=chrony \
|
--with-user=chrony \
|
||||||
--with-hwclockfile=%{_sysconfdir}/adjtime \
|
--with-hwclockfile=%{_sysconfdir}/adjtime \
|
||||||
--with-sendmail=%{_sbindir}/sendmail
|
--with-sendmail=%{_sbindir}/sendmail \
|
||||||
|
--enable-ntp-signd
|
||||||
make %{?_smp_mflags} all docs
|
make %{?_smp_mflags} all docs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -173,11 +172,14 @@ install -Dpm 755 %{SOURCE4} \
|
|||||||
install -d %{buildroot}%{_localstatedir}/log/chrony
|
install -d %{buildroot}%{_localstatedir}/log/chrony
|
||||||
touch %{buildroot}%{_localstatedir}/lib/chrony/{drift,rtc}
|
touch %{buildroot}%{_localstatedir}/lib/chrony/{drift,rtc}
|
||||||
|
|
||||||
|
%ifnarch %ix86
|
||||||
%check
|
%check
|
||||||
# Set random seed to get deterministic results
|
# 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
|
make %{?_smp_mflags} -C test/simulation/clknetsim
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group %{name} >/dev/null || groupadd -r %{name}
|
getent group %{name} >/dev/null || groupadd -r %{name}
|
||||||
|
3
clknetsim-42b693b.tar.gz
Normal file
3
clknetsim-42b693b.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2cc12343114ebb9fc96e62404fac4be7fca5d5cb2a8bdc65fdc41948ea0ee449
|
||||||
|
size 41933
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d3f58e70731922bf2d6c8a39256acd0b402a5e125eefe82c5b9542081dac6d23
|
|
||||||
size 41648
|
|
Loading…
Reference in New Issue
Block a user