From a103ee3a44afe04d945000fce224ac10da6f7a97f386f8120de6695f909f2e13 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Mon, 24 Mar 2025 12:51:22 +0000 Subject: [PATCH] Accepting request 1255619 from home:mcalabkova:branches:devel:languages:python - Add patch libwebp150.patch to skip tests failing on s390x * reported: https://github.com/python-pillow/Pillow/issues/8831 OBS-URL: https://build.opensuse.org/request/show/1255619 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=162 --- libwebp150.patch | 26 ++++++++++++++++++++++++++ python-Pillow.changes | 6 ++++++ python-Pillow.spec | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 libwebp150.patch diff --git a/libwebp150.patch b/libwebp150.patch new file mode 100644 index 0000000..bae6ffd --- /dev/null +++ b/libwebp150.patch @@ -0,0 +1,26 @@ +Index: pillow-11.1.0/Tests/test_file_webp_animated.py +=================================================================== +--- pillow-11.1.0.orig/Tests/test_file_webp_animated.py ++++ pillow-11.1.0/Tests/test_file_webp_animated.py +@@ -52,8 +52,8 @@ def test_write_animation_L(tmp_path: Pat + if is_big_endian(): + version = features.version_module("webp") + assert version is not None +- if parse_version(version) < parse_version("1.2.2"): +- pytest.skip("Fails with libwebp earlier than 1.2.2") ++ if parse_version(version) < parse_version("1.2.2") or parse_version(version) > parse_version("1.4.0"): ++ pytest.skip("Fails with libwebp earlier than 1.2.2 and greater than 1.4.0") + orig.seek(orig.n_frames - 1) + im.seek(im.n_frames - 1) + orig.load() +@@ -79,8 +79,8 @@ def test_write_animation_RGB(tmp_path: P + if is_big_endian(): + version = features.version_module("webp") + assert version is not None +- if parse_version(version) < parse_version("1.2.2"): +- pytest.skip("Fails with libwebp earlier than 1.2.2") ++ if parse_version(version) < parse_version("1.2.2") or parse_version(version) > parse_version("1.4.0"): ++ pytest.skip("Fails with libwebp earlier than 1.2.2 and greater than 1.4.0") + im.seek(1) + im.load() + assert_image_equal(im, frame2.convert("RGBA")) diff --git a/python-Pillow.changes b/python-Pillow.changes index ca17e89..76c9f80 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 24 12:38:24 UTC 2025 - Markéta Machová + +- Add patch libwebp150.patch to skip tests failing on s390x + * reported: https://github.com/python-pillow/Pillow/issues/8831 + ------------------------------------------------------------------- Mon Jan 13 08:31:53 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-Pillow.spec b/python-Pillow.spec index 965f38a..fa7d898 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -24,6 +24,8 @@ Summary: Python Imaging Library (Fork) License: HPND URL: https://python-pillow.org/ Source: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz +# PATCH-FIX-UPSTREAM as per https://github.com/python-pillow/Pillow/issues/8831 +Patch: libwebp150.patch BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module olefile} BuildRequires: %{python_module pip}