Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pypdf for openSUSE:Factory checked in at 2026-09-07 11:31:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pypdf (Old) and /work/SRC/openSUSE:Factory/.python-pypdf.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypdf" Mon Sep 7 11:31:15 2026 rev:25 rq:1375813 version:6.16.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pypdf/python-pypdf.changes 2026-08-24 15:44:22.809339503 +0200 +++ /work/SRC/openSUSE:Factory/.python-pypdf.new.1265/python-pypdf.changes 2026-09-07 11:33:22.291497124 +0200 @@ -1,0 +2,5 @@ +Fri Sep 4 13:43:49 UTC 2026 - Markéta Machová <[email protected]> + +- Add fonttools-slfo.patch to restore compatibility with FontTools < 4.57 + +------------------------------------------------------------------- @@ -14 +19 @@ - 6.15.0 (CVE-2026-71870, bsc#1274688, CVE-2026-71852, bsc#1275551) + 6.15.0 (CVE-2026-71870, bsc#1274688, CVE-2026-71852, bsc#1275551, CVE-2026-82398, bsc#1278166) New: ---- fonttools-slfo.patch ----------(New B)---------- New: - Add fonttools-slfo.patch to restore compatibility with FontTools < 4.57 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pypdf.spec ++++++ --- /var/tmp/diff_new_pack.oCVkpG/_old 2026-09-07 11:33:23.069524385 +0200 +++ /var/tmp/diff_new_pack.oCVkpG/_new 2026-09-07 11:33:23.071524455 +0200 @@ -24,6 +24,9 @@ License: BSD-3-Clause URL: https://github.com/py-pdf/pypdf Source0: https://github.com/py-pdf/pypdf/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE make pypdf work with fonttools in slfo-1.2 +# sent upstream https://github.com/py-pdf/pypdf/pull/4050 +Patch0: fonttools-slfo.patch BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} BuildRequires: fdupes @@ -58,7 +61,7 @@ It is therefore a useful tool for websites that manage or manipulate PDFs. %prep -%autosetup -n pypdf-%{version} +%autosetup -p1 -n pypdf-%{version} %build %pyproject_wheel ++++++ fonttools-slfo.patch ++++++ Index: pypdf-6.16.2/pypdf/_font.py =================================================================== --- pypdf-6.16.2.orig/pypdf/_font.py +++ pypdf-6.16.2/pypdf/_font.py @@ -574,7 +574,11 @@ class Font: # creates a dictionary mapping glyphs to the minimum Unicode codepoint. tt_font_cmap_table = tt_font_object.get("cmap") if tt_font_cmap_table: - reverse_cmap = tt_font_cmap_table.buildReversedMin() + try: + reverse_cmap = tt_font_cmap_table.buildReversedMin() + except AttributeError: + # use buildReversed on fonttools < 4.57 and build a list of minimums from it + reverse_cmap = {k: min(r) for k, r in tt_font_cmap_table.buildReversed().items()} for gid, glyph in enumerate(glyph_order): char_code = reverse_cmap.get(glyph) if char_code is None:
