summaryrefslogtreecommitdiff
path: root/repo/apr/semtimedop-s390x.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/apr/semtimedop-s390x.patch
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/apr/semtimedop-s390x.patch')
-rw-r--r--repo/apr/semtimedop-s390x.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/repo/apr/semtimedop-s390x.patch b/repo/apr/semtimedop-s390x.patch
new file mode 100644
index 0000000..7c0d2cf
--- /dev/null
+++ b/repo/apr/semtimedop-s390x.patch
@@ -0,0 +1,16 @@
+the testsuite hangs on s390x when testing locking mechanism sysvsem. Work
+around by avoid use semtimedop for s390x.
+
+diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c
+index 8e2187f..cad6c4a 100644
+--- a/locks/unix/proc_mutex.c
++++ b/locks/unix/proc_mutex.c
+@@ -449,7 +449,7 @@ static const apr_proc_mutex_unix_lock_methods_t mutex_sysv_methods =
+ proc_mutex_sysv_create,
+ proc_mutex_sysv_acquire,
+ proc_mutex_sysv_tryacquire,
+-#if defined(HAVE_SEMTIMEDOP)
++#if defined(HAVE_SEMTIMEDOP) && !defined(__s390x__)
+ proc_mutex_sysv_timedacquire,
+ #else
+ proc_mutex_spinsleep_timedacquire,