* [PATCH] python3-chardet: upgrade 5.2.0 -> 7.0.1
@ 2026-03-05 7:42 jiaying.song.cn
2026-03-11 12:11 ` [OE-core] " Böszörményi Zoltán
0 siblings, 1 reply; 3+ messages in thread
From: jiaying.song.cn @ 2026-03-05 7:42 UTC (permalink / raw)
To: openembedded-core
From: Jiaying Song <jiaying.song.cn@windriver.com>
Major version upgrade with significant improvements:
- License changed from LGPL-2.1-only to MIT
- Ground-up rewrite with 12-stage detection pipeline
- 43x faster with mypyc (30x pure Python)
- 98.1% accuracy (+9.9pp improvement)
- Added language detection support (95.1% accuracy, 49 languages)
- Expanded to 99 encodings coverage
Build system changes:
- Switch from python_setuptools_build_meta to python_hatchling
- Add python3-hatch-vcs-native build dependency
https://github.com/chardet/chardet/compare/5.2.0...7.0.1
Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
---
...thon3-chardet_5.2.0.bb => python3-chardet_7.0.1.bb} | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
rename meta/recipes-devtools/python/{python3-chardet_5.2.0.bb => python3-chardet_7.0.1.bb} (57%)
diff --git a/meta/recipes-devtools/python/python3-chardet_5.2.0.bb b/meta/recipes-devtools/python/python3-chardet_7.0.1.bb
similarity index 57%
rename from meta/recipes-devtools/python/python3-chardet_5.2.0.bb
rename to meta/recipes-devtools/python/python3-chardet_7.0.1.bb
index 9acbeeb3f2..1bca7e2f3a 100644
--- a/meta/recipes-devtools/python/python3-chardet_5.2.0.bb
+++ b/meta/recipes-devtools/python/python3-chardet_7.0.1.bb
@@ -1,11 +1,13 @@
SUMMARY = "Universal encoding detector for Python 2 and 3"
HOMEPAGE = "https://pypi.org/project/chardet/"
-LICENSE = "LGPL-2.1-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5ceb043323c2ee90204004ecea245f1d"
-SRC_URI[sha256sum] = "1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"
+SRC_URI[sha256sum] = "6fce895c12c5495bb598e59ae3cd89306969b4464ec7b6dd609b9c86e3397fe3"
-inherit pypi python_setuptools_build_meta
+inherit pypi python_hatchling
+
+DEPENDS += "python3-hatch-vcs-native"
PACKAGES =+ "${PN}-cli"
FILES:${PN}-cli += " \
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] python3-chardet: upgrade 5.2.0 -> 7.0.1
2026-03-05 7:42 [PATCH] python3-chardet: upgrade 5.2.0 -> 7.0.1 jiaying.song.cn
@ 2026-03-11 12:11 ` Böszörményi Zoltán
2026-03-12 8:36 ` Song, Jiaying (CN)
0 siblings, 1 reply; 3+ messages in thread
From: Böszörményi Zoltán @ 2026-03-11 12:11 UTC (permalink / raw)
To: Jiaying.Song.CN, openembedded-core
2026. 03. 05. 8:42 keltezéssel, Song, Jiaying (CN) via lists.openembedded.org írta:
> From: Jiaying Song <jiaying.song.cn@windriver.com>
>
> Major version upgrade with significant improvements:
> - License changed from LGPL-2.1-only to MIT
Please hold off on this until the license controversy is resolved.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [OE-core] [PATCH] python3-chardet: upgrade 5.2.0 -> 7.0.1
2026-03-11 12:11 ` [OE-core] " Böszörményi Zoltán
@ 2026-03-12 8:36 ` Song, Jiaying (CN)
0 siblings, 0 replies; 3+ messages in thread
From: Song, Jiaying (CN) @ 2026-03-12 8:36 UTC (permalink / raw)
To: Böszörményi Zoltán,
openembedded-core@lists.openembedded.org
Hi Zoltán,
Thanks for the feedback. You're right - I'll hold off on the 7.x upgrade due to the ongoing license controversy.
Background:
The 7.0.0+ versions were rewritten by maintainer Dan Blanchard using Claude AI. He claims it's an independent work not derived from GPL/LGPL code, justifying the MIT license change.
However, the original author Mark Pilgrim objected on March 5th (https://github.com/chardet/chardet/issues/327), arguing that AI-assisted rewrites still reference the original LGPL code and should remain under LGPL.
Current Status:
Based on Dan Blanchard's final comment (https://github.com/chardet/chardet/issues/327#issuecomment-4017410801), this license dispute is unlikely to be
resolved soon. He locked the discussion without changing his position.
Solution:
I've submitted a new patch upgrading to 6.0.0.post1 instead - the latest version without license controversy. This maintains LGPL-2.1-only and avoids
potential compliance risks.
Thanks,
Jiaying.
-----Original Message-----
From: Böszörményi Zoltán <zboszor@gmail.com>
Sent: Wednesday, March 11, 2026 8:12 PM
To: Song, Jiaying (CN) <Jiaying.Song.CN@windriver.com>; openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] python3-chardet: upgrade 5.2.0 -> 7.0.1
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.
2026. 03. 05. 8:42 keltezéssel, Song, Jiaying (CN) via lists.openembedded.org írta:
> From: Jiaying Song <jiaying.song.cn@windriver.com>
>
> Major version upgrade with significant improvements:
> - License changed from LGPL-2.1-only to MIT
Please hold off on this until the license controversy is resolved.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-12 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 7:42 [PATCH] python3-chardet: upgrade 5.2.0 -> 7.0.1 jiaying.song.cn
2026-03-11 12:11 ` [OE-core] " Böszörményi Zoltán
2026-03-12 8:36 ` Song, Jiaying (CN)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox