Hello community,

here is the log from the commit of package tgt for openSUSE:Factory checked in 
at 2018-08-15 10:36:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tgt (Old)
 and      /work/SRC/openSUSE:Factory/.tgt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tgt"

Wed Aug 15 10:36:57 2018 rev:34 rq:629016 version:1.0.60

Changes:
--------
--- /work/SRC/openSUSE:Factory/tgt/tgt.changes  2017-11-24 10:55:48.005371382 
+0100
+++ /work/SRC/openSUSE:Factory/.tgt.new/tgt.changes     2018-08-15 
10:36:59.604138401 +0200
@@ -1,0 +2,8 @@
+Sun Aug 12 01:11:13 UTC 2018 - ldun...@suse.com
+
+- Fixing build issue with "major()" and a pointer
+  comparison warning while I was at it, adding patches:
+  * tgt-include-sys-macros-for-major.patch
+  * tgt-compare-pointer-to-null.patch
+
+-------------------------------------------------------------------

New:
----
  tgt-compare-pointer-to-null.patch
  tgt-include-sys-macros-for-major.patch

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

Other differences:
------------------
++++++ tgt.spec ++++++
--- /var/tmp/diff_new_pack.sOKbeF/_old  2018-08-15 10:37:00.204139494 +0200
+++ /var/tmp/diff_new_pack.sOKbeF/_new  2018-08-15 10:37:00.204139494 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tgt
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -25,7 +25,7 @@
 Version:        1.0.60
 Release:        0
 Summary:        Generic Linux target framework (tgt)
-License:        GPL-2.0
+License:        GPL-2.0-only
 Group:          System/Daemons
 Url:            http://stgt.sourceforge.net/
 Source:         https://github.com/fujita/tgt/archive/v%{version}.tar.gz
@@ -36,6 +36,8 @@
 Patch3:         setup-tgt-conf-d.patch
 Patch4:         %{name}-handle-access-of-a-target-that-has-been-removed
 Patch5:         %{name}-missing-module-directory-not-an-error
+Patch6:         %{name}-include-sys-macros-for-major.patch
+Patch7:         %{name}-compare-pointer-to-null.patch
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  libaio-devel
 BuildRequires:  libxslt
@@ -60,6 +62,8 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
 %ifarch ppc ppc64 ppc64le

++++++ tgt-compare-pointer-to-null.patch ++++++
diff -aurp tgt-1.0.60.orig/usr/tgtd.c tgt-1.0.60/usr/tgtd.c
--- tgt-1.0.60.orig/usr/tgtd.c  2015-07-01 17:10:39.000000000 -0700
+++ tgt-1.0.60/usr/tgtd.c       2018-08-11 18:08:50.707873331 -0700
@@ -310,7 +310,7 @@ int call_program(const char *cmd, void (
        pos = arg;
        str_spacecpy(&pos, cmd);
        if (strchr(cmd, ' ')) {
-               while (pos != '\0')
+               while (pos != NULL)
                        argv[i++] = strsep(&pos, " ");
        } else
                argv[i++] = arg;
++++++ tgt-include-sys-macros-for-major.patch ++++++
diff -aurp tgt-1.0.60.orig/usr/bs_sg.c tgt-1.0.60/usr/bs_sg.c
--- tgt-1.0.60.orig/usr/bs_sg.c 2015-07-01 17:10:39.000000000 -0700
+++ tgt-1.0.60/usr/bs_sg.c      2018-08-11 18:03:25.489712435 -0700
@@ -36,6 +36,7 @@
 #include <sys/stat.h>
 #include <sys/epoll.h>
 #include <scsi/sg.h>
+#include <sys/sysmacros.h>
 
 #include "bsg.h" /* Copied from include/linux/bsg.h */
 #include "list.h"

Reply via email to