summaryrefslogtreecommitdiff
path: root/python2.7/patches/disable-sem-check.diff
diff options
context:
space:
mode:
Diffstat (limited to 'python2.7/patches/disable-sem-check.diff')
-rw-r--r--python2.7/patches/disable-sem-check.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/python2.7/patches/disable-sem-check.diff b/python2.7/patches/disable-sem-check.diff
new file mode 100644
index 0000000..a0d1321
--- /dev/null
+++ b/python2.7/patches/disable-sem-check.diff
@@ -0,0 +1,28 @@
+# DP: Assume working semaphores on Linux, don't rely on running kernel for the check.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -3645,6 +3645,11 @@
+ [ac_cv_posix_semaphores_enabled=no],
+ [ac_cv_posix_semaphores_enabled=yes])
+ )
++case $ac_sys_system in
++ Linux*)
++ # assume enabled, see https://launchpad.net/bugs/630511
++ ac_cv_posix_semaphores_enabled=yes
++esac
+ AC_MSG_RESULT($ac_cv_posix_semaphores_enabled)
+ if test $ac_cv_posix_semaphores_enabled = no
+ then
+@@ -3681,6 +3686,11 @@
+ [ac_cv_broken_sem_getvalue=yes],
+ [ac_cv_broken_sem_getvalue=yes])
+ )
++case $ac_sys_system in
++ Linux*)
++ # assume enabled, see https://launchpad.net/bugs/630511
++ ac_cv_broken_sem_getvalue=no
++esac
+ AC_MSG_RESULT($ac_cv_broken_sem_getvalue)
+ if test $ac_cv_broken_sem_getvalue = yes
+ then