Control: tags 1119762 + patch
Control: tags 1119762 + pending

Dear maintainer,

I've prepared an NMU for primecountpy (versioned as 0.1.0-3.1) and 
uploaded it to DELAYED/14. Please feel free to tell me if I should 
cancel it.

cu
Adrian
diffstat for primecountpy-0.1.0 primecountpy-0.1.0

 changelog                                       |    7 +++
 patches/0001-Fix-build-with-Cython-3.1-18.patch |   49 ++++++++++++++++++++++++
 patches/series                                  |    1 
 3 files changed, 57 insertions(+)

diff -Nru primecountpy-0.1.0/debian/changelog primecountpy-0.1.0/debian/changelog
--- primecountpy-0.1.0/debian/changelog	2024-01-10 05:40:58.000000000 +0200
+++ primecountpy-0.1.0/debian/changelog	2025-11-29 13:20:04.000000000 +0200
@@ -1,3 +1,10 @@
+primecountpy (0.1.0-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS with Cython 3.1. (Closes: #1119762)
+
+ -- Adrian Bunk <[email protected]>  Sat, 29 Nov 2025 13:20:04 +0200
+
 primecountpy (0.1.0-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru primecountpy-0.1.0/debian/patches/0001-Fix-build-with-Cython-3.1-18.patch primecountpy-0.1.0/debian/patches/0001-Fix-build-with-Cython-3.1-18.patch
--- primecountpy-0.1.0/debian/patches/0001-Fix-build-with-Cython-3.1-18.patch	1970-01-01 02:00:00.000000000 +0200
+++ primecountpy-0.1.0/debian/patches/0001-Fix-build-with-Cython-3.1-18.patch	2025-11-29 13:19:29.000000000 +0200
@@ -0,0 +1,49 @@
+From 7bcf4fb1e107ddef67d7fe322f09518369d95e04 Mon Sep 17 00:00:00 2001
+From: Antonio Rojas <[email protected]>
+Date: Tue, 20 May 2025 16:39:04 +0200
+Subject: Fix build with Cython 3.1 (#18)
+
+* Fix build with Cython 3.1
+
+Fixes https://github.com/dimpase/primecountpy/issues/17
+
+* Update ci-sage-debian.yml
+
+* Update ci-sage-linux.yml
+
+* Update ci-sage-macos.yml
+
+* Update wheels.yml
+
+---------
+
+Co-authored-by: Dima Pasechnik <[email protected]>
+---
+ primecountpy/primecount.pyx | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/primecountpy/primecount.pyx b/primecountpy/primecount.pyx
+index 7653429..c930de0 100644
+--- a/primecountpy/primecount.pyx
++++ b/primecountpy/primecount.pyx
+@@ -13,7 +13,7 @@ Interface to the `primecount <https://github.com/kimwalisch/primecount>`_ C++ li
+ 
+ from libc.stdint cimport int64_t
+ from libcpp.string cimport string as cppstring
+-from cpython.int cimport PyInt_FromString
++from cpython.long cimport PyLong_FromString
+ 
+ from cysignals.signals cimport sig_on, sig_off
+ cimport defs as pcount
+@@ -67,7 +67,7 @@ cpdef prime_pi_128(n):
+     sig_on()
+     ans = pcount.pi(s)
+     sig_off()
+-    return PyInt_FromString(ans, NULL, 10)
++    return PyLong_FromString(ans, NULL, 10)
+ 
+ cpdef int64_t nth_prime(int64_t n) except -1:
+     r"""
+-- 
+2.30.2
+
diff -Nru primecountpy-0.1.0/debian/patches/series primecountpy-0.1.0/debian/patches/series
--- primecountpy-0.1.0/debian/patches/series	2024-01-10 05:19:21.000000000 +0200
+++ primecountpy-0.1.0/debian/patches/series	2025-11-29 13:19:54.000000000 +0200
@@ -1 +1,2 @@
 no-runtime-cython.patch
+0001-Fix-build-with-Cython-3.1-18.patch

Reply via email to