Package: src:python-gnupg
Version: 0.3.8-2
Severity: serious
Tags: patch

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)"
but it failed:

---------------------------------------------------------------------
ERROR: test_deletion (__main__.GPGTestCase)
Test that key deletion works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_gnupg.py", line 102, in setUp
      self.gpg = gpg = gnupg.GPG(gnupghome=hd, gpgbinary=GPGBINARY)
        File "/<<PKGBUILDDIR>>/gnupg.py", line 741, in __init__
            result.stderr))
            ValueError: Error invoking gpg: 126:
/<<PKGBUILDDIR>>/debian/bin/gpg: 6: exec: : Permission denied
---------------------------------------------------------------------

I guess the package relies on gnupg being present during the build,
but gnupg is not essential.

Trivial (but untested) patch attached. Please try to reproduce the
error first on a chroot not having gnupg installed because I may be
wrong about the reason why this fails.

Thanks.
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Maintainer: Elena Grandi <valhall...@trueelena.org>
 Uploaders: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
 Section: python
 Priority: optional
-Build-Depends: python-all (>= 2.6.6-3~), python3-all (>= 3.1.2-7~), debhelper 
(>= 9), dh-python
+Build-Depends: python-all (>= 2.6.6-3~), python3-all (>= 3.1.2-7~), debhelper 
(>= 9), dh-python, gnupg
 Standards-Version: 3.9.6
 Homepage: https://bitbucket.org/vinay.sajip/python-gnupg
 Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-gnupg.git

Reply via email to