From c3c0b4ef7105c52a888ca2c12c5dd759a6c08b88 Mon Sep 17 00:00:00 2001 From: Ali Zulfiqar Date: Mon, 5 Oct 2026 13:01:31 +0500 Subject: [PATCH 1/2] Pin binaryornot back to 0.4.4 binaryornot 0.6.0 checks only the first 512 bytes of a file, and its UTF-8 check fails when that cut lands inside a multi-byte character, so UTF-8 text with CJK characters is classified as binary. Such files are then scanned as binary and only their ASCII strings are matched, which broke 4 data-driven license tests on develop since the bump (nysl-0.9982, nysl-0.9982_jp, MulanPSL-1.0.t1, fossology BSD manual-bsdstyle). This is an open upstream bug (binaryornot/binaryornot#658, #666, unmerged fix in #667). 0.4.4 is the version used before the bump; chardet, which it needs, is already pinned. Signed-off-by: Ali Zulfiqar --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5da3200c5e7..e534652d52c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ babel==2.17.0 banal==1.0.6 beartype==0.22.9 beautifulsoup4==4.14.3 -binaryornot==0.6.0 +binaryornot==0.4.4 boolean.py==5.0 certifi==2026.1.4 cffi==2.0.0 From 4ce534284bb8355378ccc06e0f2254a365be882c Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Mon, 12 Oct 2026 14:36:45 -0700 Subject: [PATCH 2/2] Pin binaryornot to v0.4.4 to fix errors Also installs commoncode first and then scancode so that the requirements are honoured. Reference: https://github.com/aboutcode-org/scancode-toolkit/pull/5343 Signed-off-by: Ayan Sinha Mahapatra --- configure | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index fea9562930f..8f2f685f10e 100755 --- a/configure +++ b/configure @@ -261,8 +261,8 @@ install_packages_with_local() { # we need to install commoncode from local source first so this # is tested and not the released commoncode "$CFG_BIN_DIR/flot" --pyproject pyproject-commoncode.toml - install_packages "$CFG_REQUIREMENTS" "$CFG_BIN_DIR/pip" install --force-reinstall ./dist/commoncode*.whl + install_packages "$CFG_REQUIREMENTS" } diff --git a/requirements.txt b/requirements.txt index 5da3200c5e7..e534652d52c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ babel==2.17.0 banal==1.0.6 beartype==0.22.9 beautifulsoup4==4.14.3 -binaryornot==0.6.0 +binaryornot==0.4.4 boolean.py==5.0 certifi==2026.1.4 cffi==2.0.0