mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +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)
|
||||
===========================
|
||||
|
||||
|
|
16
configure
vendored
16
configure
vendored
|
@ -612,6 +612,19 @@ 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
|
||||
|
@ -1186,6 +1199,9 @@ 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.
|
||||
|
|
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
|
||||
|
||||
* Remove RUNPATH from /usr/bin/notmuch
|
||||
|
|
|
@ -230,10 +230,19 @@ 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"
|
||||
}
|
||||
|
||||
|
@ -1277,6 +1286,11 @@ 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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue