public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mohamed El Morabity <melmorabity@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-fontconfig] rawhide: Add patch from Akira Tagoh to include fontconfig/fcfreetype.h header for FcFreeType* functions
Date: Sun, 26 Jul 2026 11:33:27 GMT	[thread overview]
Message-ID: <178506560733.1.11708984176829344706.rpms-python-fontconfig-d758210c8a88@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-07-26 11:33 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=178506560733.1.11708984176829344706.rpms-python-fontconfig-d758210c8a88@fedoraproject.org \
    --to=melmorabity@fedoraproject.org \
    --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