[MacPorts] #39357: python27 2.7.5 has bad LINKFORSHARED sysconfig
#39357: python27 2.7.5 has bad LINKFORSHARED sysconfig -----------------------+-------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: python27 -----------------------+-------------------------------- After doing a port upgrade and getting the latest python27 port autoconf is now breaking on python tests. This is caused by autoconf picking up the linker options from python itself: {{{
import distutils.sysconfig distutils.sysconfig.get_config_var('LINKFORSHARED') '-u _PyMac_Error Python.framework/Versions/2.7/Python' }}}
Which shows an incomplete path is used, which causes the autoconf test to fail like this: {{{ clang -o conftest -g -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 conftest.c -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python -ldl -framework CoreFoundation clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python' }}} -- Ticket URL: <https://trac.macports.org/ticket/39357> MacPorts <http://www.macports.org/> Ports system for OS X
#39357: python27 2.7.5 has bad LINKFORSHARED sysconfig ------------------------+-------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | ------------------------+-------------------------------- Comment (by wichert@…): This appears to be due to a change in python itself: in python 2.7.3 distutils.sysconfig._init_posix use to parse {{{/python2.7/config/Makefile}}}, but that was changed to read {{{lib/python2.7/_sysconfigdata.py}}} instead. This suggest a workaround is to do the same replace trick for that file as well. -- Ticket URL: <https://trac.macports.org/ticket/39357#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39357: python27 @2.7.5 has bad LINKFORSHARED sysconfig ------------------------+------------------- Reporter: wichert@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | ------------------------+------------------- Changes (by larryv@…): * owner: macports-tickets@… => jwa@… Comment: Thanks for the ticket. In the future, please Cc relevant port maintainers. Looks like #39337 was caused by this. -- Ticket URL: <https://trac.macports.org/ticket/39357#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39357: python27 @2.7.5 has bad LINKFORSHARED sysconfig ------------------------+------------------- Reporter: wichert@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | ------------------------+------------------- Comment (by nad@…): See also #39223: other apps should not be using Python's LINKEDFORSHARED. -- Ticket URL: <https://trac.macports.org/ticket/39357#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39357: python27 @2.7.5 has bad LINKFORSHARED sysconfig ------------------------+-------------------- Reporter: wichert@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: duplicate | Keywords: Port: python27 | ------------------------+-------------------- Changes (by larryv@…): * status: new => closed * resolution: => duplicate Comment: Replying to [comment:3 nad@…]:
See also #39223: other apps should not be using Python's LINKEDFORSHARED.
Guess this is a duplicate of that. -- Ticket URL: <https://trac.macports.org/ticket/39357#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts