Accepting request 293252 from home:dimstar:Factory
- Add csync2-librsync-1.0.0.patch: Fix build with librsync 1.0.0. OBS-URL: https://build.opensuse.org/request/show/293252 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=37
This commit is contained in:
parent
f27cd09b8d
commit
27bc9576df
16
csync2-librsync-1.0.0.patch
Normal file
16
csync2-librsync-1.0.0.patch
Normal file
@ -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)
|
@ -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
|
||||
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user