From 467fb8c407fe564e17f49e8bd39512f79d1982c9 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 16 Jan 2023 15:55:44 +0800 Subject: [PATCH] hurd_shm_flock Bug: #656880 # * hurd_shm_flock.diff # This patch disables all the methods for shared memory and file locking # found by the configure checks, forcing the only working ones. # This patch should stay Debian-specific, as it is not that suitable for # upstream inclusion. (As you can guess, ideally all of those # non-working methods should be ideally fixed in Hurd...) Gbp-Pq: Name hurd_shm_flock.patch --- configure.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configure.in b/configure.in index 6833b32..806206e 100644 --- a/configure.in +++ b/configure.in @@ -1253,6 +1253,13 @@ case $host in APR_DECISION_OVERRIDE(USE_SHMEM_SHMGET_ANON) ;; esac +case $host_os in + gnu* ) + haveshmgetanon="0" + havemmapanon="0" + APR_DECISION_OVERRIDE(USE_SHMEM_MMAP_ZERO) + ;; +esac APR_END_DECISION AC_DEFINE_UNQUOTED($ac_decision) @@ -1326,6 +1333,13 @@ case $host in fi ;; esac +case $host_os in + gnu* ) + havemmapshm="0" + haveshmget="0" + APR_DECISION_OVERRIDE(USE_SHMEM_MMAP_TMP) + ;; +esac APR_END_DECISION AC_DEFINE_UNQUOTED($ac_decision) @@ -2381,6 +2395,12 @@ esac if test "x$apr_lock_method" != "x"; then APR_DECISION_FORCE($apr_lock_method) fi +case $host_os in + gnu* ) + hasfcntlser="0" + APR_DECISION_OVERRIDE(USE_FLOCK_SERIALIZE) + ;; +esac APR_END_DECISION AC_DEFINE_UNQUOTED($ac_decision)