Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 19:38:18 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438796 - head/www/firefox/files
Message-ID:  <201704181938.v3IJcIZX061036@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Apr 18 19:38:18 2017
New Revision: 438796
URL: https://svnweb.freebsd.org/changeset/ports/438796

Log:
  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

Added:
  head/www/firefox/files/patch-python_futures_concurrent_futures_process.py   (contents, props changed)

Added: head/www/firefox/files/patch-python_futures_concurrent_futures_process.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/firefox/files/patch-python_futures_concurrent_futures_process.py	Tue Apr 18 19:38:18 2017	(r438796)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704181938.v3IJcIZX061036>