probonopd / go-appimage

Go implementation of AppImage tools
MIT License
676 stars 69 forks source link

Properly handle SDL2 #270

Open probonopd opened 6 months ago

probonopd commented 6 months ago

libSDL2 apparently needs many libraries that it does not declare as dependencies in a way that ldd understands.

Reference

probonopd commented 6 months ago

So possible we should patch those into libSDL2-2.0.so.0 with patchelf --add-needed so that they get properly deployed?

stsp commented 6 months ago

I am still more than confident this should be solved on an APK level. Find sdl2 deps on ubuntu or by some other means, and add them to the apk metadata. Don't go for binary patching or any other weird things, that's what I think.

probonopd commented 6 months ago

Hi @stsp, what do you mean by "APK level"? As a cross-distro toolset, go-appimage doesn't even know what APK is.

stsp commented 6 months ago

The problemis that in alpine the sdl2 deps are missing. This means you can't get a working dosemu2 there at all, no matter the appimage. Solve this first, get the working alpine build, then just wrap it to appimage entirely.