[Pkg-gnupg-commit] [gnupg2] 02/03: avoid test suite failures when HOME does not exist
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Aug 31 18:39:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit f6c06268bdb65068686d52700c35bb3ba628b663
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Wed Aug 31 12:37:10 2016 -0400
avoid test suite failures when HOME does not exist
---
...-suite-failures-when-HOME-is-non-existent.patch | 37 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 38 insertions(+)
diff --git a/debian/patches/0006-avoid-test-suite-failures-when-HOME-is-non-existent.patch b/debian/patches/0006-avoid-test-suite-failures-when-HOME-is-non-existent.patch
new file mode 100644
index 0000000..82ae495
--- /dev/null
+++ b/debian/patches/0006-avoid-test-suite-failures-when-HOME-is-non-existent.patch
@@ -0,0 +1,37 @@
+From: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
+Date: Wed, 31 Aug 2016 12:34:39 -0400
+Subject: avoid test suite failures when $HOME is non-existent
+
+When $HOME doesn't exist, the test suite can't run:
+
+0 dkg at alice:~$ HOME=/does-not-exist gpg --with-colons --list-config
+gpg: Fatal: can't create directory '/does-not-exist/.gnupg':
+ No such file or directory
+2 dkg at alice:~$
+
+I'm not sure why this suddenly matters (it didn't in 2.1.14) but it's
+causing build failures on the debian buildd's now.
+---
+ tests/openpgp/defs.scm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/openpgp/defs.scm b/tests/openpgp/defs.scm
+index 4a968da..549d261 100644
+--- a/tests/openpgp/defs.scm
++++ b/tests/openpgp/defs.scm
+@@ -96,6 +96,7 @@
+ (define (get-config what)
+ (string-split (caddar (gpg-with-colons `(--list-config ,what))) #\;))
+
++(setenv "GNUPGHOME" (getcwd) #t)
+ (define all-pubkey-algos (get-config "pubkeyname"))
+ (define all-hash-algos (get-config "digestname"))
+ (define all-cipher-algos (get-config "ciphername"))
+@@ -119,7 +120,6 @@
+ (wait-processes (list GPG GPG) (list task0 task1) #t))))
+
+ (setenv "GPG_AGENT_INFO" "" #t)
+-(setenv "GNUPGHOME" (getcwd) #t)
+
+ ;;
+ ;; GnuPG helper.
diff --git a/debian/patches/series b/debian/patches/series
index 3f854c0..91d2cc4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
0003-avoid-regenerating-defsincdate-use-shipped-file.patch
0004-spelling-s-achived-achieved-and-s-alternativly-alter.patch
0005-gpg-Fix-regression-in-gpgv-s-printing-of-the-keyid.patch
+0006-avoid-test-suite-failures-when-HOME-is-non-existent.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list