Things I needed to do to get AppImageLauncher to build on Debian Bookworm #596
Labels
bug
Something isn't working
needs verification
Description of the issue needs to be verified by the team
Pre-submit checks
Describe the bug
Hello! I am filing this as one omnibus bug rather than submitting a PR or breaking it down into individual bugs because I'm not a developer on this project and it is a large and complicated process and I think if I try to do everything "in progress" I will make mistakes and will cause more harm than good. I hope that the folks who are developers on the project will be able to put this information to good use; if not then please feel free to simply close the bug, and I'm sorry for bothering you.
I attempted to use the kinetic AppImageLauncher deb on Debian Bookworm and it failed:
I decided to try building it from source by cloning it from the master branch here and following the build instructions, and I ran into a number of issues. I managed to work my way through them all and get it to build and install, so I wanted to share my work with you because I hope you will be able to use what I discovered to improve things for everyone.
I've appended below the exact script I ended up writing to get it to build. I describe each of the fixes I had to make in more detail in the following bullet points.
The version of libappimage that you're cloning into the source tree and building is using a URL for boost that no longer exists. I replaced it with a different URL that does exist. This may not be the right fix; the right fix might be to use a newer version of libappimage that has already been fixed to use a different URL for boost. It might also be appropriate to upgrade to a newer version of boost (which you might want to do for another reason described below) which is downloadable from a different URL. All I'm doing here is pointing out the solution, not suggesting what I think the best solution is. ;-)
As you can see in the script, I used
apt build-dep appimagelauncher
to get the build dependencies. I was able to do this because I installed the deb-src PPA repo. However, that didn't grab all of the necessary build-dependencies, and I had to install some separately withsudo apt install libssl-dev xxd qtdeclarative5-dev patchelf
. I suppose the files used to build the deb package need to be updated to include these additional dependencies.The boost library version that you're using is incompatible with current glibc because
PTHREAD_STACK_MIN
is no longer a preprocessor symbol. This is fixed in newer boost versions, so the right fix here is probably to upgrade the build to use a newer version, but I didn't want to do anything that drastic so I made it build by making the small patch shown below.There are dependencies missing in the main AppImageLauncher build config, so
make -j
fails. I didn't bother to fix it; I just did the final build sequentially rather than in parallel. But it would be nice to flesh these out and fix them to make it possible to build faster.I hope this is useful!
Boost patch:
Build script:
Expected behavior
See above.
Steps to reproduce the issue
No response
Screenshots
No response
Distribution and desktop environment
x86_64 Debian Bookworm GNOME
Installed AppImageLauncher version
current master branch
List of AppImages you tried
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: