Bug 252803 - [PATCH] science/py-scikit-sparse fails to build with Python 3.9
Summary: [PATCH] science/py-scikit-sparse fails to build with Python 3.9
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-18 12:53 UTC by Maciej Pasternacki
Modified: 2021-03-28 17:22 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
py-scikit-sparse_python3.9.patch (666 bytes, text/plain)
2021-01-18 12:53 UTC, Maciej Pasternacki
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pasternacki 2021-01-18 12:53:37 UTC
Created attachment 221705 [details]
py-scikit-sparse_python3.9.patch

The port fails to build with Python 3.9:

sksparse/cholmod.c:19722:40: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod_Common.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19731:40: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod_Factor.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19751:58: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod__CholmodSparseDestructor.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19762:57: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod__CholmodDenseDestructor.tp_print = 0;

This is filed upstream as caused by C file pregenerated with an old version of Cython (https://github.com/scikit-sparse/scikit-sparse/issues/62). Since this port already has USE_PYTHON=cython, removing the C file forces the build to regenerate it with current Cython and fixes the build.