Opened 9 months ago

Last modified 9 months ago

#67946 assigned defect

py310-cython does not respect MACOSX_DEPLOYMENT_TARGET

Reported by: lukaso (Lukas Oberhuber) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-cython

Description (last modified by lukaso (Lukas Oberhuber))

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 .sos, 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

...

Change History (5)

comment:1 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 Changed 9 months ago by jmroot (Joshua Root)

Those files are not installed by python310. Looks like py-cython and py-yaml; use port provides /path/to/file to find out for sure.

comment:3 Changed 9 months ago by lukaso (Lukas Oberhuber)

Quite right. These files are provided by py310-cython. Thanks for the pointer. I was wondering why it was only a few python files.

I'll change the ticket appropriately.

comment:4 Changed 9 months ago by lukaso (Lukas Oberhuber)

Description: modified (diff)
Port: py310-cython added; python310 removed
Summary: python310 does not respect MACOSX_DEPLOYMENT_TARGETpy310-cython does not respect MACOSX_DEPLOYMENT_TARGET

comment:5 Changed 9 months ago by jmroot (Joshua Root)

Owner: set to stromnov
Port: py-cython added; py310-cython removed
Status: newassigned
Note: See TracTickets for help on using tickets.