[duplicity/f22] Rebuild for librsync 1.0.0 (#1126712)
Robert Scheck
robert at fedoraproject.org
Mon Mar 2 00:31:53 UTC 2015
commit 34191c247a8f0aa526a3cc82c7e415b723529bfd
Author: Robert Scheck <robert at fedoraproject.org>
Date: Mon Mar 2 01:31:47 2015 +0100
Rebuild for librsync 1.0.0 (#1126712)
duplicity-0.6.25-librsync-1.0.0.patch | 20 ++++++++++++++++++++
duplicity.spec | 7 ++++++-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/duplicity-0.6.25-librsync-1.0.0.patch b/duplicity-0.6.25-librsync-1.0.0.patch
new file mode 100644
index 0000000..8f81682
--- /dev/null
+++ b/duplicity-0.6.25-librsync-1.0.0.patch
@@ -0,0 +1,20 @@
+Patch by Roman Tereshonkov and Kari Hautio for duplicity <= 0.6.25 to avoid a build failure with librsync
+>= 1.0.0 (which is a security bugfix release). https://bugs.launchpad.net/duplicity/+bug/1416344 contains
+the discussion and solution finding.
+
+--- duplicity-0.6.25/duplicity/_librsyncmodule.c 2014-10-20 21:09:10.000000000 +0200
++++ duplicity-0.6.25/duplicity/_librsyncmodule.c.librsync-1.0.0 2015-03-02 01:29:00.000000000 +0100
+@@ -67,8 +67,13 @@
+ sm = PyObject_New(_librsync_SigMakerObject, &_librsync_SigMakerType);
+ if (sm == NULL) return NULL;
+
++#ifdef RS_DEFAULT_STRONG_LEN
+ sm->sig_job = rs_sig_begin((size_t)blocklen,
+ (size_t)RS_DEFAULT_STRONG_LEN);
++#else /* librsync >= 1.0.0 */
++ sm->sig_job = rs_sig_begin((size_t)blocklen,
++ (size_t)8, RS_MD4_SIG_MAGIC);
++#endif
+ return (PyObject*)sm;
+ }
+
diff --git a/duplicity.spec b/duplicity.spec
index 2d78b7e..000f66e 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,11 +3,12 @@
Summary: Encrypted bandwidth-efficient backup using rsync algorithm
Name: duplicity
Version: 0.6.25
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/Archiving
URL: http://www.nongnu.org/duplicity/
Source: http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.gz
+Patch0: duplicity-0.6.25-librsync-1.0.0.patch
Requires: python-GnuPGInterface >= 0.3.2, gnupg >= 1.0.6
Requires: openssh-clients, ncftp >= 3.1.9, rsync, python-boto >= 0.9d
Requires: python-paramiko python-dropbox python-lockfile
@@ -34,6 +35,7 @@ but not hard links.
%prep
%setup -q
+%patch0 -p1 -b .librsync-1.0.0
%build
%{__python} setup.py build
@@ -71,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/%{name}/cacert.pem
%changelog
+* Sun Mar 01 2015 Robert Scheck <robert at fedoraproject.org> 0.6.25-2
+- Rebuild for librsync 1.0.0 (#1126712)
+
* Thu Feb 26 2015 Jon Ciesla <limburgher at gmail.com> - 0.6.25-1
- 0.6.25.
More information about the scm-commits
mailing list