Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appImage: "/tmp/.mount_DarktaTmcr11/AppRun.wrapped: error while loading shared libraries: libthai.so.0: cannot open shared object file: No such file or directory" #16871

Closed
vitaly-zdanevich opened this issue May 26, 2024 · 11 comments
Labels
bug: upstream he bug needs a fix outside of the scope of darktable, in an external lib or in a driver bug: won't fix the bug needs a fix outside of the scope of darktable, at a theoretical level

Comments

@vitaly-zdanevich
Copy link

vitaly-zdanevich commented May 26, 2024

I have 4.6.0 from Gentoo repo that works, but not the appImage.

$ ./Darktable-4.7.0+1290.gc88724fea2-x86_64.AppImage
/tmp/.mount_DarktaTmcr11/AppRun.wrapped: error while loading shared libraries: libthai.so.0: cannot open shared object file: No such file or directory

@victoryforce
Copy link
Collaborator

@victoryforce victoryforce added the bug: won't fix the bug needs a fix outside of the scope of darktable, at a theoretical level label May 26, 2024
@AxelG-DE
Copy link

I do run gentoo, but I have actually no idea what appimage even is, but seeing your error, I just asked google...
https://www.google.com/search?client=firefox-b-d&q=+libthai.so.0

@victoryforce
Copy link
Collaborator

@vitaly-zdanevich I see from your profile that you are a Gentoo contributor. Could you add the libthai package to the official Gentoo repo? This could make Gentoo compatible with AppImage.

@vitaly-zdanevich
Copy link
Author

I can, but the point of AppImage is to have dependencies inside?

@vitaly-zdanevich
Copy link
Author

Could you add the libthai package to the official Gentoo repo?

This? https://github.com/tlwg/libthai

@vitaly-zdanevich
Copy link
Author

But how Darktable from the Gentoo repo works without this library?

@victoryforce
Copy link
Collaborator

I can, but the point of AppImage is to have dependencies inside?

No, if you mean ALL dependencies. Otherwise, each image would have to contain absolutely all base libraries up to and including glibc. In fact, appimage relies on a certain set of core libraries and packages everything else privately.

Due to the nature of Gentoo, appimage cannot be guaranteed to work on every user system. The user, for example, can make a kernel without FUSE support, and then no program in the appimage format will work.

This? https://github.com/tlwg/libthai

Yes.

But how Darktable from the Gentoo repo works without this library?

Because this library is not a direct dependency of darktable, i.e. it is not required for darktable to work.

darktable AppImage is built in Ubuntu environment. Ubuntu has libthai and this library gets into transitive dependencies. However, libthai is included in the excludelist of the standard library deployment toolkit in appimage. That is, appimage relies on libthai to be provided by the host system.

@vitaly-zdanevich
Copy link
Author

libthai is included in the excludelist of the standard library deployment toolkit in appimage

Hm, so it means that it is impossible to include that lib to the AppImage?

@victoryforce
Copy link
Collaborator

Hm, so it means that it is impossible to include that lib to the AppImage?

You can manually put anything you want into the appimage. But the standard toolkit contains a blocklist:
https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist

See also AppImageCommunity/pkg2appimage#538 (comment)

@vitaly-zdanevich
Copy link
Author

@vitaly-zdanevich I see from your profile that you are a Gentoo contributor. Could you add the libthai package to the official Gentoo repo? This could make Gentoo compatible with AppImage.

I found that it already exists in Guru overlay https://data.gpo.zugaina.org/guru/dev-libs/libthai/

I created issue to add to the main tree https://bugs.gentoo.org/933097

@ralfbrown ralfbrown added the bug: upstream he bug needs a fix outside of the scope of darktable, in an external lib or in a driver label Jun 1, 2024
@ralfbrown
Copy link
Collaborator

Closing as this is something which needs to be addressed in Gentoo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: upstream he bug needs a fix outside of the scope of darktable, in an external lib or in a driver bug: won't fix the bug needs a fix outside of the scope of darktable, at a theoretical level
Projects
None yet
Development

No branches or pull requests

4 participants