public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pillow] rawhide: Fix compatibility with Python 3.16
@ 2026-11-26 11:51 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-11-26 11:51 UTC (permalink / raw)
  To: git-commits

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
 

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

only message in thread, other threads:[~2026-11-26 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 11:51 [rpms/python-pillow] rawhide: Fix compatibility with Python 3.16 Karolina Surma

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