]> git.notmuchmail.org Git - notmuch/commitdiff
Merge branch 'release'
authorDavid Bremner <david@tethera.net>
Wed, 1 Mar 2017 01:21:07 +0000 (21:21 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 1 Mar 2017 01:21:07 +0000 (21:21 -0400)
Second gnugpg test suite fix

NEWS
bindings/python/notmuch/version.py
configure
debian/changelog
test/test-lib-common.sh
test/test-lib.sh
version

diff --git a/NEWS b/NEWS
index 3b25925ff3e23e3e7cb26a9a04d578346415bf06..7f25ca795eb252e95a73a6781b6ca1d5c1376beb 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,16 @@
+Notmuch 0.23.7 (2017-02-28)
+===========================
+
+Test Suite
+----------
+
+Drop use of gpgconf --create-socketdir. Move $GNUPGHOME to /tmp.
+
+  It turns out the hardcoded use of /run/user in gpg doesn't work out
+  that well in some environments. The more low tech fix is to move all
+  of $GNUPGHOME to somewhere where we can control the length of the
+  paths.
+
 Notmuch 0.23.6 (2017-02-27)
 ===========================
 
index 8d700260049898cd4bae11280c8a6a44cb5b3137..e1a495227c98833c0af31bd3aceefc1414a9749d 100644 (file)
@@ -1,3 +1,3 @@
 # this file should be kept in sync with ../../../version
-__VERSION__ = '0.23.6'
+__VERSION__ = '0.23.7'
 SOVERSION = '4'
index d0d8f18acef8a3d2f5cfbbf2c70361b0410e0af0..fa77eb8fd4b7b406f2b3a097137c4c5001c285f9 100755 (executable)
--- a/configure
+++ b/configure
@@ -612,19 +612,6 @@ if [ $WITH_DOCS = "1" ] ; then
     fi
 fi
 
-have_gpgconf_socketdir=0
-printf "Checking for gpgconf --{create,remove}-socketdir... "
-if gpgconf --dump-options > /dev/null ; then
-    if gpgconf --dump-options | grep -q create-socketdir ; then
-       printf "Yes.\n"
-       have_gpgconf_socketdir=1
-    else
-       printf "No.\n"
-    fi
-else
-    printf "No. (missing or broken gpgconf?)\n"
-fi
-
 if [ $WITH_DESKTOP = "1" ]; then
     printf "Checking if desktop-file-install is available... "
     if command -v desktop-file-install > /dev/null; then
@@ -1199,9 +1186,6 @@ NOTMUCH_PYTHON=${python}
 # Are the ruby development files (and ruby) available? If not skip
 # building/testing ruby bindings.
 NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
-
-# Recent enough gnupg to support gpgconf --create-socketdir?
-NOTMUCH_HAVE_GPGCONF_SOCKETDIR=${have_gpgconf_socketdir}
 EOF
 
 # Finally, after everything configured, inform the user how to continue.
index b9b4992e6b7e4da154cf89987b78712b59d2d5a0..f3167549b37d1fb0d31a1f8a7f4be30b61240e66 100644 (file)
@@ -1,10 +1,9 @@
-notmuch (0.23.6-1) unstable; urgency=medium
+notmuch (0.23.7-1) unstable; urgency=medium
 
-  * Use gpgconf --create-socketdir to create gpg-agent sockets for
-    test suite.
+  * Move test suite $GNUPGHOME to /tmp to avoid problems with long build paths.
   * Fix read-after-free bug in `notmuch new`.
 
- -- David Bremner <bremner@debian.org>  Mon, 27 Feb 2017 06:56:28 -0400
+ -- David Bremner <bremner@debian.org>  Tue, 28 Feb 2017 20:39:30 -0400
 
 notmuch (0.23.5-1) unstable; urgency=medium
 
index 03ef1d2d02467674f4f096fcd872a409fe7421fe..a96cfbeba019c081ef0f164ddffaad90561f06f3 100644 (file)
@@ -158,7 +158,6 @@ export HOME="${TMP_DIRECTORY}/home"
 mkdir -p "${HOME}"
 
 MAIL_DIR="${TMP_DIRECTORY}/mail"
-export GNUPGHOME="${TMP_DIRECTORY}/gnupg"
 export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
 
 mkdir -p "${test}"
index d8e159437ca9b8fa159e2a776260adc36025e86a..02634ac1cebc88bb1673c88495f427bca82aef7a 100644 (file)
@@ -230,19 +230,10 @@ test_fixed=0
 test_broken=0
 test_success=0
 
-
-_shutdown_gpg_agent () {
-    if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} = 1 ]; then
-       gpgconf --kill gpg-agent
-       gpgconf --remove-socketdir
-    fi
-}
-
 _exit_common () {
        code=$?
        trap - EXIT
        set +ex
-       _shutdown_gpg_agent
        rm -rf "$TEST_TMPDIR"
 }
 
@@ -280,6 +271,8 @@ die () {
 GIT_EXIT_OK=
 # Note: TEST_TMPDIR *NOT* exported!
 TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX")
+# Put GNUPGHOME in TMPDIR to avoid problems with long paths.
+export GNUPGHOME="${TEST_TMPDIR}/gnupg"
 trap 'trap_exit' EXIT
 trap 'trap_signal' HUP INT TERM
 
@@ -1286,11 +1279,6 @@ test_init_ () {
 
 . ./test-lib-common.sh || exit 1
 
-# we need the setting of GNUPGHOME in test-lib-common.sh
-if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} = 1 ]; then
-    gpgconf --create-socketdir
-fi
-
 emacs_generate_script
 
 
diff --git a/version b/version
index df47809d3179683100e339c3e58007ef5d3eded9..379191a43b01d4e7e023f969207e33794d408dfc 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.23.6
+0.23.7