diff mbox series

[1/3] tcl: disable 'zipfs' feature

Message ID 20250122100324.1561841-1-alex.kanavin@gmail.com
State Accepted, archived
Commit 05e31be56498123b177f363c700c96b20958585c
Headers show
Series [1/3] tcl: disable 'zipfs' feature | expand

Commit Message

Alexander Kanavin Jan. 22, 2025, 10:03 a.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

zipfs is a new facility in tcl 9.x where various data files are bundled
into a zip archive, rather being separately installed.

Then that zip is embedded into libtcl.so from Makefile, thusly:

cat ${TCL_ZIP_FILE} >> ${LIB_FILE}

This is a major case of face meeting palm: any binary object
processing on the resulting .so file discards the extra data
at the end, and that's exactly what happens in do_package(),
resulting in a tcl installation without any language libraries.
This is not caught by ptest because it runs against a private
copy of the source tree.

Additionally, it helps to have data files on target systems
as files that can be viewed and edited.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/recipes-devtools/tcltk/tcl_9.0.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/tcltk/tcl_9.0.1.bb b/meta/recipes-devtools/tcltk/tcl_9.0.1.bb
index 0ba7288a600..485b293768d 100644
--- a/meta/recipes-devtools/tcltk/tcl_9.0.1.bb
+++ b/meta/recipes-devtools/tcltk/tcl_9.0.1.bb
@@ -37,7 +37,7 @@  inherit autotools ptest binconfig
 AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
 EXTRA_AUTORECONF = "--exclude=aclocal"
 
-EXTRA_OECONF = "--disable-rpath --enable-man-suffix=tcl9"
+EXTRA_OECONF = "--disable-rpath --enable-man-suffix=tcl9 --disable-zipfs"
 
 # Prevent installing copy of tzdata based on tzdata installation on the build host
 # It doesn't install tzdata if one of the following files exist on the host: