aboutsummaryrefslogtreecommitdiffstats
path: root/www/firefox
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-04-19 03:38:18 +0800
committerjbeich <jbeich@FreeBSD.org>2017-04-19 03:38:18 +0800
commitc5344fc25051c12ea8f7ae6cb647759581423042 (patch)
tree940f237ba3817e607330b96bd1169c12478f2bfc /www/firefox
parent14d26a73df4ba59148c9d8b270b879ba100366d0 (diff)
downloadfreebsd-ports-gnome-c5344fc25051c12ea8f7ae6cb647759581423042.tar.gz
freebsd-ports-gnome-c5344fc25051c12ea8f7ae6cb647759581423042.tar.zst
freebsd-ports-gnome-c5344fc25051c12ea8f7ae6cb647759581423042.zip
www/firefox: work around bogus semaphores limit
NotImplementedError: system provides too few semaphores (30 available, 256 necessary) PR: 218581 Reported by: pkg-fallout (releases cannot be fixed retroactively) Requested by: antoine MFH: 2017Q2
Diffstat (limited to 'www/firefox')
-rw-r--r--www/firefox/files/patch-python_futures_concurrent_futures_process.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/firefox/files/patch-python_futures_concurrent_futures_process.py b/www/firefox/files/patch-python_futures_concurrent_futures_process.py
new file mode 100644
index 000000000000..5327af944b8b
--- /dev/null
+++ b/www/firefox/files/patch-python_futures_concurrent_futures_process.py
@@ -0,0 +1,15 @@
+--- python/futures/concurrent/futures/process.py.orig 2017-04-11 04:15:19 UTC
++++ python/futures/concurrent/futures/process.py
+@@ -247,7 +247,11 @@ def _check_system_limits():
+ _system_limits_checked = True
+ try:
+ import os
+- nsems_max = os.sysconf("SC_SEM_NSEMS_MAX")
++ if sys.platform.startswith('freebsd'):
++ # sem(4) confuses sysconf(3) on FreeBSD < 11.1
++ nsems_max = -1
++ else:
++ nsems_max = os.sysconf("SC_SEM_NSEMS_MAX")
+ except (AttributeError, ValueError):
+ # sysconf not available or setting not available
+ return