[MacPorts] #16111: python25-2.5.2 builds differing dylib and framework libraries
#16111: python25-2.5.2 builds differing dylib and framework libraries --------------------------------+------------------------------------------- Reporter: blb@macports.org | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: python25 framework | --------------------------------+------------------------------------------- With the new framework build for python25, it installs both a {{{${prefix}/Library/Frameworks/Python.framework/Versions/2.5/Python}}} and a {{{${prefix}/lib/libpython2.5.dylib}}}. It turns out these two are incompatible with one another. For example, if you install a module which includes a compiled component (eg, subversion-python25bindings has svn.fs, which is in _fs.so) and links against the Python.framework/.../Python, and something else compiled against /opt/local/lib/libpython2.5.dyllib (eg, ajp-wsgi), things will not go well. I see the error {{{ Fatal Python error: Interpreter not initialized (version mismatch?) }}} when using ajp-wsgi to run Trac (which uses the afore-mentioned subversion-python25bindings). I believe the proper solution is to build python25 like Apple builds python on the OS, namely, by simply symlinking what's in ${prefix}/lib to the Python.framework/.../Python file. Will attach a tarball which includes a Portfile diff and an updated files/patch-Makefile.pre.in.diff which accomplishes this. FYI, revision is 7 since I bumped it to 6 for the update in ticket #9831. -- Ticket URL: <http://trac.macports.org/ticket/16111> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16111: python25-2.5.2 builds differing dylib and framework libraries -------------------------------+-------------------------------------------- Reporter: blb@macports.org | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: python25 python24 python30 framework -------------------------------+-------------------------------------------- Changes (by raimue@macports.org): * keywords: python25 framework => python25 python24 python30 framework Comment: I adapted this behavior from the old python24 port, so I suppose this also applies to python24 and python30. -- Ticket URL: <http://trac.macports.org/ticket/16111#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16111: python25-2.5.2 builds differing dylib and framework libraries -------------------------------+-------------------------------------------- Reporter: blb@macports.org | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: python25 python24 python30 framework -------------------------------+-------------------------------------------- Comment (by blb@macports.org): Replying to [comment:2 raimue@macports.org]:
I adapted this behavior from the old python24 port, so I suppose this also applies to python24 and python30.
Most likely, not sure what kinds of changes could affect this for 2.6 and 3.0, but 2.4 I'm sure will need it as well. Fortunately, it isn't too big of a deal, as this removes all libpython.dylib building then just symlinks it instead. I just did 2.5 since that's what I use and it's the latest stable version of Python. -- Ticket URL: <http://trac.macports.org/ticket/16111#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16111: python25-2.5.2 builds differing dylib and framework libraries -------------------------------+-------------------------------------------- Reporter: blb@macports.org | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: python24 python30 framework Port: python25 | -------------------------------+-------------------------------------------- Changes (by blb@macports.org): * keywords: python25 python24 python30 framework => python24 python30 framework * port: => python25 Comment: Looks like the first set was a bit overzealous on creating ${prefix}/lib symlinks; attaching a new patch (rooted in dports/lang/python25) to update Portfile and files/patch-Makefile.pre.in.diff again, only creating libpython${branch}.dylib. -- Ticket URL: <http://trac.macports.org/ticket/16111#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16111: python25-2.5.2 builds differing dylib and framework libraries -------------------------------+-------------------------------------------- Reporter: blb@macports.org | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: python24 python30 framework Port: python25 | -------------------------------+-------------------------------------------- Comment(by blb@macports.org): Ack, that last one isn't right either; the files/patch- Makefile.pre.in.diff is for #9831, this update actually removes the need for that diff at all (but #9831 needs a new one). -- Ticket URL: <http://trac.macports.org/ticket/16111#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16111: python25-2.5.2 builds differing dylib and framework libraries -------------------------------+-------------------------------------------- Reporter: blb@macports.org | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: python24 python30 framework Port: python25 | -------------------------------+-------------------------------------------- Comment(by myschizobuddy@gmail.com): can you please post the complete portfile (not diff) and files folder thankyou -- Ticket URL: <http://trac.macports.org/ticket/16111#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16111: python25-2.5.2 builds differing dylib and framework libraries -------------------------------+-------------------------------------------- Reporter: blb@… | Owner: mww@… Type: defect | Status: closed Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: python24 python30 framework Port: python25 | -------------------------------+-------------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => fixed Comment: Fixed in r43000 (maintainer timeout). -- Ticket URL: <http://trac.macports.org/ticket/16111#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts