ports/138839: lang/python26 SEM option problem
Kamil Deryński
kamil at derynski.net
Tue Sep 15 11:30:28 UTC 2009
>Number: 138839
>Category: ports
>Synopsis: lang/python26 SEM option problem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 15 11:30:08 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Kamil Deryński
>Release:
>Organization:
>Environment:
FreeBSD bsd 8.0-BETA4 FreeBSD 8.0-BETA4 #0: Sun Sep 6 05:51:03 UTC 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When enable SEM option "Use POSIX semaphores (experimental)" in Makefile, python build is lack of SEM. For example when you want to use multirpocessing in python you get:
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
This problem occured only in python26-2.6.2_3.
>How-To-Repeat:
Recompile python26-2.6.2_3 with SEM option. The SEM is still disabled.
>Fix:
The patch-setup.py overwrite correct changes made by extra-patch-setup.py patch.
You need change patch-setup.py as follows:
--- files/patch-setup.py.orig 2009-09-13 15:27:31.000000000 +0200
+++ files/patch-setup.py 2009-09-13 14:37:24.000000000 +0200
@@ -70,15 +70,6 @@
libraries = [panel_library] + curses_libs) )
else:
missing.append('_curses_panel')
-@@ -1273,7 +1277,7 @@ class PyBuildExt(build_ext):
- )
- libraries = []
-
-- elif platform in ('freebsd4', 'freebsd5', 'freebsd6'):
-+ elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9'):
- # FreeBSD's P1003.1b semaphore support is very experimental
- # and has many known problems. (as of June 2008)
- macros = dict( # FreeBSD 4-6
@@ -1338,7 +1342,7 @@ class PyBuildExt(build_ext):
missing.append('linuxaudiodev')
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list