public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-fontconfig] rawhide: Add patch from Akira Tagoh to include fontconfig/fcfreetype.h header for FcFreeType* functions
@ 2026-07-26 11:33 Mohamed El Morabity
  0 siblings, 0 replies; only message in thread
From: Mohamed El Morabity @ 2026-07-26 11:33 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-fontconfig
Branch : rawhide
Commit : d758210c8a88cc5c4110907382da249ab36eecef
Author : Mohamed El Morabity <melmorabity@fedoraproject.org>
Date   : 2026-07-26T13:32:56+02:00
Stats  : +42/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-fontconfig/c/d758210c8a88cc5c4110907382da249ab36eecef?branch=rawhide

Log:
Add patch from Akira Tagoh to include fontconfig/fcfreetype.h header for FcFreeType* functions

---
diff --git a/python-fontconfig-0.6.2.post1-fcfreetype.patch b/python-fontconfig-0.6.2.post1-fcfreetype.patch
new file mode 100644
index 0000000..74bea63
--- /dev/null
+++ b/python-fontconfig-0.6.2.post1-fcfreetype.patch
@@ -0,0 +1,33 @@
+diff -up ./cfontconfig.pxd.orig ./cfontconfig.pxd
+--- ./cfontconfig.pxd.orig	2025-07-16 13:36:50.000000000 +0200
++++ ./cfontconfig.pxd	2026-07-26 11:47:01.651794747 +0200
+@@ -74,7 +74,6 @@ cdef extern from "fontconfig/fontconfig.
+     pass
+ 
+   FcPattern * FcPatternCreate()
+-  FcPattern * FcFreeTypeQuery(FcChar8 *, int, FcBlanks *, int *)
+   FcPattern * FcNameParse(FcChar8 *)
+   void FcPatternPrint(FcPattern *)
+   void FcPatternDestroy(FcPattern *)
+@@ -109,6 +108,9 @@ cdef extern from "fontconfig/fontconfig.
+   int FcUtf8ToUcs4(FcChar8 *, FcChar32 *, int)
+   double FcWeightToOpenTypeDouble(double);
+ 
++cdef extern from "fontconfig/fcfreetype.h":
++  FcPattern * FcFreeTypeQuery(FcChar8 *, int, FcBlanks *, int *)
++
+ cdef extern from "fcmore.h":
+   ctypedef struct FcStrSet:
+     int ref
+diff -up ./setup.py.orig ./setup.py
+--- ./setup.py.orig	2025-07-16 13:36:50.000000000 +0200
++++ ./setup.py	2026-07-26 11:47:01.655643654 +0200
+@@ -5,7 +5,7 @@ def ext_modules(build=False):
+     sources = ['fontconfig.pyx']
+   else:
+     sources = ['fontconfig.c']
+-  ext = [Extension('fontconfig', sources, libraries=["fontconfig"])]
++  ext = [Extension('fontconfig', sources, libraries=["fontconfig"], include_dirs=["/usr/include/freetype2"])]
+   return ext
+ 
+ args = {}

diff --git a/python-fontconfig.spec b/python-fontconfig.spec
index fc8084f..0c4b82f 100644
--- a/python-fontconfig.spec
+++ b/python-fontconfig.spec
@@ -2,15 +2,20 @@
 
 Name:           python-fontconfig
 Version:        0.6.2.post1
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Python bindings for Fontconfig library
 
 License:        GPL-3.0-or-later
 URL:            https://github.com/lilydjwg/%{name}
 Source0:        %{pypi_source}
+# Fix build against fontconfig >= 2.18
+# Originally proposed by Akira Tagoh in
+# https://src.fedoraproject.org/rpms/python-fontconfig/pull-request/1
+Patch0:         %{name}-0.6.2.post1-fcfreetype.patch
 
 BuildRequires:  gcc
 BuildRequires:  fontconfig-devel
+BuildRequires:  freetype-devel
 BuildRequires:  python3-Cython
 BuildRequires:  python3-devel
 # Needed for tests
@@ -56,6 +61,9 @@ yes | %{py3_test_envvars} %{python3} test/test.py
 
 
 %changelog
+* Sun Jul 26 2026 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.6.2.post1-5
+- Add patch from Akira Tagoh to include fontconfig/fcfreetype.h header for FcFreeType* functions
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2.post1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-26 11:33 [rpms/python-fontconfig] rawhide: Add patch from Akira Tagoh to include fontconfig/fcfreetype.h header for FcFreeType* functions Mohamed El Morabity

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