[MacPorts] #32251: MyPaint needs to be updated to python 2.7
#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 -------------------------------------+-------------------------------------- http://build.macports.org/builders/buildports-snowleopard- x86_64/builds/3282 -- Ticket URL: <https://trac.macports.org/ticket/32251> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ryandesign@…): The error one gets with the attached simple update is: {{{ scons: *** [lib/_mypaintlib.so] Implicit dependency `_PyMac_Error' not found, needed by target `lib/_mypaintlib.so'. }}} I don't understand what this means or why it happens with python 2.7 but not 2.6. -- Ticket URL: <https://trac.macports.org/ticket/32251#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ryandesign@…): * 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. -- Ticket URL: <https://trac.macports.org/ticket/32251#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 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? -- Ticket URL: <https://trac.macports.org/ticket/32251#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32251: MyPaint needs to be updated to python 2.7 --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: MyPaint | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * keywords: => haspatch * status: new => closed * resolution: => fixed Comment: Thanks. I used the upstream patch from https://gna.org/bugs/?19119 instead. Committed in r88756. -- Ticket URL: <https://trac.macports.org/ticket/32251#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32251: MyPaint needs to be updated to python 2.7 --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: ryandesign@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: MyPaint | --------------------------------------+------------------------------------- Comment(by ryandesign@…): Replying to [comment:5 ak.ml@…]:
With MyPaint 1.0.0 I had a [wiki:UsingTheRightCompiler] message,
Fixed in r88758 along with ensuring we use the right `-arch` flags and adding a universal variant. -- Ticket URL: <https://trac.macports.org/ticket/32251#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts