public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mupdf] f44: drop obsolete patch
@ 2026-10-23 15:14 Michael J Gruber
  0 siblings, 0 replies; only message in thread
From: Michael J Gruber @ 2026-10-23 15:14 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/mupdf
            Branch : f44
            Commit : df1c1ca483827d58876935f9b2e32a44d6877d99
            Author : Michael J Gruber <mjg@fedoraproject.org>
            Date   : 2026-09-04T12:48:43+02:00
            Stats  : +0/-47 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/mupdf/c/df1c1ca483827d58876935f9b2e32a44d6877d99?branch=f44

            Log:
            drop obsolete patch

This patch affects build testing only, not the built package. It has
been obsoleted by changes in 1.28.x.

[skip changelog]

---
diff --git a/0001-mupdfwrap_test-adjust-to-mupdf-1.27.x.patch b/0001-mupdfwrap_test-adjust-to-mupdf-1.27.x.patch
deleted file mode 100644
index 1423d66..0000000
--- a/0001-mupdfwrap_test-adjust-to-mupdf-1.27.x.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 3600658c93486cb854a84f22039969da08bb8f71 Mon Sep 17 00:00:00 2001
-Message-ID: <3600658c93486cb854a84f22039969da08bb8f71.1784292319.git.mjg@fedoraproject.org>
-From: Michael J Gruber <mjg@fedoraproject.org>
-Date: Fri, 23 May 2025 15:57:30 +0200
-Subject: [PATCH] mupdfwrap_test: adjust to mupdf 1.27.x
-
-mupdf 1.27.x started to insist on resynthesis in:
-7db01c78a ("Ensure we have no pending form recalc or annot resynthesis before saving.", 2025-05-16)
-
-Adjust the script accordingly, catching both "pass" and the expected
-"raise".
----
- scripts/mupdfwrap_test.py | 16 +++++++++++++++-
- 1 file changed, 15 insertions(+), 1 deletion(-)
-
-diff --git a/scripts/mupdfwrap_test.py b/scripts/mupdfwrap_test.py
-index 7e077981d..4e48ca2c8 100755
---- a/scripts/mupdfwrap_test.py
-+++ b/scripts/mupdfwrap_test.py
-@@ -140,7 +140,21 @@ def test_filter(path):
-             document.pdf_end_operation()
- 
-     if 1:
--        document.pdf_save_document('mupdf_test-out0.pdf', mupdf.PdfWriteOptions())
-+        try:
-+            document.pdf_save_document('mupdf_test-out0.pdf', mupdf.PdfWriteOptions())
-+        except mupdf.FzErrorArgument as e:
-+            log(f'{type(e)=} {str(e)=} {repr(e)=}.')
-+            log(f'{e.what()=}.')
-+            expected = 'code=4: annotations need resynthesis before saving' # mupdf 1.27.x
-+            assert str(e) == expected and e.what() == expected, (
-+                    f'Incorrect exception text:\n'
-+                    f'    {str(e)=}\n'
-+                    f'    {e.what()=}\n'
-+                    f'    {expected=}'
-+                    )
-+        except Exception as e:
-+            assert 0, f'Incorrect exception {type(e)=} {e=}.'
-+            
- 
- 
- def test_install_load_system_font(path):
--- 
-2.55.0.417.gd2046ead17
-

diff --git a/mupdf.spec b/mupdf.spec
index 0078570..579125f 100644
--- a/mupdf.spec
+++ b/mupdf.spec
@@ -37,8 +37,6 @@ Patch:		0001-do-not-use-CXXFLAGS-with-swig.patch
 # for compatibility with SWIG 4.5.0
 # https://github.com/ArtifexSoftware/mupdf/pull/102
 Patch:		0001-Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch
-# Upstreamable:
-Patch:		0001-mupdfwrap_test-adjust-to-mupdf-1.27.x.patch
 
 BuildRequires:	gcc gcc-c++ make binutils desktop-file-utils coreutils pkgconfig
 BuildRequires:	openjpeg2-devel desktop-file-utils

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-23 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 15:14 [rpms/mupdf] f44: drop obsolete patch Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox