public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/duplicity] epel10.3: Rebuild for librsync 1.0.0 (#1126712)
Date: Fri, 09 Oct 2026 15:56:15 GMT	[thread overview]
Message-ID: <179156137538.1.8894549592111712404.rpms-duplicity-65743df7bdd8@fedoraproject.org> (raw)

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.
 

                 reply	other threads:[~2026-10-09 15:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179156137538.1.8894549592111712404.rpms-duplicity-65743df7bdd8@fedoraproject.org \
    --to=robert@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox