From: Alexandre Ondet <frcomdev@gmail.com>
To: buildroot@buildroot.org
Cc: Alexandre Ondet <frcomdev@gmail.com>,
James Hilliard <james.hilliard1@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 1/2] package/python-fonttools: add host-python package
Date: Mon, 4 May 2026 11:16:20 -0400 [thread overview]
Message-ID: <20260504151620.1877-1-frcomdev@gmail.com> (raw)
Some setuptools-based packages (e.g. fpdf2) invoke fonttools CLI tools such as pyftsubset during the build. Register the host variant so host-python-fonttools can be selected as a build dependency.
HOST_PYTHON_FONTTOOLS_* mirror the existing Cython-enabled target recipe.
Signed-off-by: Alexandre Ondet <frcomdev@gmail.com>
---
package/Config.in.host | 1 +
package/python-fonttools/Config.in.host | 7 +++++++
package/python-fonttools/python-fonttools.mk | 3 +++
3 files changed, 11 insertions(+)
create mode 100644 package/python-fonttools/Config.in.host
diff --git a/package/Config.in.host b/package/Config.in.host
index bb6732a639..4668c2ad42 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -88,6 +88,7 @@ menu "Host utilities"
source "package/pru-software-support/Config.in.host"
source "package/pwgen/Config.in.host"
source "package/python-cython/Config.in.host"
+ source "package/python-fonttools/Config.in.host"
source "package/python-greenlet/Config.in.host"
source "package/python-iniparse/Config.in.host"
source "package/python-kflash/Config.in.host"
diff --git a/package/python-fonttools/Config.in.host b/package/python-fonttools/Config.in.host
new file mode 100644
index 0000000000..5263963b79
--- /dev/null
+++ b/package/python-fonttools/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_PYTHON_FONTTOOLS
+ bool "host python-fonttools"
+ help
+ Tools to manipulate font files (host). Provides CLI utilities such as
+ pyftsubset used by some Python packages at build time.
+
+ https://github.com/fonttools/fonttools
diff --git a/package/python-fonttools/python-fonttools.mk b/package/python-fonttools/python-fonttools.mk
index 1eb8224197..9e3a53d871 100644
--- a/package/python-fonttools/python-fonttools.mk
+++ b/package/python-fonttools/python-fonttools.mk
@@ -12,5 +12,8 @@ PYTHON_FONTTOOLS_LICENSE = MIT
PYTHON_FONTTOOLS_LICENSE_FILES = LICENSE
PYTHON_FONTTOOLS_DEPENDENCIES = host-python-cython
PYTHON_FONTTOOLS_ENV = FONTTOOLS_WITH_CYTHON=1
+HOST_PYTHON_FONTTOOLS_DEPENDENCIES = host-python-cython
+HOST_PYTHON_FONTTOOLS_ENV = FONTTOOLS_WITH_CYTHON=1
$(eval $(python-package))
+$(eval $(host-python-package))
--
2.53.0.windows.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
reply other threads:[~2026-05-04 15:16 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=20260504151620.1877-1-frcomdev@gmail.com \
--to=frcomdev@gmail.com \
--cc=buildroot@buildroot.org \
--cc=james.hilliard1@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.