mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
Merge branch 'release'
Second gnugpg test suite fix
This commit is contained in:
commit
508b5c20fa
7 changed files with 20 additions and 37 deletions
13
NEWS
13
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)
|
Notmuch 0.23.6 (2017-02-27)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# this file should be kept in sync with ../../../version
|
# this file should be kept in sync with ../../../version
|
||||||
__VERSION__ = '0.23.6'
|
__VERSION__ = '0.23.7'
|
||||||
SOVERSION = '4'
|
SOVERSION = '4'
|
||||||
|
|
16
configure
vendored
16
configure
vendored
|
@ -612,19 +612,6 @@ if [ $WITH_DOCS = "1" ] ; then
|
||||||
fi
|
fi
|
||||||
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
|
if [ $WITH_DESKTOP = "1" ]; then
|
||||||
printf "Checking if desktop-file-install is available... "
|
printf "Checking if desktop-file-install is available... "
|
||||||
if command -v desktop-file-install > /dev/null; then
|
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
|
# Are the ruby development files (and ruby) available? If not skip
|
||||||
# building/testing ruby bindings.
|
# building/testing ruby bindings.
|
||||||
NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
|
NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
|
||||||
|
|
||||||
# Recent enough gnupg to support gpgconf --create-socketdir?
|
|
||||||
NOTMUCH_HAVE_GPGCONF_SOCKETDIR=${have_gpgconf_socketdir}
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Finally, after everything configured, inform the user how to continue.
|
# Finally, after everything configured, inform the user how to continue.
|
||||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -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
|
* Move test suite $GNUPGHOME to /tmp to avoid problems with long build paths.
|
||||||
test suite.
|
|
||||||
* Fix read-after-free bug in `notmuch new`.
|
* 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
|
notmuch (0.23.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,6 @@ export HOME="${TMP_DIRECTORY}/home"
|
||||||
mkdir -p "${HOME}"
|
mkdir -p "${HOME}"
|
||||||
|
|
||||||
MAIL_DIR="${TMP_DIRECTORY}/mail"
|
MAIL_DIR="${TMP_DIRECTORY}/mail"
|
||||||
export GNUPGHOME="${TMP_DIRECTORY}/gnupg"
|
|
||||||
export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
|
export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
|
||||||
|
|
||||||
mkdir -p "${test}"
|
mkdir -p "${test}"
|
||||||
|
|
|
@ -230,19 +230,10 @@ test_fixed=0
|
||||||
test_broken=0
|
test_broken=0
|
||||||
test_success=0
|
test_success=0
|
||||||
|
|
||||||
|
|
||||||
_shutdown_gpg_agent () {
|
|
||||||
if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} = 1 ]; then
|
|
||||||
gpgconf --kill gpg-agent
|
|
||||||
gpgconf --remove-socketdir
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
_exit_common () {
|
_exit_common () {
|
||||||
code=$?
|
code=$?
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
set +ex
|
set +ex
|
||||||
_shutdown_gpg_agent
|
|
||||||
rm -rf "$TEST_TMPDIR"
|
rm -rf "$TEST_TMPDIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +271,8 @@ die () {
|
||||||
GIT_EXIT_OK=
|
GIT_EXIT_OK=
|
||||||
# Note: TEST_TMPDIR *NOT* exported!
|
# Note: TEST_TMPDIR *NOT* exported!
|
||||||
TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX")
|
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_exit' EXIT
|
||||||
trap 'trap_signal' HUP INT TERM
|
trap 'trap_signal' HUP INT TERM
|
||||||
|
|
||||||
|
@ -1286,11 +1279,6 @@ test_init_ () {
|
||||||
|
|
||||||
. ./test-lib-common.sh || exit 1
|
. ./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
|
emacs_generate_script
|
||||||
|
|
||||||
|
|
||||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
||||||
0.23.6
|
0.23.7
|
||||||
|
|
Loading…
Reference in a new issue