mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-16 15:13:18 +01:00
Merge branch 'release'
Merge changes to use gpgconf --create-socketdir
This commit is contained in:
commit
9951598d11
4 changed files with 49 additions and 0 deletions
12
NEWS
12
NEWS
|
@ -1,3 +1,15 @@
|
||||||
|
Notmuch 0.23.6 (UNRELEASED)
|
||||||
|
===========================
|
||||||
|
|
||||||
|
Test Suite
|
||||||
|
----------
|
||||||
|
|
||||||
|
Use gpgconf --create-socketdir if available.
|
||||||
|
|
||||||
|
GnuPG has a facility to use sockets in /run or /var/run to avoid
|
||||||
|
problems with long socket paths, but this is not enabled by default
|
||||||
|
for GNUPGHOME other than $HOME/.gnupg. Enable it, if possible.
|
||||||
|
|
||||||
Notmuch 0.23.5 (2017-01-09)
|
Notmuch 0.23.5 (2017-01-09)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
|
16
configure
vendored
16
configure
vendored
|
@ -612,6 +612,19 @@ 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
|
||||||
|
@ -1186,6 +1199,9 @@ 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,3 +1,10 @@
|
||||||
|
notmuch (0.23.5-2) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Use gpgconf --create-socketdir to create gpg-agent sockets for
|
||||||
|
test suite.
|
||||||
|
|
||||||
|
-- David Bremner <bremner@debian.org> Tue, 21 Feb 2017 07:51:08 -0400
|
||||||
|
|
||||||
notmuch (0.23.5-1) unstable; urgency=medium
|
notmuch (0.23.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Remove RUNPATH from /usr/bin/notmuch
|
* Remove RUNPATH from /usr/bin/notmuch
|
||||||
|
|
|
@ -230,10 +230,19 @@ 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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1277,6 +1286,11 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue