diff -Nru python-libzim-3.1.0/debian/changelog python-libzim-3.1.0/debian/changelog --- python-libzim-3.1.0/debian/changelog 2023-11-02 08:26:11.000000000 +0000 +++ python-libzim-3.1.0/debian/changelog 2023-12-17 06:54:33.000000000 +0000 @@ -1,8 +1,10 @@ -python-libzim (3.1.0-1build1) noble; urgency=medium +python-libzim (3.1.0-2) unstable; urgency=medium - * No-change rebuild to build with python3.12 as supported. + * Switch to upstream patch for avoiding problematic platform check + * Switch to cython3-legacy, thanks to Bas Couwenberg for the patch. + (Closes: #1056859) - -- Matthias Klose Thu, 02 Nov 2023 09:26:11 +0100 + -- Kunal Mehta Sun, 17 Dec 2023 01:54:33 -0500 python-libzim (3.1.0-1) unstable; urgency=medium diff -Nru python-libzim-3.1.0/debian/control python-libzim-3.1.0/debian/control --- python-libzim-3.1.0/debian/control 2023-09-11 10:59:09.000000000 +0000 +++ python-libzim-3.1.0/debian/control 2023-12-17 06:52:54.000000000 +0000 @@ -7,7 +7,7 @@ python3-all, python3-all-dev, python3-setuptools, - cython3, + cython3-legacy, libzim-dev (>= 8.1.0), python3-pytest Standards-Version: 4.6.0 diff -Nru python-libzim-3.1.0/debian/patches/0001-Allow-builds-for-unsupported-platforms.patch python-libzim-3.1.0/debian/patches/0001-Allow-builds-for-unsupported-platforms.patch --- python-libzim-3.1.0/debian/patches/0001-Allow-builds-for-unsupported-platforms.patch 2023-09-11 12:11:48.000000000 +0000 +++ python-libzim-3.1.0/debian/patches/0001-Allow-builds-for-unsupported-platforms.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -From: Kunal Mehta -Date: Mon, 11 Sep 2023 17:41:18 +0530 -Subject: Allow builds for "unsupported" platforms - -See . - -Forwarded: not-needed ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index b3cd054..a93f0b7 100755 ---- a/setup.py -+++ b/setup.py -@@ -101,7 +101,7 @@ class Config: - self.platform_libc not in self.supported_platforms - or self.arch not in self.supported_platforms[self.platform_libc] - ): -- raise NotImplementedError( -+ print( - f"Platform {self.platform_libc}/{self.arch} is not supported." - ) - diff -Nru python-libzim-3.1.0/debian/patches/0001-Fixed-172-platform-only-checked-if-downloading.patch python-libzim-3.1.0/debian/patches/0001-Fixed-172-platform-only-checked-if-downloading.patch --- python-libzim-3.1.0/debian/patches/0001-Fixed-172-platform-only-checked-if-downloading.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-libzim-3.1.0/debian/patches/0001-Fixed-172-platform-only-checked-if-downloading.patch 2023-09-12 12:02:47.000000000 +0000 @@ -0,0 +1,35 @@ +From: renaud gaudin +Date: Tue, 12 Sep 2023 08:44:23 +0000 +Subject: Fixed #172: platform only checked if downloading + +--- + setup.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index b3cd054..460e235 100755 +--- a/setup.py ++++ b/setup.py +@@ -149,6 +149,7 @@ class Config: + + def download_to_dest(self): + """download expected libzim binary into libzim/ and libzim/include/ folders""" ++ self.check_platform() + if self.wants_universal: + folders = {} + for arch in self.supported_platforms["Darwin"]: +@@ -462,14 +463,12 @@ class DownloadLibzim(Command): + ... + + def run(self): +- config.check_platform() + config.download_to_dest() + + + if len(sys.argv) == 2 and sys.argv[1] in config.buildless_commands: + ext_modules = None + else: +- config.check_platform() + ext_modules = get_cython_extension() + + setup( diff -Nru python-libzim-3.1.0/debian/patches/series python-libzim-3.1.0/debian/patches/series --- python-libzim-3.1.0/debian/patches/series 2023-09-11 12:11:48.000000000 +0000 +++ python-libzim-3.1.0/debian/patches/series 2023-09-12 12:02:47.000000000 +0000 @@ -1 +1 @@ -0001-Allow-builds-for-unsupported-platforms.patch +0001-Fixed-172-platform-only-checked-if-downloading.patch