public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duplicity] epel10.3: Rebuild for librsync 1.0.0 (#1126712)
@ 2026-10-09 15:56 Robert Scheck
  0 siblings, 0 replies; only message in thread
From: Robert Scheck @ 2026-10-09 15:56 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/duplicity
Branch : epel10.3
Commit : 65743df7bdd880442d71d3ac1304aa34039d8b8a
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2015-03-02T00:51:04+01:00
Stats  : +26/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/duplicity/c/65743df7bdd880442d71d3ac1304aa34039d8b8a?branch=epel10.3

Log:
Rebuild for librsync 1.0.0 (#1126712)

---
diff --git a/duplicity-0.7.01-librsync-1.0.0.patch b/duplicity-0.7.01-librsync-1.0.0.patch
new file mode 100644
index 0000000..99be1d1
--- /dev/null
+++ b/duplicity-0.7.01-librsync-1.0.0.patch
@@ -0,0 +1,20 @@
+Patch by Roman Tereshonkov and Kari Hautio for duplicity <= 0.7.01 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.7.01/duplicity/_librsyncmodule.c			2015-01-11 17:50:39.000000000 +0100
++++ duplicity-0.7.01/duplicity/_librsyncmodule.c.librsync-1.0.0		2015-03-02 00:41:54.000000000 +0100
+@@ -58,8 +58,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 51facbf..baa3bd8 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,11 +3,12 @@
 Summary:        Encrypted bandwidth-efficient backup using rsync algorithm
 Name:           duplicity
 Version:        0.7.01
-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.7.01-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@fedoraproject.org> 0.7.01-2
+- Rebuild for librsync 1.0.0 (#1126712)
+
 * Fri Feb 27 2015 Jon Ciesla <limburgher@gmail.com> - 0.7.01-1
 - 0.7.01, BZ 1155100.
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 15:56 [rpms/duplicity] epel10.3: Rebuild for librsync 1.0.0 (#1126712) Robert Scheck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox