diff --git a/open-isns-fix-586-time.patch b/open-isns-fix-586-time.patch new file mode 100644 index 0000000..4132da7 --- /dev/null +++ b/open-isns-fix-586-time.patch @@ -0,0 +1,25 @@ +diff -aurp a/configure.ac b/configure.ac +--- a/configure.ac 2020-01-23 13:02:36.000000000 -0800 ++++ b/configure.ac 2020-02-01 10:14:08.853538750 -0800 +@@ -17,7 +17,7 @@ AC_PATH_PROG(SH, sh) + dnl C Compiler features + AC_C_INLINE + if test "$GCC" = "yes"; then +- CFLAGS="-Wall -Werror -Wextra $CFLAGS" ++ CFLAGS="-Wall -Wextra $CFLAGS" + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" + fi + +Only in ./open-isns-0.100: .configure.ac.swp +diff -aurp a/isnsdd.c b/isnsdd.c +--- a/isnsdd.c 2020-01-23 13:02:36.000000000 -0800 ++++ b/isnsdd.c 2020-02-01 10:14:04.277547782 -0800 +@@ -401,7 +401,7 @@ check_portal_registration(__attribute__( + continue; + + last_modified = isns_object_last_modified(obj); +- if (last_modified + 2 * interval > now) { ++ if ((time_t)(last_modified + 2 * interval) > now) { + good_portals++; + continue; + } diff --git a/open-isns.changes b/open-isns.changes index af1055e..054f277 100644 --- a/open-isns.changes +++ b/open-isns.changes @@ -23,8 +23,9 @@ Fri Jan 31 22:05:13 UTC 2020 - lduncan@suse.com * Fix compiler complaint about possible alignment issue Replacing open-isns-0.99.tar.xz with open-isns-0.100.tar.xz. Also, added latest (not yet tagged) fixes from upstream, - adding patch: - * open-isns-updates.diff.bz2 + adding patch, and add in a 586-fix, adding: + * open-isns-updates.diff.bz2, and + * open-isns-fix-586-time.patch ------------------------------------------------------------------- Mon Oct 28 17:28:34 UTC 2019 - Lee Duncan diff --git a/open-isns.spec b/open-isns.spec index 20d58e0..50075c8 100644 --- a/open-isns.spec +++ b/open-isns.spec @@ -24,6 +24,7 @@ Version: 0.100 Release: 0 Source: %{name}-%{version}.tar.xz Patch1: %{name}-updates.diff.bz2 +Patch2: %{name}-fix-586-time.patch Url: https://github.com/open-iscsi/%{name} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf @@ -57,6 +58,7 @@ Files to develop an application using the open-isns library. %prep %setup -n %{name}-%{version} %patch1 -p1 +%patch2 -p1 %build %global _lto_cflags %{?_lto_cflags} -ffat-lto-objects