Created attachment 247462 [details] 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
Created attachment 247463 [details] update to 20230923 here is a better option. this patch updates port to latest version, so bundled core.c file already generated with new cython.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1901b8ce71d6122652c34ca0b9d04df1933e73bf commit 1901b8ce71d6122652c34ca0b9d04df1933e73bf Author: Diane Bruce <db@FreeBSD.org> AuthorDate: 2024-01-08 20:30:44 +0000 Commit: Diane Bruce <db@FreeBSD.org> CommitDate: 2024-01-08 20:30:44 +0000 math/py-triangle: update to 20230923 - updated to 20230923 - K&R support removed PR: 276127 Reported by: Ruslan Makhmatkhanov <rm@FreeBSD.org> math/py-triangle/Makefile | 8 ++++++-- math/py-triangle/distinfo | 8 +++++--- 2 files changed, 11 insertions(+), 5 deletions(-)