]> git.pld-linux.org Git - packages/csync2.git/commitdiff
- fix building with librsync 1.0+ master auto/th/csync2-2.0-3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 22 Apr 2018 11:20:31 +0000 (13:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 22 Apr 2018 11:20:31 +0000 (13:20 +0200)
- rel 3

csync2.spec
librsync.patch [new file with mode: 0644]

index abf4616c7df697f27282785d3f6d50ecf9de0fdd..58cb91d30dbec46a22a028f030bb2079a0eb572d 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Cluster sync tool
 Summary(pl.UTF-8):     Narzędzie do synchronizacji klastra
 Name:          csync2
 Version:       2.0
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Daemons
 Source0:       http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz
@@ -12,6 +12,7 @@ Source2:      %{name}.inet
 Source3:       %{name}.sysconfig
 Patch0:                %{name}-fix-sonames.patch
 Patch1:                %{name}-docdata.patch
+Patch2:                librsync.patch
 URL:           http://oss.linbit.com/csync2/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -102,6 +103,7 @@ klastrów HA, HPC, COW oraz farm serwerów.
 %setup -q
 %patch0 -p1
 %patch1 -p0
+%patch2 -p1
 
 %build
 %{__aclocal}
diff --git a/librsync.patch b/librsync.patch
new file mode 100644 (file)
index 0000000..f45cd07
--- /dev/null
@@ -0,0 +1,14 @@
+--- csync2-2.0/rsync.c~        2013-05-02 13:19:36.000000000 +0200
++++ csync2-2.0/rsync.c 2018-04-22 13:19:46.761262945 +0200
+@@ -461,7 +461,11 @@
+               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 /* librsync >= 1.0.0 */
++      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)
This page took 0.077842 seconds and 4 git commands to generate.