[MacPorts] #67946: py310-cython does not respect MACOSX_DEPLOYMENT_TARGET (was: python310 does not respect MACOSX_DEPLOYMENT_TARGET)
MacPorts
noreply at macports.org
Sun Aug 13 10:44:56 UTC 2023
#67946: py310-cython does not respect MACOSX_DEPLOYMENT_TARGET
---------------------------+--------------------
Reporter: lukaso | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py310-cython |
---------------------------+--------------------
Changes (by lukaso):
* port: python310 => py310-cython
Old description:
> 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`:
> [6d75c22ebad1cf495e688fba8cbc4db9266d6286/macports-ports].
>
> 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
>
> ...
> }}}
New description:
NOTE: Updated to `py310-cython` rather than `python310` as per comments
below.
The following files in the py310-cython 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`:
[6d75c22ebad1cf495e688fba8cbc4db9266d6286/macports-ports].
This affects the deployment build of GIMP.
I would expect other py-cython 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#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list