aboutsummaryrefslogtreecommitdiffstats
path: root/main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-18 13:18:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-18 13:50:24 +0000
commit54252930687e5adf0de0ec3d4ff63ebcc8276bad (patch)
tree6d9fb7eb5d413750b5f3d2f7337b2e203a3786ed /main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch
parent85a152083a1c9c95cd948041b4f9b4ddcc4c72e3 (diff)
downloadaports-54252930687e5adf0de0ec3d4ff63ebcc8276bad.tar.bz2
aports-54252930687e5adf0de0ec3d4ff63ebcc8276bad.tar.xz
main/rdiff-backup: rebuild with librsync-1.0
Diffstat (limited to 'main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch')
-rw-r--r--main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch b/main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch
new file mode 100644
index 0000000000..ce23c8a812
--- /dev/null
+++ b/main/rdiff-backup/rdiff-backup-1.2.8-librsync-1.0.0.patch
@@ -0,0 +1,20 @@
+Patch by Roman Tereshonkov and Kari Hautio for rdiff-backup <= 1.2.8 to avoid a build failure with
+librsync >= 1.0.0 (which is a security bugfix release). The discussion and solution finding can be
+found at https://bugs.launchpad.net/duplicity/+bug/1416344 (for duplicity).
+
+--- rdiff-backup-1.2.8/_librsyncmodule.c 2009-03-16 15:36:21.000000000 +0100
++++ rdiff-backup-1.2.8/_librsyncmodule.c.librsync-1.0.0 2015-03-02 00:54:24.000000000 +0100
+@@ -59,8 +59,13 @@
+ if (sm == NULL) return NULL;
+ sm->x_attr = NULL;
+
++#ifdef RS_DEFAULT_STRONG_LEN
+ sm->sig_job = rs_sig_begin((size_t)blocklen,
+ (size_t)RS_DEFAULT_STRONG_LEN);
++#else
++ sm->sig_job = rs_sig_begin((size_t)blocklen,
++ (size_t)8, RS_MD4_SIG_MAGIC);
++#endif
+ return (PyObject*)sm;
+ }
+