Could Tk (of Tcl/Tk) be added to repos?

I found the tcl package, but no tk package. I use some legacy programs for Tcl/Tk, even under postmarketOS and touch interactions work well. Is this possible under SFOS?

If you need a simple test case, try to install gitk.

Does Tcl/Tk work with Wayland, no X11, and waylands wl_shell, not xdg_shell protocol?

AFAICS it does not, then the answer is no, not easily.

I hear there is something called undroidwish which supports Wayland via SDL2, and SDL is available for Sailfish OS.
So that could in theory work but is likely to be quite time-consuming to get compiled and packaged correctly.

There’s the Containers app which allows you to install a Linux distribution as a guest, and AFAIK comes with XWayland. That approach could be used to get your legacy apps running.

(Out of curiosity: which applications are those?)

Apparently undroidwish have ported Tk to wayland: Tk - Binary Distributions

Tk is just simple and primitive enough* that it might be trivial to compile it for SFOS.

* that’s an endorsement btw, not a criticism

2 Likes

Thanks for your help, @nephros and @ohnonot. The binary distributed by undroidwish is linked against /lib/ld-linux-armhf.so.3. Is this available in SFOS?

1 Like

A distribution in a container is mighty, but I would like to try a lighter solution first.
The Tk applications I would like to run are closed-source (at least at the moment) and are GUIs for a personal speech recognizer and related tools.

Meh. That’s for 32bit ARM, as used in the Raspberry Pi.
You will not be able to run that on a 64bit Sailfish OS.

Which device do you have?

If it has /lib/ld-linux-aarch64.so.1 then you need the aarch64 binary.

My device is a Volla X23. There is no undroidwish-wayland-aarch64. I contacted the author.

I would like to build undroidwish for my phone. Can I build it on a Raspberry Pi 4 with openSUSE? If so, which version of openSUSE? (Building under Ubuntu 24.04 on the Pi 4 worked, but the GLIBC version is too new for running it under SFOS 5.0.0; I should have checked before :slight_smile: )