- add patch with support for s390/s390x

This commit is contained in:
Dan Horák 2009-06-08 08:01:49 +00:00
parent f2a824a553
commit 90258c8db2
2 changed files with 18 additions and 1 deletions

12
chrony-1.23-s390.patch Normal file
View File

@ -0,0 +1,12 @@
--- chrony-1.23/io_linux.h.orig 2009-06-08 09:25:23.000000000 +0200
+++ chrony-1.23/io_linux.h 2009-06-08 09:26:24.000000000 +0200
@@ -6,7 +6,8 @@
/* Hmm. These constants vary a bit between systems. */
/* (__sh__ includes both sh and sh64) */
-#if defined(__i386__) || defined(__sh__) || defined(__arm__)||defined(__x86_64__)
+/* (__s390__ includes both s390 and s390x) */
+#if defined(__i386__) || defined(__sh__) || defined(__arm__)||defined(__x86_64__) || defined(__s390__)
#define CHRONY_IOC_NRBITS 8
#define CHRONY_IOC_TYPEBITS 8
#define CHRONY_IOC_SIZEBITS 14

View File

@ -1,6 +1,6 @@
Name: chrony
Version: 1.23
Release: 4.20081106gitbe42b4%{?dist}
Release: 5.20081106gitbe42b4%{?dist}
Summary: An NTP client/server
Group: System Environment/Daemons
@ -19,6 +19,7 @@ Patch2: chrony-1.23-ppc.patch
Patch3: chrony-1.23-gethost.patch
Patch4: chrony-1.23-res.patch
Patch5: chrony-1.23-cap.patch
Patch6: chrony-1.23-s390.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libcap-devel readline-devel bison texinfo
@ -42,6 +43,7 @@ cp -p %{SOURCE6} .
%patch3 -p1 -b .gethost
%patch4 -p1 -b .res
%patch5 -p1 -b .cap
%patch6 -p1 -b .s390
# don't link with ncurses
sed -i 's|-lncurses||' configure
@ -123,6 +125,9 @@ fi
%dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony
%changelog
* Mon Jun 08 2009 Dan Horak <dan[at]danny.cz> 1.23-5.20081106gitbe42b4
- add patch with support for s390/s390x
* Mon Mar 09 2009 Miroslav Lichvar <mlichvar@redhat.com> 1.23-4.20081106gitbe42b4
- fix building with broken libcap header (#483548)