From b5926bd0342911d1547f37a862082ab73ee1644e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 11 Aug 2024 11:10:05 -0300 Subject: [PATCH] python3-Cython: fix regression in cython 3.0.11. --- .../python3-Cython/patches/fix-regression.patch | 17 +++++++++++++++++ srcpkgs/python3-Cython/template | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3-Cython/patches/fix-regression.patch diff --git a/srcpkgs/python3-Cython/patches/fix-regression.patch b/srcpkgs/python3-Cython/patches/fix-regression.patch new file mode 100644 index 00000000000..f2e761608e3 --- /dev/null +++ b/srcpkgs/python3-Cython/patches/fix-regression.patch @@ -0,0 +1,17 @@ +Revert https://github.com/cython/cython/pull/6124 which causes a +serious regression, e.g. sagemath FTBS with cython 3.0.11 + +--- a/Cython/Compiler/Nodes.py ++++ b/Cython/Compiler/Nodes.py +@@ -710,10 +710,8 @@ class CFuncDeclaratorNode(CDeclaratorNode): + and not self.has_explicit_exc_clause + and self.exception_check + and visibility != 'extern'): +- # If function is already declared from pxd, the exception_check has already correct value. +- if not (self.declared_name() in env.entries and not in_pxd): +- self.exception_check = False + # implicit noexcept, with a warning ++ self.exception_check = False + warning(self.pos, + "Implicit noexcept declaration is deprecated." + " Function declaration should contain 'noexcept' keyword.", diff --git a/srcpkgs/python3-Cython/template b/srcpkgs/python3-Cython/template index face2ba7bfb..faec5722ae1 100644 --- a/srcpkgs/python3-Cython/template +++ b/srcpkgs/python3-Cython/template @@ -1,7 +1,7 @@ # Template file for 'python3-Cython' pkgname=python3-Cython version=3.0.11 -revision=1 +revision=2 build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel"