appimage-builder
appimage-builder copied to clipboard
Incompatible with Debian 10/strace version 4.26
I can't get a working recipe, it seems that my application doesn't get run by the tool and it's caused by strace failing.
My system is Debian GNU/Linux 10 (buster), Linux 4.19.0-18-amd64, x86-64
$ appimage-builder --generate
INFO:Generator:Searching AppDir
? ID [Eg: com.example.app]: com.emptystate.foobar
? Application Name: foobar
? Icon: foobar-icon
? Executable path relative to AppDir [usr/bin/app]: usr/bin/foobar
? Arguments [Default: $@]: $@
? Version [Eg: 1.0.0]: latest
? Update Information [Default: guess]: guess
? Architecture: x86_64
INFO:AppRuntimeAnalyser:/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/emptystate/Moof/AppImages/foobar/AppDir/usr/bin/foobar $@
WARNING:AppRuntimeAnalyser:/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/emptystate/Moof/AppImages/foobar/AppDir/usr/bin/foobar $@ exited with code 1
WARNING:AppRuntimeAnalyser:This may produce an incomplete/wrong recipe. Please make sure that the application runs properly.
INFO:AppRuntimeAnalyser:Reading PT_INTERP from executables
INFO:FilePackageResolver:/usr/bin/dpkg-query -S /lib64/ld-linux-x86-64.so.2
INFO:dpkg-query:/usr/bin/dpkg-query -W -f=${binary:Package}: ${Depends}\n libc6:amd64
INFO:Generator:Recipe generation completed.
My application does not start.
If I run the line with strace, i.e.
$ /usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/emptystate/Moof/AppImages/foobar/AppDir/usr/bin/foobar $@
then the output is
/usr/bin/strace: invalid option -- '-'
Try '/usr/bin/strace -h' for more information.
$ strace -V
strace -- version 4.26
Copyright (c) 1991-2018 The strace developers <https://strace.io>.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Optional features enabled: stack-trace=libunwind stack-demangle m32-mpers mx32-mpers
This version does not seem to support the --status parameter. Running the strace command as specified by appimage-builder but without this parameter runs my application successfully.
It seems we would need to check the strace version before using it.