From: "Eli Schwartz" <eschwartz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/calibre/, app-text/calibre/files/
Date: Sun, 10 Nov 2024 21:29:38 +0000 (UTC) [thread overview]
Message-ID: <1731274159.4ddb78d1ccd58984d9f01154a20cf5ab3be4233f.eschwartz@gentoo> (raw)
commit: 4ddb78d1ccd58984d9f01154a20cf5ab3be4233f
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 21:28:19 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 21:29:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ddb78d1
app-text/calibre: backport patch to fix tests with pillow 11
Apply the fix to stable in addition to packaging the new version.
Bug: https://bugs.gentoo.org/943009
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
app-text/calibre/calibre-7.19.0.ebuild | 2 ++
app-text/calibre/calibre-7.20.0.ebuild | 2 ++
...PIL-11.0-changes-its-webp-features-output.patch | 36 ++++++++++++++++++++++
3 files changed, 40 insertions(+)
diff --git a/app-text/calibre/calibre-7.19.0.ebuild b/app-text/calibre/calibre-7.19.0.ebuild
index 7dc060197e38..184ae72b4dc1 100644
--- a/app-text/calibre/calibre-7.19.0.ebuild
+++ b/app-text/calibre/calibre-7.19.0.ebuild
@@ -124,6 +124,8 @@ PATCHES=(
# We don't (yet?) package libjxr and it seems to be dead upstream
# (last commit in 2017)
"${FILESDIR}/${PN}-7.0.0-jxr-test.patch"
+ # fix tests with pillow 11
+ "${FILESDIR}"/0001-PIL-11.0-changes-its-webp-features-output.patch
)
src_prepare() {
diff --git a/app-text/calibre/calibre-7.20.0.ebuild b/app-text/calibre/calibre-7.20.0.ebuild
index de5d2fa83dcf..44412dec9bce 100644
--- a/app-text/calibre/calibre-7.20.0.ebuild
+++ b/app-text/calibre/calibre-7.20.0.ebuild
@@ -125,6 +125,8 @@ PATCHES=(
# We don't (yet?) package libjxr and it seems to be dead upstream
# (last commit in 2017)
"${FILESDIR}/${PN}-7.0.0-jxr-test.patch"
+ # fix tests with pillow 11
+ "${FILESDIR}"/0001-PIL-11.0-changes-its-webp-features-output.patch
)
src_prepare() {
diff --git a/app-text/calibre/files/0001-PIL-11.0-changes-its-webp-features-output.patch b/app-text/calibre/files/0001-PIL-11.0-changes-its-webp-features-output.patch
new file mode 100644
index 000000000000..61d00913dd33
--- /dev/null
+++ b/app-text/calibre/files/0001-PIL-11.0-changes-its-webp-features-output.patch
@@ -0,0 +1,36 @@
+From a961ddbfcb96461fd830ccd6facb81d69cc679d8 Mon Sep 17 00:00:00 2001
+From: Kovid Goyal <kovid@kovidgoyal.net>
+Date: Tue, 29 Oct 2024 06:08:04 +0530
+Subject: [PATCH] PIL 11.0 changes its webp features output
+
+---
+ src/calibre/test_build.py | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py
+index 4e3d740705..91c32eba38 100644
+--- a/src/calibre/test_build.py
++++ b/src/calibre/test_build.py
+@@ -436,16 +436,14 @@ def test_imaging(self):
+ out = StringIO()
+ features.pilinfo(out=out, supported_formats=False)
+ out = out.getvalue()
+- for line in '''\
++ lines = '''\
+ --- PIL CORE support ok
+ --- FREETYPE2 support ok
+ --- WEBP support ok
+- --- WEBP Transparency support ok
+- --- WEBPMUX support ok
+- --- WEBP Animation support ok
+ --- JPEG support ok
+ --- ZLIB (PNG/ZIP) support ok
+- '''.splitlines():
++ '''.splitlines()
++ for line in lines:
+ self.assertIn(line.strip(), out)
+ with Image.open(I('lt.png', allow_user_override=False)) as i:
+ self.assertGreaterEqual(i.size, (20, 20))
+--
+2.45.2
+
next reply other threads:[~2024-11-10 21:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 21:29 Eli Schwartz [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-08-14 5:09 [gentoo-commits] repo/gentoo:master commit in: app-text/calibre/, app-text/calibre/files/ Eli Schwartz
2025-06-07 4:59 Sam James
2023-11-19 4:45 Zac Medico
2023-10-18 4:26 Zac Medico
2022-01-21 4:11 Zac Medico
2020-02-09 20:50 Zac Medico
2015-11-10 13:50 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1731274159.4ddb78d1ccd58984d9f01154a20cf5ab3be4233f.eschwartz@gentoo \
--to=eschwartz@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox