[MacPorts] #39223: python27 @2.7.5_0: incorrect LINKFORSHARED from distutils.sysconfig

MacPorts noreply at macports.org
Sun Nov 12 15:17:06 UTC 2017


#39223: python27 @2.7.5_0: incorrect LINKFORSHARED from distutils.sysconfig
-----------------------+----------------------------
  Reporter:  skymoo    |      Owner:  jyrkiwahlstedt
      Type:  defect    |     Status:  reopened
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.1.3
Resolution:            |   Keywords:
      Port:  python27  |
-----------------------+----------------------------
Changes (by ryandesign):

 * cc: raimue (added)
 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Replying to [comment:24 raimue]:
 > In [changeset:"b5b644ee4ae92eab09344a3f4f7e77aeee769acc/macports-ports"
 b5b644ee4ae92eab09344a3f4f7e77aeee769acc/macports-ports]:
 > {{{
 > #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="b5b644ee4ae92eab09344a3f4f7e77aeee769acc"
 > python2*, python3*: fix flags in LINKFORSHARED
 >
 > Other ports are unable to link against libpython as the value does not
 > properly reference Python.framework.
 >
 > See: https://lists.macosforge.org/pipermail/macports-
 dev/2016-September/033712.html
 > See: https://trac.macports.org/ticket/39223
 > }}}

 This change breaks 32-bit builds.

 https://build.macports.org/builders/ports-10.6_i386_legacy-
 builder/builds/31600

 https://build.macports.org/builders/ports-10.5_ppc_legacy-
 builder/builds/45981

 {{{
 --->  Patching Makefile: s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL)
 -lpython$(VERSION) $(LIBS) $(SYSLIBS)|
 DEBUG: Executing reinplace: /usr/bin/sed {s|^\(LINKFORSHARED=\).*$|\1
 -L$(LIBPL) -lpython$(VERSION) $(LIBS) $(SYSLIBS)|}
 </opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_python24/python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/Makefile
 >@file10
 DEBUG: couldn't read file
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_python24/python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/Makefile":
 no such file or directory
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/39223#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list