[Patches] [ python-Patches-1602133 ] non-framework built python fails to define environ properly

SourceForge.net noreply at sourceforge.net
Thu Apr 19 21:40:29 CEST 2007


Patches item #1602133, was opened at 2006-11-23 23:38
Message generated for change (Comment added) made by ihavetopee
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1602133&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Macintosh
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: paul (ihavetopee)
Assigned to: Jack Jansen (jackjansen)
Summary: non-framework built python fails to define environ properly

Initial Comment:
but no one but me seems to build python the unix-y way on darwin/macosx anymore
so i guess i'm the only one that cares
btw, python without environ defined makes all third party python bindings segfault
this has been pissing me off for months
only tracked it down yesterday
here's my lackluster patch
feel free to find something more apropos to conditionalize the diff with and commit it 
or not
i don't care anymore

----------------------------------------------------------------------

>Comment By: paul (ihavetopee)
Date: 2007-04-19 12:40

Message:
Logged In: YES 
user_id=1652872
Originator: YES

right now, i'm using macosx 10.2/python 2.4 
but this should affect any macosx/darwin that's building python as a
library instead of a framework
meaning the symbol _environ will be completely undefined and no third
party python bindings will work
from posixmodule.c
 /* On Darwin/MacOSX a shared library or framework has no access to
 ** environ directly, we must obtain it with _NSGetEnviron().
 */
however, the #ifdef that comment is contained in only takes the framework
into consideration


----------------------------------------------------------------------

Comment By: Adrian Silva (skiolding)
Date: 2007-04-19 02:41

Message:
Logged In: YES 
user_id=1771816
Originator: NO

Wich MacOsx/python version does this affect?

Python from svn trunk (r54849) on a Tiger (10.4.9) seems to define
os.environ properly, with and without the patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1602133&group_id=5470


More information about the Patches mailing list