Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2009 11:25:00 GMT
From:      "Kamil Dery&#324;ski" <kamil@derynski.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/138839: lang/python26 SEM option problem
Message-ID:  <200909151125.n8FBP0D6006858@www.freebsd.org>
Resent-Message-ID: <200909151130.n8FBUIBh083095@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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&#324;ski
>Release:        
>Organization:
>Environment:
FreeBSD bsd 8.0-BETA4 FreeBSD 8.0-BETA4 #0: Sun Sep  6 05:51:03 UTC 2009     root@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:



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