[packages/dateutils] - release 2, fix x32 build by not including unused sysctl.h

adamg adamg at pld-linux.org
Tue Mar 19 13:53:41 CET 2019


commit 64d0e875ed77ade0aec087856f985bd00130b437
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Tue Mar 19 13:53:34 2019 +0100

    - release 2, fix x32 build by not including unused sysctl.h

 dateutils-no-sysctl-h.patch | 12 ++++++++++++
 dateutils.spec              |  5 +++--
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/dateutils.spec b/dateutils.spec
index 1cd52cc..600550c 100644
--- a/dateutils.spec
+++ b/dateutils.spec
@@ -1,16 +1,16 @@
 Summary:	Command-line date and time calculation, conversion, and comparison
 Name:		dateutils
 Version:	0.4.6
-Release:	1
+Release:	2
 License:	BSD
 Group:		Applications/Console
 Source0:	https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.xz
 # Source0-md5:	d4fa0e85953e4d31491a67729d4b4af1
+Patch0:		%{name}-no-sysctl-h.patch
 URL:		http://www.fresse.org/dateutils/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool
-#Requires:	-
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,6 +20,7 @@ with large amounts of financial data.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/dateutils-no-sysctl-h.patch b/dateutils-no-sysctl-h.patch
new file mode 100644
index 0000000..7b88cb9
--- /dev/null
+++ b/dateutils-no-sysctl-h.patch
@@ -0,0 +1,12 @@
+--- dateutils-0.4.6/build-aux/yuck.c~	2019-03-19 03:06:34.000000000 +0100
++++ dateutils-0.4.6/build-aux/yuck.c	2019-03-19 13:51:31.688833165 +0100
+@@ -65,7 +65,9 @@
+ #include <sys/wait.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
++#if ! defined __linux__
+ #include <sys/sysctl.h>
++#endif
+ #include <time.h>
+ #if defined WITH_SCMVER
+ # include <yuck-scmver.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dateutils.git/commitdiff/64d0e875ed77ade0aec087856f985bd00130b437



More information about the pld-cvs-commit mailing list