Subject: bug#32303: closed (Re: [bug#32303] [PATCH] gnu: Patch duplicity with --ignore-mdc-error.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 04 Aug 2018 07:50:02 +0000

Your bug report

#32303: [PATCH] gnu: Patch duplicity with --ignore-mdc-error.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
32303: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32303
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#32303] [PATCH] gnu: Patch duplicity with --ignore-mdc-error.
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Sat, 04 Aug 2018 08:49:43 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Christopher Baines <[email-masked]> writes:

> Modify the package to patch gnu.py with an unreleased upstream change to fix
> duplicity working with recent releases of GnuPG. This change make the package
> build again.
>
> * gnu/packages/backup.scm (duplicity)[arguments]: Patch gnu.py within the
> patch-source phase.
> ---
>  gnu/packages/backup.scm | 9 +++++++++
>  1 file changed, 9 insertions(+)

Pushed now :)

Subject: [PATCH] gnu: Patch duplicity with --ignore-mdc-error.
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Sun, 29 Jul 2018 16:41:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Modify the package to patch gnu.py with an unreleased upstream change to fix
duplicity working with recent releases of GnuPG. This change make the package
build again.

* gnu/packages/backup.scm (duplicity)[arguments]: Patch gnu.py within the
patch-source phase.
---
 gnu/packages/backup.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 9884f58fc..0733d9c34 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -105,6 +105,15 @@
              (substitute* "duplicity/gpginterface.py"
                (("self.call = 'gpg'")
                 (string-append "self.call = '" (assoc-ref inputs "gnupg") "/bin/gpg'")))
+
+             ;; This matches up with an unreleased upstream fix, it should be
+             ;; removed when the package is updated
+             ;; https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/revision/1308
+             (substitute* "duplicity/gpg.py"
+               (("--no-secmem-warning'\\)")
+                "--no-secmem-warning')
+        gnupg.options.extra_args.append('--ignore-mdc-error')"))
+
              (substitute* '("testing/functional/__init__.py"
                             "testing/overrides/bin/lftp")
                (("/bin/sh") (which "sh")))
-- 
2.18.0