mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
build: New configure option --enable-run-gnupg-user-socket.
* configure.ac: (USE_RUN_GNUPG_USER_SOCKET): New ac_define. * common/homedir.c (_gnupg_socketdir_internal): Add extra directories. -- This allows to build GnuPG with an extra socketdir below /run. See https://lists.gnupg.org/pipermail/gnupg-devel/2017-November/033250.html for a longer explanation why this is sometimes useful. Suggested-by: Rainer Perske Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
20b52be9ca
commit
17efcd2a2a
2 changed files with 28 additions and 2 deletions
16
configure.ac
16
configure.ac
|
@ -1714,6 +1714,22 @@ if test x"$gnupg_builddir_envvar" = x"yes"; then
|
|||
[This is only used with "make distcheck"])
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
# To avoid problems with systemd cleaning up the /run/user directory,
|
||||
# this option will make GnuPG try to use /run/gnupg/user as socket dir
|
||||
# before /run/user
|
||||
#
|
||||
AC_ARG_ENABLE(run-gnupg-user-socket,
|
||||
AC_HELP_STRING([--enable-run-gnupg-user-socket],
|
||||
[try /run/gnupg/user for sockets prior to /run/user]),
|
||||
use_run_gnupg_user_socket=$enableval)
|
||||
if test x"$use_run_gnupg_user_socket" = x"yes"; then
|
||||
AC_DEFINE(USE_RUN_GNUPG_USER_SOCKET, 1,
|
||||
[If defined try /run/gnupg/user before /run/user])
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
# Decide what to build
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue