Hello community,

here is the log from the commit of package csync for openSUSE:Factory checked 
in at 2018-11-10 16:58:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/csync (Old)
 and      /work/SRC/openSUSE:Factory/.csync.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "csync"

Sat Nov 10 16:58:15 2018 rev:24 rq:645680 version:0.50.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/csync/csync.changes      2015-06-30 
10:19:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.csync.new/csync.changes 2018-11-10 
16:59:15.659762136 +0100
@@ -1,0 +2,6 @@
+Tue Oct 30 20:29:59 UTC 2018 - Klaas Freitag <[email protected]>
+
+- Add fix-missing-const.patch: Fix a compile error on Leap 15.1 
+  Fixes boo#113889
+
+-------------------------------------------------------------------

New:
----
  fix-missing-const.patch

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

Other differences:
------------------
++++++ csync.spec ++++++
--- /var/tmp/diff_new_pack.YgonW9/_old  2018-11-10 16:59:16.159761525 +0100
+++ /var/tmp/diff_new_pack.YgonW9/_new  2018-11-10 16:59:16.159761525 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package csync
 #
-# Copyright (c) 2015 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -31,7 +31,7 @@
 Version:        0.50.0
 Release:        0
 Summary:        A user level bidirectional client only file synchronizer
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Productivity/Networking/Other
 Url:            http://www.csync.org/
 Source0:        %{name}-%{version}.tar.bz2
@@ -39,6 +39,8 @@
 # PATCH-FIX-OPENSUSE fix-cmake-on-pre-12.patch
 Patch0:         fix-cmake-on-pre-12.patch
 Patch1:         csync_log.h.patch
+# PATCH-FIX-OPENSUSE fix-missing-const.patch
+Patch2:         fix-missing-const.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -48,7 +50,7 @@
 
 %package -n libcsync0
 Summary:        A user level bidirectional client only file synchronizer
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          System/Libraries
 %if 0%{?suse_version} > 1030
 Recommends:     libcsync-plugin-smb
@@ -62,7 +64,7 @@
 
 %package -n libcsync-plugin-smb
 Summary:        SMB plugin for csync
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          System/Libraries
 Requires:       libcsync0 = %{version}
 
@@ -72,7 +74,7 @@
 
 %package -n libcsync-plugin-sftp
 Summary:        A user level bidirectional client only file synchronizer
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Productivity/Networking/Other
 Requires:       libcsync0 = %{version}
 
@@ -84,7 +86,7 @@
 %if 0%{?suse_version} >= 1200
 %package -n libcsync-plugin-owncloud
 Summary:        Owncloud plugin for csync
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          System/Libraries
 Requires:       libcsync0 = %{version}
 BuildRequires:  libneon-devel
@@ -95,7 +97,7 @@
 
 %package -n libcsync-devel
 Summary:        Development files for csync
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Development/Libraries/C and C++
 Requires:       libcsync0 = %{version}
 
@@ -105,7 +107,7 @@
 
 %package -n libcsync-devel-doc
 Summary:        Developer documentation for csync
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Development/Languages/C and C++
 
 %description -n libcsync-devel-doc
@@ -114,7 +116,7 @@
 
 %package -n libcsync-doc
 Summary:        User documentation for csync
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Development/Languages/C and C++
 
 %description -n libcsync-doc
@@ -126,6 +128,7 @@
 %patch0 -p1
 %endif
 %patch1 -p1
+%patch2 -p1
 
 %build
 if test ! -e "build"; then

++++++ fix-missing-const.patch ++++++
diff --git a/modules/csync_smb.c b/modules/csync_smb.c
index 2edc630..2b81d72 100644
--- a/modules/csync_smb.c
+++ b/modules/csync_smb.c
@@ -49,7 +49,6 @@ static void get_auth_data_with_context_fn(SMBCCTX *smb_ctx,
     char *pw, int pwlen)
 {
   static int try_krb5 = 1;
-  char *h;
 
   (void) smb_ctx;
   (void) shr;
@@ -73,7 +72,7 @@ static void get_auth_data_with_context_fn(SMBCCTX *smb_ctx,
   }
 
   /* check for an existing user */
-  h = smbc_getUser(smb_ctx);
+  const char* h = smbc_getUser(smb_ctx);
   if (h != NULL) {
     /* The username is known from the url. */
     DEBUG_SMB(("csync_smb - have username from url: %s\n", h));

Reply via email to