Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock
Control: block -1 by 682648

Please unblock package python-gnupg

The python-gnupg currently has a single bug. Unfortunately it is a FTBFS
#682648. The test suite hangs, cause the virtualized host cannot gather
random bits in a reasonable amount of time (1 hour). A new upstream
version was suggested as a workaround, but it was never uploaded and it
didn't seem to be in the spirit of minimal changes. So I prepared my own
NMU shipping a wrapper binary for gpg, that adds --quick-random if
--gen-key is also present. This speeds up the test suite and should make
it terminate on virtualized systems as well. Please find the full
.debdiff attached, but note that the executable permission of
debian/bin/gpg cannot be represented in the diff. The upload currently
sits in DELAYED (thanks to Paul Tagliamonte) to give the maintainer time
to react.

unblock python-gnupg/0.3.0-1.1

Helmut
diff -Nru python-gnupg-0.3.0/debian/bin/gpg python-gnupg-0.3.0/debian/bin/gpg
--- python-gnupg-0.3.0/debian/bin/gpg   1970-01-01 01:00:00.000000000 +0100
+++ python-gnupg-0.3.0/debian/bin/gpg   2012-10-22 23:26:17.000000000 +0200
@@ -0,0 +1,7 @@
+#!/bin/sh
+GPG=`which -a gpg | uniq | tail -n+2 | head -n1`
+if echo "$*" | grep -q gen-key; then
+       exec "$GPG" --quick-random "$@"
+else
+       exec "$GPG" "$@"
+fi
diff -Nru python-gnupg-0.3.0/debian/changelog 
python-gnupg-0.3.0/debian/changelog
--- python-gnupg-0.3.0/debian/changelog 2012-05-18 12:04:19.000000000 +0200
+++ python-gnupg-0.3.0/debian/changelog 2012-10-22 23:30:49.000000000 +0200
@@ -1,3 +1,11 @@
+python-gnupg (0.3.0-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Work around test suite hangs by adding --quick-random when generating
+    keys. Closes: #682648
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 22 Oct 2012 23:30:19 +0200
+
 python-gnupg (0.3.0-1) unstable; urgency=low
 
   * New upstream release
diff -Nru python-gnupg-0.3.0/debian/rules python-gnupg-0.3.0/debian/rules
--- python-gnupg-0.3.0/debian/rules     2012-05-17 11:16:39.000000000 +0200
+++ python-gnupg-0.3.0/debian/rules     2012-10-22 23:30:14.000000000 +0200
@@ -18,12 +18,12 @@
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
        set -ex; for py in $(shell pyversions -r -v); do \
-               PYTHONPATH=$(CURDIR)/build/lib.*-$$py  python$$py test_gnupg.py 
;\
+               PATH=$(CURDIR)/debian/bin:$$PATH 
PYTHONPATH=$(CURDIR)/build/lib.*-$$py  python$$py test_gnupg.py ;\
        done
        set -ex; for python in $(shell py3versions -r); do \
                cp test_gnupg.py test_gnupg_3.py ;\
                2to3 -w test_gnupg_3.py ;\
-               PYTHONPATH=$(CURDIR)/build/lib $$python test_gnupg_3.py ;\
+               PATH=$(CURDIR)/debian/bin:$$PATH PYTHONPATH=$(CURDIR)/build/lib 
$$python test_gnupg_3.py ;\
                rm test_gnupg_3.py ;\
        done
 endif

Reply via email to