Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:python-handy-archives
User: [email protected]
Usertags: pu

[ Reason ]
FTBFS #1137041.

[ Impact ]
The package does not build in trixie.

[ Tests ]
Build the package in a clean chroot.

[ Risks ]
None. Only unit test is changed.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
Import upstream fix for the failing unit test.

[ Other info ]
Team upload.
diff -Nru python-handy-archives-0.2.0/debian/changelog 
python-handy-archives-0.2.0/debian/changelog
--- python-handy-archives-0.2.0/debian/changelog        2025-05-04 
17:58:18.000000000 +0200
+++ python-handy-archives-0.2.0/debian/changelog        2026-05-19 
18:33:42.000000000 +0200
@@ -1,3 +1,9 @@
+python-handy-archives (0.2.0-5+deb13u1) trixie; urgency=medium
+
+  * Fix Zip64 end of central directory locator. (Closes: #1137041)
+
+ -- Bastian Germann <bage@adam>  Tue, 19 May 2026 18:33:42 +0200
+
 python-handy-archives (0.2.0-5) unstable; urgency=medium
 
   * Team upload.
diff -Nru python-handy-archives-0.2.0/debian/patches/47.patch 
python-handy-archives-0.2.0/debian/patches/47.patch
--- python-handy-archives-0.2.0/debian/patches/47.patch 1970-01-01 
01:00:00.000000000 +0100
+++ python-handy-archives-0.2.0/debian/patches/47.patch 2026-05-19 
18:31:32.000000000 +0200
@@ -0,0 +1,32 @@
+From bfb369a93bc3c29376a3c11023edabc30b5da918 Mon Sep 17 00:00:00 2001
+From: Marcel Telka <[email protected]>
+Date: Wed, 12 Nov 2025 09:06:59 +0100
+Subject: [PATCH] Fix Zip64 end of central directory locator in
+ make_zip64_file()
+
+---
+ tests/test_zipfile.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_zipfile.py b/tests/test_zipfile.py
+index da81e75..a72eaad 100644
+--- a/tests/test_zipfile.py
++++ b/tests/test_zipfile.py
+@@ -1071,6 +1071,8 @@ def make_zip64_file(
+               local_extra_length = struct.pack("<H", 4 + 8 * 
len(local_zip64_fields))
+               central_extra_length = struct.pack("<H", 4 + 8 * 
len(central_zip64_fields))
+ 
++              relative_offset_eocd = struct.pack("<Q", 108 + 8 * 
(len(central_zip64_fields) + len(local_zip64_fields)))
++
+               filename = b"test.txt"
+               content = b"test1234"
+               filename_length = struct.pack("<H", len(filename))
+@@ -1087,7 +1089,7 @@ def make_zip64_file(
+                               + 
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00"
+                               + b"\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" + 
central_dir_size + offset_to_central_dir
+                               # Zip64 end of central directory locator
+-                              + 
b"PK\x06\x07\x00\x00\x00\x00l\x00\x00\x00\x00\x00\x00\x00\x01" + b"\x00\x00\x00"
++                              + b"PK\x06\x07\x00\x00\x00\x00" + 
relative_offset_eocd + b"\x01\x00\x00\x00"
+                               # end of central directory
+                               + 
b"PK\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00:\x00\x00\x002\x00" + 
b"\x00\x00\x00\x00"
+                               )
diff -Nru python-handy-archives-0.2.0/debian/patches/series 
python-handy-archives-0.2.0/debian/patches/series
--- python-handy-archives-0.2.0/debian/patches/series   2025-05-04 
17:48:03.000000000 +0200
+++ python-handy-archives-0.2.0/debian/patches/series   2026-05-19 
18:33:03.000000000 +0200
@@ -1,2 +1,3 @@
 001.skip-tests-error.patch
 py313-repr-skip-mode.patch
+47.patch

Reply via email to