Hello community,

here is the log from the commit of package libfaketime for openSUSE:Factory 
checked in at 2016-06-25 02:22:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libfaketime (Old)
 and      /work/SRC/openSUSE:Factory/.libfaketime.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libfaketime"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libfaketime/libfaketime.changes  2015-02-05 
10:59:45.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libfaketime.new/libfaketime.changes     
2016-06-25 02:22:38.000000000 +0200
@@ -1,0 +2,8 @@
+Mon Jun 20 17:19:50 UTC 2016 - [email protected]
+
+- add patch: libfaketime-0.9.6-gcc6.patch
+  * fix boo#985141
+  * fix nonnull argument 'buf' compared to NULL
+- run spec-cleaner
+
+-------------------------------------------------------------------

New:
----
  libfaketime-0.9.6-gcc6.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libfaketime.spec ++++++
--- /var/tmp/diff_new_pack.IvBeW7/_old  2016-06-25 02:22:38.000000000 +0200
+++ /var/tmp/diff_new_pack.IvBeW7/_new  2016-06-25 02:22:38.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libfaketime
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,30 +21,34 @@
 Release:        0
 Summary:        FakeTime Preload Library
 License:        GPL-2.0
-Group:          Development
+Group:          System/Libraries
 Url:            http://www.code-wizards.com/projects/libfaketime/
 Source:         
http://www.code-wizards.com/projects/libfaketime/%{name}-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM nonnull argument compared to NULL
+Patch:          libfaketime-0.9.6-gcc6.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 report faked system time to programs without having to change the system-wide 
time
 
 %prep
 %setup -q
+%patch -p1
 
 %build
-make %{?_smp_mflags} PREFIX=%_prefix LIBDIRNAME=/%_lib/%name
+make %{?_smp_mflags} PREFIX=%{_prefix} LIBDIRNAME=/%{_lib}/%{name}
 
 %install
-make install DESTDIR=%{buildroot} PREFIX=%_prefix LIBDIRNAME=/%_lib/%name
-rm %buildroot/usr/share/doc/faketime/*
+make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIRNAME=/%{_lib}/%{name}
+rm %{buildroot}%{_datadir}/doc/faketime/*
 
 %files
 %defattr(-,root,root)
 %doc NEWS README COPYING
-%_bindir/faketime
-%dir %_libdir/%name
-%_libdir/%name/libfaketime.so.1
-%_libdir/%name/libfaketimeMT.so.1
-%_mandir/man1/faketime.1*
+%{_bindir}/faketime
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/libfaketime.so.1
+%{_libdir}/%{name}/libfaketimeMT.so.1
+%{_mandir}/man1/faketime.1*
 
 %changelog

++++++ libfaketime-0.9.6-gcc6.patch ++++++
Index: libfaketime-0.9.6/src/libfaketime.c
===================================================================
--- libfaketime-0.9.6.orig/src/libfaketime.c
+++ libfaketime-0.9.6/src/libfaketime.c
@@ -510,13 +510,10 @@ int __xstat (int ver, const char *path,
     return -1;
   }
 
-   if (buf != NULL)
-   {
      if (!fake_stat_disabled)
      {
        fake_statbuf(buf);
      }
-   }
 
   return result;
 }
@@ -539,13 +536,11 @@ int __fxstat (int ver, int fildes, struc
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_statbuf(buf);
     }
-  }
+
   return result;
 }
 
@@ -568,13 +563,11 @@ int __fxstatat(int ver, int fildes, cons
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_statbuf(buf);
     }
-  }
+
   return result;
 }
 #endif
@@ -597,13 +590,11 @@ int __lxstat (int ver, const char *path,
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_statbuf(buf);
     }
-  }
+
   return result;
 }
 
@@ -625,13 +616,11 @@ int __xstat64 (int ver, const char *path
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_stat64buf(buf);
     }
-  }
+
   return result;
 }
 
@@ -653,13 +642,11 @@ int __fxstat64 (int ver, int fildes, str
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_stat64buf(buf);
     }
-  }
+
   return result;
 }
 
@@ -682,13 +669,11 @@ int __fxstatat64 (int ver, int fildes, c
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_stat64buf(buf);
     }
-  }
+
   return result;
 }
 #endif
@@ -711,13 +696,11 @@ int __lxstat64 (int ver, const char *pat
     return -1;
   }
 
-  if (buf != NULL)
-  {
     if (!fake_stat_disabled)
     {
       fake_stat64buf(buf);
     }
-  }
+
   return result;
 }
 #endif

Reply via email to