[packages/chrony] - rel 5; revert commit which breaks responses on some multihomed machines; https://www.mail-archive.

arekm arekm at pld-linux.org
Tue Apr 28 12:13:27 CEST 2020


commit 56bdbca8c0e0465d3b452fb30b1e0b0315eeb054
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Apr 28 12:13:19 2020 +0200

    - rel 5; revert commit which breaks responses on some multihomed machines; https://www.mail-archive.com/chrony-dev@chrony.tuxfamily.org/msg02152.html

 chrony.spec            |  4 +++-
 dont-force-index.patch | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/chrony.spec b/chrony.spec
index 18f6cdb..8bff36d 100644
--- a/chrony.spec
+++ b/chrony.spec
@@ -3,7 +3,7 @@
 Summary:	An NTP client/server
 Name:		chrony
 Version:	3.5
-Release:	4
+Release:	5
 License:	GPL v2
 Group:		Daemons
 Source0:	http://download.tuxfamily.org/chrony/%{name}-%{version}.tar.gz
@@ -15,6 +15,7 @@ Source4:	%{name}d.init
 Source5:	%{name}.logrotate
 Patch0:		allow-clock_adjtime.patch
 Patch1:		fix-seccomp-build.patch
+Patch2:		dont-force-index.patch
 URL:		http://chrony.tuxfamily.org/
 BuildRequires:	asciidoc
 BuildRequires:	bison
@@ -55,6 +56,7 @@ in permanently connected environments.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 # NOTE: It is not autoconf generated configre
diff --git a/dont-force-index.patch b/dont-force-index.patch
new file mode 100644
index 0000000..32cb39c
--- /dev/null
+++ b/dont-force-index.patch
@@ -0,0 +1,22 @@
+diff --git a/ntp_io.c b/ntp_io.c
+index ec844cb..e92d27e 100644
+--- a/ntp_io.c
++++ b/ntp_io.c
+@@ -827,8 +827,6 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
+ 
+     ipi = (struct in_pktinfo *) CMSG_DATA(cmsg);
+     ipi->ipi_spec_dst.s_addr = htonl(local_addr->ip_addr.addr.in4);
+-    if (local_addr->if_index != INVALID_IF_INDEX)
+-      ipi->ipi_ifindex = local_addr->if_index;
+   }
+ #endif
+ 
+@@ -847,8 +845,6 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
+     ipi = (struct in6_pktinfo *) CMSG_DATA(cmsg);
+     memcpy(&ipi->ipi6_addr.s6_addr, &local_addr->ip_addr.addr.in6,
+         sizeof(ipi->ipi6_addr.s6_addr));
+-    if (local_addr->if_index != INVALID_IF_INDEX)
+-      ipi->ipi6_ifindex = local_addr->if_index;
+   }
+ #endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chrony.git/commitdiff/56bdbca8c0e0465d3b452fb30b1e0b0315eeb054



More information about the pld-cvs-commit mailing list