[MacPorts] #18090: python25 broken after [37817]
MacPorts
noreply at macports.org
Mon Jan 26 21:23:52 PST 2009
#18090: python25 broken after [37817]
--------------------------------------------------+-------------------------
Reporter: rasmus@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: python dlopen environ patch portfile | Port: python25 python26
--------------------------------------------------+-------------------------
Comment(by rasmus@…):
Replying to [comment:10 ram@…]:
> Replying to [comment:7 blb@…]:
> > However, in Modules/posicmodule.c, environ is declared static, but
when I remove the static portion, smisk appears to work fine.
>
> I can also confirm that the attached patch enables me to import native
modules, in this case the python bindings to the globus toolkit. Without
this patch I get errors regarding the `_environ` symbol missing, with the
patch applied they import without error.
>
> Looks like this is a solution, whether it is the correct solution is a
different matter....
I think the patching should be done in the binary which uses environ
rather than Python exposing it like a normal libc would. I.e. patching
lang/python is not the way, but rather patching libfcgi which is in my
case the binary using environ. (python itself has it's own solution to
accessing environ on Mac OS X). I have by email submitted patches to the
libfcgi port, effectively solving the problem.
I now realize that this issue/change (environ no longer exported by
python) probably breaks alot of native python modules. A simple grep for
environ in all .c-files in all python-modules would shed some light on the
situation.
--
Ticket URL: <http://trac.macports.org/ticket/18090#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list