Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2021 12:53:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252803] [PATCH] science/py-scikit-sparse fails to build with Python 3.9
Message-ID:  <bug-252803-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252803

            Bug ID: 252803
           Summary: [PATCH] science/py-scikit-sparse fails to build with
                    Python 3.9
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: maciej@pasternacki.net
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

Created attachment 221705
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D221705&action=
=3Dedit
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 =3D 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19731:40: error: no member named 'tp_print' in 'struct
_typeobject'
  __pyx_type_8sksparse_7cholmod_Factor.tp_print =3D 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19751:58: error: no member named 'tp_print' in 'struct
_typeobject'
  __pyx_type_8sksparse_7cholmod__CholmodSparseDestructor.tp_print =3D 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19762:57: error: no member named 'tp_print' in 'struct
_typeobject'
  __pyx_type_8sksparse_7cholmod__CholmodDenseDestructor.tp_print =3D 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 th=
is
port already has USE_PYTHON=3Dcython, removing the C file forces the build =
to
regenerate it with current Cython and fixes the build.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252803-7788>