diff --git a/csync2-librsync-1.0.0.patch b/csync2-librsync-1.0.0.patch new file mode 100644 index 0000000..3d23037 --- /dev/null +++ b/csync2-librsync-1.0.0.patch @@ -0,0 +1,16 @@ +Index: csync2-2.0+git.1368794815.cf835a7/rsync.c +=================================================================== +--- csync2-2.0+git.1368794815.cf835a7.orig/rsync.c ++++ csync2-2.0+git.1368794815.cf835a7/rsync.c +@@ -461,7 +461,11 @@ int csync_rs_sigfile(const char *filenam + goto out; + + csync_debug(3, "Running rs_sig_file() from librsync....\n"); ++#ifdef RS_DEFAULT_STRONG_LEN + result = rs_sig_file(basis_file, sig_file, RS_DEFAULT_BLOCK_LEN, RS_DEFAULT_STRONG_LEN, &stats); ++#else ++ result = rs_sig_file(basis_file, sig_file, RS_DEFAULT_BLOCK_LEN, 8, RS_MD4_SIG_MAGIC, &stats); ++#endif + *sig_file_out = sig_file; + sig_file = NULL; + if (result != RS_DONE) diff --git a/csync2.changes b/csync2.changes index 3ea0d0b..400ddfc 100644 --- a/csync2.changes +++ b/csync2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 26 11:25:01 UTC 2015 - dimstar@opensuse.org + +- Add csync2-librsync-1.0.0.patch: Fix build with librsync 1.0.0. + ------------------------------------------------------------------- Thu Sep 26 09:07:40 UTC 2013 - tserong@suse.com diff --git a/csync2.spec b/csync2.spec index 00e9381..886b268 100644 --- a/csync2.spec +++ b/csync2.spec @@ -1,7 +1,7 @@ # # spec file for package csync2 # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -40,6 +40,8 @@ Patch11: fix-csync2_ssl_cert-filename.patch Patch12: fix-sonames.patch # PATCH-FIX-UPSTREAM -- add-COPYING.patch tserong@suse.com -- ensure COPYING is present in docfiles and thus %doc Patch13: add-COPYING.patch +# PATCH-FIX-UPSTREAM csync2-librsync-1.0.0.patch dimstar@opensuse.org -- Fix build with librsync 1.0.0 +Patch14: csync2-librsync-1.0.0.patch BuildRequires: autoconf BuildRequires: automake @@ -80,6 +82,7 @@ It is expedient for HA-clusters, HPC-clusters, COWs and server farms. %patch11 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 %build export CFLAGS="%{optflags}"