[MacPorts] #67946: python310 does not respect MACOSX_DEPLOYMENT_TARGET

MacPorts noreply at macports.org
Fri Aug 11 15:27:50 UTC 2023


#67946: python310 does not respect MACOSX_DEPLOYMENT_TARGET
--------------------+-----------------------
 Reporter:  lukaso  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  python310
--------------------+-----------------------
 The following files in the Python 3.10 build are not respecting the
 `MACOSX_DEPLOYMENT_TARGET`, similar to #67899 for `libstemmer`.

 {{{
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Runtime/refnanny.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Tempita/_tempita.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Plex/Scanners.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Plex/Actions.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Compiler/Scanning.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Compiler/Visitor.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Compiler/FusedNode.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/Cython/Compiler/FlowControl.cpython-310-darwin.so
 Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-
 packages/yaml/_yaml.cpython-310-darwin.so
 }}}

 As a reminder (if it's helpful) this was the fix for `libstemmer`:
 https://github.com/macports/macports-
 ports/commit/6d75c22ebad1cf495e688fba8cbc4db9266d6286.

 This affects the deployment build of GIMP.

 I would expect other Python versions to have the same issue.

 I would gladly create a PR but I'm not really sure how I'd go about it.

 This is the (snipped) output of `otool -l` for one of the `.so`s, but they
 are all the same:

 {{{
 Load command 4
       cmd LC_DYLD_CHAINED_FIXUPS
   cmdsize 16
   dataoff 81920
  datasize 2648
 Load command 5
       cmd LC_DYLD_EXPORTS_TRIE
   cmdsize 16
   dataoff 84568
  datasize 88

 ...

 Load command 9
       cmd LC_BUILD_VERSION
   cmdsize 32
  platform 1
     minos 12.0
       sdk 12.3
    ntools 1
      tool 3
   version 820.1

 ...
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67946>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list