The tk.tcl file was missing on the rootfs.

  File "/usr/lib/python3.13/tkinter/__init__.py", line 2459, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, 
wantobjects, useTk, sync, use)
              
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  _tkinter.TclError: Can't find a usable tk.tcl in the following directories:
    //zipfs:/app/tk_library //zipfs:/lib/tk/tk_library //zipfs:/lib/tk 
/usr/lib/tk9.0 /usr/lib/tcl9.0/tk9.0 /usr/lib/tk9.0 /usr/lib/tk9.0 /lib/tk9.0 
/usr/library

By disabling the zipfs options the tk.tcl is in the rootfs.

Debian did also disable this option.
@see: https://sources.debian.org/src/tk9.0/9.0.2-1/debian/rules#L39

Tested on Walnascar.  But master does have the same version of Tk.

Signed-off-by: Jan Vermaete <[email protected]>
---
 meta-oe/recipes-devtools/tcltk/tk_9.0.2.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-devtools/tcltk/tk_9.0.2.bb 
b/meta-oe/recipes-devtools/tcltk/tk_9.0.2.bb
index fc2dde497f..16feb1182f 100644
--- a/meta-oe/recipes-devtools/tcltk/tk_9.0.2.bb
+++ b/meta-oe/recipes-devtools/tcltk/tk_9.0.2.bb
@@ -44,6 +44,7 @@ EXTRA_OECONF = "\
     --with-x \
     --with-tcl=${STAGING_BINDIR}/crossscripts \
     --libdir=${libdir} \
+    --disable-zipfs \
 "
 
 export TK_LIBRARY = '${libdir}/tk${VER}'
-- 
2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121452): 
https://lists.openembedded.org/g/openembedded-devel/message/121452
Mute This Topic: https://lists.openembedded.org/mt/116216201/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to