Control: tags 1097680 + patch Control: tags 1097680 + pending Dear maintainer,
I've prepared an NMU for python-pyahocorasick (versioned as 1.4.1-2.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for python-pyahocorasick-1.4.1 python-pyahocorasick-1.4.1 changelog | 7 ++ patches/0001-Fix-use-of-bool-keyword-in-C23-fixes-199.patch | 37 ++++++++++++ patches/series | 1 3 files changed, 45 insertions(+) diff -Nru python-pyahocorasick-1.4.1/debian/changelog python-pyahocorasick-1.4.1/debian/changelog --- python-pyahocorasick-1.4.1/debian/changelog 2025-02-22 13:33:19.000000000 +0200 +++ python-pyahocorasick-1.4.1/debian/changelog 2025-10-24 19:40:58.000000000 +0300 @@ -1,3 +1,10 @@ +python-pyahocorasick (1.4.1-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for FTBFS with GCC 15. (Closes: #1097680) + + -- Adrian Bunk <[email protected]> Fri, 24 Oct 2025 19:40:58 +0300 + python-pyahocorasick (1.4.1-2) unstable; urgency=medium * Team upload. diff -Nru python-pyahocorasick-1.4.1/debian/patches/0001-Fix-use-of-bool-keyword-in-C23-fixes-199.patch python-pyahocorasick-1.4.1/debian/patches/0001-Fix-use-of-bool-keyword-in-C23-fixes-199.patch --- python-pyahocorasick-1.4.1/debian/patches/0001-Fix-use-of-bool-keyword-in-C23-fixes-199.patch 1970-01-01 02:00:00.000000000 +0200 +++ python-pyahocorasick-1.4.1/debian/patches/0001-Fix-use-of-bool-keyword-in-C23-fixes-199.patch 2025-10-24 19:40:58.000000000 +0300 @@ -0,0 +1,37 @@ +From 1d77ecbccb3f586c43958d426ffdcd8febfae403 Mon Sep 17 00:00:00 2001 +From: Niklas Fiekas <[email protected]> +Date: Thu, 22 May 2025 19:43:30 +0200 +Subject: Fix use of bool keyword in C23 (fixes #199) + +Instead of custom typedef and defines, use stdbool.h which includes the +required feature testing. + +Signed-off-by: Niklas Fiekas <[email protected]> +--- + common.h | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/common.h b/common.h +index 262ff29..61de3dc 100644 +--- a/common.h ++++ b/common.h +@@ -16,6 +16,7 @@ + #include <structmember.h> // PyMemberDef + + #include <iso646.h> ++#include <stdbool.h> + + #define DEBUG + +@@ -90,8 +91,4 @@ + # define F(name) name + #endif + +-typedef char bool; +-#define true 1 +-#define false 0 +- + #endif +-- +2.30.2 + diff -Nru python-pyahocorasick-1.4.1/debian/patches/series python-pyahocorasick-1.4.1/debian/patches/series --- python-pyahocorasick-1.4.1/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ python-pyahocorasick-1.4.1/debian/patches/series 2025-10-24 19:40:58.000000000 +0300 @@ -0,0 +1 @@ +0001-Fix-use-of-bool-keyword-in-C23-fixes-199.patch

