Bug 452712

Summary: Appimage for 7.6.0 will not run in Ubuntu 18.04
Product: [Applications] digikam Reporter: kellnerp <kellnerp>
Component: Bundle-AppImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, kellnerp, metzpinguin
Priority: NOR    
Version First Reported In: 7.6.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.7.0
Sentry Crash Report:

Description kellnerp@earthlink.net 2022-04-18 02:46:30 UTC
SUMMARY
Appimage will not run because installed glibc is not the right version.
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Download digiKam-7.6.0-x86-64.appimage 
2. chmod +x digiKam-7.6.0-x86-64.appimage
3. ./digiKam-7.6.0-x86-64.appimage <enter>

OBSERVED RESULT
 stderr reports: digikam: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.mount_digiKaQHu5qX/usr/lib/libFLAC.so.8)

EXPECTED RESULT
digikam should start and run

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux PC4 5.4.0-107-generic #121~18.04.1-Ubuntu SMP Thu Mar 24 17:21:33 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.5) 2.27
Comment 1 kellnerp@earthlink.net 2022-04-18 03:18:57 UTC
digiKam-7.2.0-rc-x86-64.appimage would run.
digiKam-7.5.0 would not run for the same reason.
Comment 2 caulier.gilles 2022-04-18 05:17:55 UTC
For security reasons, we have upgraded the outdated Linux host used to build AppImage bundle. So your Ubuntu version is too old and not supported.  

Best

Gilles Caulier
Comment 3 kellnerp@earthlink.net 2022-04-18 15:32:34 UTC
Per the appimage website: "Linux apps that run anywhere". https://appimage.org/
It shouldn't matter what version of Ubuntu I am using with an appimage. The appimage should have the up to date glibc library. So this is definitely a problem that the appimage won't install.
Comment 4 Maik Qualmann 2022-04-18 15:39:16 UTC
The glibc is a system library that cannot be included in the AppImage. We need to balance bug fixes and security fixes to provide an up-to-date AppImage. Your Ubuntu is too old for it.

Maik
Comment 5 Maik Qualmann 2022-04-18 15:44:35 UTC
Here is a private PPA, you need to see if it works for you. Unfortunately, the situation under Ubuntu is relatively bad as far as digiKam support is concerned. Current versions of Ubuntu only provide a snap package, which is unusable due to the sandbox.

https://launchpad.net/~savoury1/+archive/ubuntu/digikam

Maik
Comment 6 kellnerp@earthlink.net 2022-04-18 22:17:08 UTC
Ubuntu 18.04 LTS has a year to go before support is dropped. https://ubuntu.com/blog/what-is-an-ubuntu-lts-release

This topic was discussed on the appimage discourse. https://discourse.appimage.org/t/specify-required-glibc-version-in-appimage/2413
 "probono July 8, 2021, 9:18pm #5

We currently have no way to specify the minimal glibc version needed. 

But we recommend to build AppImages on no newer distribution than the oldest still-supported LTS release of Ubuntu. This is also the requirement to be listed on AppImageHub."

The also mention that it is possible to include glibc in an appimage.
Comment 7 Maik Qualmann 2022-04-19 06:15:06 UTC
The Ubuntu may be an LTS version, but you won't get any new program versions there either. The digiKam AppImage will not build on Ubuntu. However, we need a Qt version 5.15.2+ for important bugs (current MariaDB support) and security fixes. But that requires a current GCC and base libraries.
We probably couldn't compile Qt at all on your Ubuntu version. And no, it's not a good idea to try to integrate the glibc into the AppImage since it also has kernel dependencies.

Maik
Comment 8 Maik Qualmann 2022-04-19 06:21:58 UTC
There is a script here written by Ubuntu users to install all the packages needed to compile digiKam. Maybe this worked for you or you can improve it.

https://invent.kde.org/graphics/digikam/-/blob/qt5-maintenance/project/scripts/installdeps-ubuntu.sh

Maik
Comment 9 caulier.gilles 2022-04-19 06:58:38 UTC
Note : Qt5 require at least GCC 8 and Qt6 GCC 9...

Gilles