public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pillow] rawhide: Fix compatibility with Python 3.16
Date: Thu, 26 Nov 2026 11:51:36 GMT [thread overview]
Message-ID: <179569389671.1.13189899169530150645.rpms-python-pillow-b3507238fbff@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pillow
Branch : rawhide
Commit : b3507238fbff393666a7a62f0b7da0b8eae8772c
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-11-26T12:51:20+01:00
Stats : +43/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pillow/c/b3507238fbff393666a7a62f0b7da0b8eae8772c?branch=rawhide
Log:
Fix compatibility with Python 3.16
---
diff --git a/pillow_have_prototypes.patch b/pillow_have_prototypes.patch
new file mode 100644
index 0000000..5c784ea
--- /dev/null
+++ b/pillow_have_prototypes.patch
@@ -0,0 +1,34 @@
+From e31af4a6340468631df48fe3f18fe776a9460671 Mon Sep 17 00:00:00 2001
+From: Lazizbek Ergashev <lazerg2@gmail.com>
+Date: Tue, 27 Oct 2026 07:56:58 +0500
+Subject: [PATCH] Remove HAVE_PROTOTYPES and STDC_HEADERS checks (#10324)
+
+Backported to 13.0.0 without the docs/releasenotes/13.1.0.rst hunk
+(the file does not exist in this release).
+
+---
+ src/libImaging/ImPlatform.h | 8 --------
+ 1 file changed, 8 deletions(-)
+
+diff --git a/src/libImaging/ImPlatform.h b/src/libImaging/ImPlatform.h
+index a800d8278f9..ed321ade4f0 100644
+--- a/src/libImaging/ImPlatform.h
++++ b/src/libImaging/ImPlatform.h
+@@ -10,14 +10,6 @@
+ #define PY_SSIZE_T_CLEAN
+ #include <Python.h>
+
+-/* Check that we have an ANSI compliant compiler */
+-#ifndef HAVE_PROTOTYPES
+-#error Sorry, this library requires support for ANSI prototypes.
+-#endif
+-#ifndef STDC_HEADERS
+-#error Sorry, this library requires ANSI header files.
+-#endif
+-
+ #if defined(_WIN32) || defined(__CYGWIN__) /* WIN */
+
+ #define WIN32_LEAN_AND_MEAN
+--
+2.48.1
+
diff --git a/python-pillow.spec b/python-pillow.spec
index 73c5498..9dfd3a5 100644
--- a/python-pillow.spec
+++ b/python-pillow.spec
@@ -18,7 +18,7 @@
Name: python-%{srcname}
Version: 13.0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python image processing library
# License: see http://www.pythonware.com/products/pil/license.htm
@@ -29,6 +29,10 @@ Source0: https://github.com/python-pillow/Pillow/archive/%{version}/Pillo
# MinGW build fixes
Patch0: pillow_mingw.patch
+# Remove HAVE_PROTOTYPES/STDC_HEADERS checks; the macros are no longer
+# defined in pyconfig.h since Python 3.16 (upstream #10324, e31af4a)
+Patch1: pillow_have_prototypes.patch
+
BuildRequires: freetype-devel
BuildRequires: gcc
BuildRequires: ghostscript
@@ -309,6 +313,10 @@ popd
%changelog
+* Mon Nov 16 2026 Karolina Surma <ksurma@redhat.com> - 13.0.0-2
+- Remove HAVE_PROTOTYPES/STDC_HEADERS checks for Python 3.16
+ (upstream #10324, backported from e31af4a)
+
* Fri Oct 16 2026 Sandro Mani <manisandro@gmail.com> - 13.0.0-1
- Update to 13.0.0
reply other threads:[~2026-11-26 11:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179569389671.1.13189899169530150645.rpms-python-pillow-b3507238fbff@fedoraproject.org \
--to=ksurma@redhat.com \
--cc=git-commits@fedoraproject.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