[MacPorts] #32251: MyPaint needs to be updated to python 2.7
MacPorts
noreply at macports.org
Sun Dec 4 05:11:46 PST 2011
#32251: MyPaint needs to be updated to python 2.7
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: ryandesign@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: MyPaint
-------------------------------------+--------------------------------------
Comment(by ak.ml@…):
The problem here is that {{{python2.7-config}}} adds a {{{-u}}} linker
options (compared to {{{python-2.6-config}}}) that {{{scons}}} is unable
to handle (this is documented).
{{{
$ python2.6-config --ldflags
-L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config
-ldl -framework CoreFoundation -lpython2.6
$ python2.7-config --ldflags
-L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
-ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
}}}
And in
{{{/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.0.1/SCons/Environment.py}}}
{{{
# Other options not currently handled:
# -u symbol (linker undefined symbol)
}}}
This is not fixed in {{{scons}}} 2.1.
As a workaround, I've put everything after {{{-u}}} in
{{{LINKFLAGS}}}.[[br]]
But simply removing everything after {{{-u}}} might work as well.
I'm attaching a sample patch that works for me.[[br]]
With MyPaint 1.0.0 I had a [wiki:UsingTheRightCompiler] message, which is
why I added a {{{env['CXX']}}} line in the patch and in {{{Portfile}}}:
{{{
build.env-append CXX=${configure.cxx}
destroot.env-append CXX=${configure.cxx}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/32251#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list