1Patch by Roman Tereshonkov and Kari Hautio for rdiff-backup <= 1.2.8 to avoid a build failure with
2librsync >= 1.0.0 (which is a security bugfix release). The discussion and solution finding can be
3found at https://bugs.launchpad.net/duplicity/+bug/1416344 (for duplicity).
4
5--- rdiff-backup-1.2.8/_librsyncmodule.c 2009-03-16 15:36:21.000000000 +0100
6+++ rdiff-backup-1.2.8/_librsyncmodule.c.librsync-1.0.0 2015-03-02 00:54:24.000000000 +0100
7@@ -59,8 +59,13 @@
8 if (sm == NULL) return NULL;
9 sm->x_attr = NULL;
10
11+#ifdef RS_DEFAULT_STRONG_LEN
12 sm->sig_job = rs_sig_begin((size_t)blocklen,
13 (size_t)RS_DEFAULT_STRONG_LEN);
14+#else
15+ sm->sig_job = rs_sig_begin((size_t)blocklen,
16+ (size_t)8, RS_MD4_SIG_MAGIC);
17+#endif
18 return (PyObject*)sm;
19 }
20