Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency
@ 2026-12-03  5:16 James Hilliard
  2026-12-03  5:16 ` [Buildroot] [PATCH v2 2/2] package/python-charset-normalizer: bump to version 3.5.3 James Hilliard
  2026-12-03 20:01 ` [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency Marcus Hoffmann via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2026-12-03  5:16 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard

charset_normalizer.utils imports unicodedata at runtime. Select the
module so that importing charset_normalizer also works when it would
otherwise be disabled in the target Python interpreter.

Fixes: 88a8565de08c ("package/python-charset-normalizer: new package")
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
Changes v1 -> v2:
  - Split the runtime dependency fix from the version bump for backporting.
---
 package/python-charset-normalizer/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/python-charset-normalizer/Config.in b/package/python-charset-normalizer/Config.in
index 3b01357167..52d3897745 100644
--- a/package/python-charset-normalizer/Config.in
+++ b/package/python-charset-normalizer/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_CHARSET_NORMALIZER
 	bool "python-charset-normalizer"
+	select BR2_PACKAGE_PYTHON3_UNICODEDATA
 	help
 	  The Real First Universal Charset Detector. Open, modern and
 	  actively maintained alternative to Chardet.
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v2 2/2] package/python-charset-normalizer: bump to version 3.5.3
  2026-12-03  5:16 [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency James Hilliard
@ 2026-12-03  5:16 ` James Hilliard
  2026-12-03 20:03   ` Marcus Hoffmann via buildroot
  2026-12-03 20:01 ` [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency Marcus Hoffmann via buildroot
  1 sibling, 1 reply; 4+ messages in thread
From: James Hilliard @ 2026-12-03  5:16 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard

The relaxed setuptools upper bound now includes the version in
Buildroot, so the build dependency check no longer needs to be
disabled.

Disable PGO for the target build. The training step uses the host
Python to import the instrumented target extensions. When building for
x86_64 musl on an x86_64 glibc host, it imports the Python fallback
instead and aborts the build.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
Changes v1 -> v2:
  - Split the unicodedata dependency fix into a separate patch.
  - Disable PGO for the target build (Marcus Hoffmann).
---
 .../python-charset-normalizer.hash                     |  4 ++--
 .../python-charset-normalizer.mk                       | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/package/python-charset-normalizer/python-charset-normalizer.hash b/package/python-charset-normalizer/python-charset-normalizer.hash
index 1257de8cfb..89c16b906c 100644
--- a/package/python-charset-normalizer/python-charset-normalizer.hash
+++ b/package/python-charset-normalizer/python-charset-normalizer.hash
@@ -1,5 +1,5 @@
 # md5, sha256 from https://pypi.org/pypi/charset-normalizer/json
-md5  0fd59692f546c0f8318af1728a12627f  charset_normalizer-3.5.2.tar.gz
-sha256  39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef  charset_normalizer-3.5.2.tar.gz
+md5  26b8d1659b28517350f0ca692d5e32d2  charset_normalizer-3.5.3.tar.gz
+sha256  a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff  charset_normalizer-3.5.3.tar.gz
 # Locally computed sha256 checksums
 sha256  6d0d41bfe170ac6c7dc248c9a63e254d0fb45a60d50a8257d0af92c6e249b887  LICENSE
diff --git a/package/python-charset-normalizer/python-charset-normalizer.mk b/package/python-charset-normalizer/python-charset-normalizer.mk
index 630db33043..f7863d0cde 100644
--- a/package/python-charset-normalizer/python-charset-normalizer.mk
+++ b/package/python-charset-normalizer/python-charset-normalizer.mk
@@ -4,16 +4,16 @@
 #
 ################################################################################
 
-PYTHON_CHARSET_NORMALIZER_VERSION = 3.5.2
+PYTHON_CHARSET_NORMALIZER_VERSION = 3.5.3
 PYTHON_CHARSET_NORMALIZER_SOURCE = charset_normalizer-$(PYTHON_CHARSET_NORMALIZER_VERSION).tar.gz
-PYTHON_CHARSET_NORMALIZER_SITE = https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89
+PYTHON_CHARSET_NORMALIZER_SITE = https://files.pythonhosted.org/packages/c2/c3/cae6d3bdefd96a941ffc247c714ac4babc488a69012e11c058f6c17c6c47
 PYTHON_CHARSET_NORMALIZER_SETUP_TYPE = setuptools
 PYTHON_CHARSET_NORMALIZER_LICENSE = MIT
 PYTHON_CHARSET_NORMALIZER_LICENSE_FILES = LICENSE
 PYTHON_CHARSET_NORMALIZER_DEPENDENCIES = host-python-cython
-PYTHON_CHARSET_NORMALIZER_ENV = CHARSET_NORMALIZER_USE_CYTHON=1
-# as of 3.5.2 pyproject.toml bans setuptools >=84.1
-PYTHON_CHARSET_NORMALIZER_BUILD_OPTS = --skip-dependency-check
+PYTHON_CHARSET_NORMALIZER_ENV = \
+	CHARSET_NORMALIZER_USE_CYTHON=1 \
+	CHARSET_NORMALIZER_USE_PGO=0
 
 $(eval $(python-package))
 $(eval $(host-python-package))
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency
  2026-12-03  5:16 [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency James Hilliard
  2026-12-03  5:16 ` [Buildroot] [PATCH v2 2/2] package/python-charset-normalizer: bump to version 3.5.3 James Hilliard
@ 2026-12-03 20:01 ` Marcus Hoffmann via buildroot
  1 sibling, 0 replies; 4+ messages in thread
From: Marcus Hoffmann via buildroot @ 2026-12-03 20:01 UTC (permalink / raw)
  To: James Hilliard, buildroot

On 12/3/26 06:16, James Hilliard wrote:
> charset_normalizer.utils imports unicodedata at runtime. Select the
> module so that importing charset_normalizer also works when it would
> otherwise be disabled in the target Python interpreter.
> 
> Fixes: 88a8565de08c ("package/python-charset-normalizer: new package")
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
Applied to master, thanks!
Marcus
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH v2 2/2] package/python-charset-normalizer: bump to version 3.5.3
  2026-12-03  5:16 ` [Buildroot] [PATCH v2 2/2] package/python-charset-normalizer: bump to version 3.5.3 James Hilliard
@ 2026-12-03 20:03   ` Marcus Hoffmann via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Marcus Hoffmann via buildroot @ 2026-12-03 20:03 UTC (permalink / raw)
  To: James Hilliard, buildroot

On 12/3/26 06:16, James Hilliard wrote:
> The relaxed setuptools upper bound now includes the version in
> Buildroot, so the build dependency check no longer needs to be
> disabled.
> 
> Disable PGO for the target build. The training step uses the host
> Python to import the instrumented target extensions. When building for
> x86_64 musl on an x86_64 glibc host, it imports the Python fallback
> instead and aborts the build.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
Applied to next, thanks! (Which has not yet been merged back into master)
Marcus
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-03 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  5:16 [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency James Hilliard
2026-12-03  5:16 ` [Buildroot] [PATCH v2 2/2] package/python-charset-normalizer: bump to version 3.5.3 James Hilliard
2026-12-03 20:03   ` Marcus Hoffmann via buildroot
2026-12-03 20:01 ` [Buildroot] [PATCH v2 1/2] package/python-charset-normalizer: add missing unicodedata dependency Marcus Hoffmann via buildroot

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