Article View: linux.debian.bugs.dist
Article #5397Bug#1154733: trixie-pu: package pdfposter/0.8.1-4+deb13u1
From: Bastian Germann
Date: Sat, 21 Nov 2026 21:40
Date: Sat, 21 Nov 2026 21:40
105 lines
5764 bytes
5764 bytes
This is a multi-part MIME message sent by reportbug.
--===============2388729691685694119==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: pdfposter@packages.debian.org
Control: affects -1 + src:pdfposter
User: release.debian.org@packages.debian.org
Usertags: pu
[ Reason ]
pdfposter fails to work with the trixie version of pypdf
(which is the main dependency it is built around).
[ Impact ]
A use case that fails with a TypeError is reported in #1143875.
[ Tests ]
Run the test reported in #1143875. With the patch applied it does not fail.
[ Risks ]
The additional patch is an upstream patch and just has changes from str to bytestrings.
[ 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 (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
Adds an upstream patch with the changes for the correct pypdf 5 API calls.
--===============2388729691685694119==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="pdfposter_0.8.1-4+deb13u1.debdiff"
diff -Nru pdfposter-0.8.1/debian/changelog pdfposter-0.8.1/debian/changelog
--- pdfposter-0.8.1/debian/changelog 2025-02-10 06:46:43.000000000 +0100
+++ pdfposter-0.8.1/debian/changelog 2026-11-21 22:19:05.000000000 +0100
@@ -1,3 +1,9 @@
+pdfposter (0.8.1-4+deb13u1) trixie; urgency=medium
+
+ * Backport fix for pypdf >= 5 (Closes: #1143875)
+
+ -- Bastian Germann <bage@adam> Sat, 21 Nov 2026 22:19:05 +0100
+
pdfposter (0.8.1-4) unstable; urgency=medium
* Team upload.
diff -Nru pdfposter-0.8.1/debian/patches/pypdf-5.patch pdfposter-0.8.1/debian/patches/pypdf-5.patch
--- pdfposter-0.8.1/debian/patches/pypdf-5.patch 1970-01-01 01:00:00.000000000 +0100
+++ pdfposter-0.8.1/debian/patches/pypdf-5.patch 2026-11-21 22:18:20.000000000 +0100
@@ -0,0 +1,34 @@
+Origin: upstream, 0b1a0fa6ced45f49d6bf2a8c9d18208167ec856f
+From: Hartmut Goebel <h.goebel@crazy-compilers.com>
+Date: Tue, 22 Jul 2025 19:37:19 +0200
+Subject: Fix for pypdf >= 5.
+---
+--- a/pdftools/pdfposter/__init__.py
++++ b/pdftools/pdfposter/__init__.py
+@@ -235,12 +235,12 @@ def copyPage(page):
+ def _clip_pdf_page(page, x, y, width, height):
+ content = ContentStream(page["/Contents"].get_object(), None)
+ content.operations[:0] = [
+- ([], 'q'), # save graphic state
+- (RectangleObject((x, y, width, height)), 're'), # rectangle path
+- ([], 'W*'), # clip
+- ([], 'n'), # cancel path w/ filling or stroking
++ ([], b'q'), # save graphic state
++ (RectangleObject((x, y, width, height)), b're'), # rectangle path
++ ([], b'W*'), # clip
++ ([], b'n'), # cancel path w/ filling or stroking
+ ]
+- content.operations.append([[], "Q"]) # restore graphic state
++ content.operations.append([[], b'Q']) # restore graphic state
+ page[NameObject('/Contents')] = content
+
+
+@@ -257,7 +257,7 @@ def _scale_pdf_page(outpdf, page, factor):
+ #print boxname, type(box), box
+ # put transformation matrix in front of page content
+ content = ContentStream(page["/Contents"].get_object(), None)
+- content.operations.insert(0, [[], '%f 0 0 %f 0 0 cm' %(factor,factor)] )
++ content.operations.insert(0, [[], b'%f 0 0 %f 0 0 cm' %(factor,factor)] )
+ content = content.flate_encode()
+ # Add changed content as an indirect object. So the content will
+ # be referenced by the other pages and not copied. The content
diff -Nru pdfposter-0.8.1/debian/patches/series pdfposter-0.8.1/debian/patches/series
--- pdfposter-0.8.1/debian/patches/series 2025-02-05 19:53:07.000000000 +0100
+++ pdfposter-0.8.1/debian/patches/series 2026-11-21 22:17:07.000000000 +0100
@@ -1,2 +1,3 @@
Port-to-pypdf.patch
Sphinx-configuration.patch
+pypdf-5.patch
--===============2388729691685694119==--
Technical Details
Message-ID:
<O20Yp-dlkw-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Bastian Germann <bage@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release Subject: Bug#1154733: trixie-pu: package pdfposter/0.8.1-4+deb13u1 Date: Sat, 21 Nov 2026 22:40:01 +0100 Message-ID: <O20Yp-dlkw-9@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 21 21:37:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Bastian Germann <bage@debian.org>, 1154733@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pdfposter@packages.debian.org, debian-release@lists.debian.org X-Debian-Pr-Message: report 1154733 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie Content-Type: multipart/mixed; boundary="===============2388729691685694119==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0 X-Debian-User: bage X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003963 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 105 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 21 Nov 2026 22:34:25 +0100 X-Original-Message-ID: <179529686551.45295.14709147949753251520.reportbug@adam>