#32251 closed enhancement (fixed)
MyPaint needs to be updated to python 2.7
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | su-v, ak.ml@…, blender3dartist@… |
Port: | MyPaint |
Attachments (2)
Change History (11)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | MyPaint-python27.diff added |
---|
simple patch (that results in the error)
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
- r87621: Worked around "You need to have numpy installed" error by adding py27-numpy dependency; yes I know this is ridiculous and welcome a proper fix to depend on only python 2.7 parts.
comment:5 follow-up: 9 Changed 13 years ago 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
.
But simply removing everything after -u
might work as well.
I'm attaching a sample patch that works for me.
With MyPaint 1.0.0 I had a 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}
Changed 13 years ago by ak.ml@…
Attachment: | patch-SConstruct.diff added |
---|
comment:7 Changed 13 years ago by blender3dartist@…
Heh, I was just looking into this, and then I find this here. Nice little surprise.
I tested out the patch and it works as described, MyPaint builds. You may consider sending the patch up to MyPaint as well?
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Thanks. I used the upstream patch from https://gna.org/bugs/?19119 instead. Committed in r88756.
comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ak.ml@…:
With MyPaint 1.0.0 I had a UsingTheRightCompiler message,
Fixed in r88758 along with ensuring we use the right -arch
flags and adding a universal variant.
The error one gets with the attached simple update is:
I don't understand what this means or why it happens with python 2.7 but not 2.6.