[Bug 276127] math/py-triangle: fix build python > 3.9

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 05 Jan 2024 15:24:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276127

            Bug ID: 276127
           Summary: math/py-triangle: fix build python > 3.9
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: db@FreeBSD.org
          Reporter: rm@FreeBSD.org
             Flags: maintainer-feedback?(db@FreeBSD.org)
          Assignee: db@FreeBSD.org

Created attachment 247462
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247462&action=edit
fix build with python>3.9

math/py-triangle fails to build with python3.10 and 3.11 and blocks this PR: 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275494

Regenerating core.pyx file with newer cython version fix the build. So here is
the patch. Here is how to reproduce those steps manually:

math/py-triangle% sudo make install py39-cython
math/py-triangle% make extract
math/py-triangle% cd work-py39/triangle-20200424/triangle/
math/py-triangle/work-py39/triangle-20200424/triangle% mv core.c core.c.orig
math/py-triangle/work-py39/triangle-20200424/triangle% cython3.9 core.pyx
math/py-triangle/work-py39/triangle-20200424/triangle% cd ../../../
math/py-triangle% make makepatch

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