Bug 498041 - Debian testing doesn't need libgnutls.so.30 from AppImage
Summary: Debian testing doesn't need libgnutls.so.30 from AppImage
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-AppImage (show other bugs)
Version: 8.6.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-29 21:31 UTC by Michael Moore
Modified: 2024-12-29 21:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 8.6.0
Sentry Crash Report:


Attachments
Patch to AppRun script to make AppImage work on Debian testing & unstable (645 bytes, patch)
2024-12-29 21:31 UTC, Michael Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moore 2024-12-29 21:31:10 UTC
Created attachment 176965 [details]
Patch to AppRun script to make AppImage work on Debian testing & unstable

***

When using the AppImage on Debian Testing the AppImage crashes with the following output: 

michael@trex:~/Downloads$ ./digiKam-8.6.0-20241229T190103-Qt6-x86-64-debug.appimage
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export QT_LOGGING_RULES="digikam*=true"'.
--        to extract the bundle contents locally, use option '--appimage-extract' on the command line.
-- Detected host Linux debian gnu/linux-64-
-- AppImage mounted directory: /tmp/user/1001/.mount_digiKaiFjNyz
Check library libudev.so.0
Check library libxcb-dri3.so.0
Check library libcrypto.so.1.1
Check library libssl.so.1.1
Check library libnss3.so
Check library libnssutil3.so
Check library libsmime3.so
Check library libgmodule-2.0.so.0
Check library libgnutls.so.30
Check library libnettle.so.8
-- Preloading shared libs: :/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1:/usr/lib/x86_64-linux-gnu/libssl.so.1.1:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0:/usr/lib/x86_64-linux-gnu/libgnutls.so.30:/usr/lib/x86_64-linux-gnu/libnettle.so.8
digikam: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: undefined symbol: nettle_rsa_oaep_sha384_decrypt, version HOGWEED_6


Similar to this bug for Fedora: https://bugs.kde.org/show_bug.cgi?id=496619

Not loading libgnutls.so.30 prevents the crash and digiKam works fine. 

Please see attached patch as a suggestion for the fix. 

Debian Testing & Debian Unstable don't seem to have a numeric version number.

michael@trex:~/Downloads$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

The codename will change when Testing changes versions, so reading from /etc/debian_version could be more reliable. Both Unstable and Testing should say "sid" in the string. 

michael@trex:~/Downloads$ cat /etc/debian_version 
trixie/sid

Stable releases will have a version number in /etc/debian_version

The attached patch detects Debian and then reads from /etc/debian_version. It will not load libgnutls.so.30 if Testing/Unstable is detected or if the version number is >= 13. Current Testing (Trixie) will get version number 13 when it is released in 2025. 

These changes should make sure that the AppImage works for Testing & Unstable going forward, and for the current dev version when it is released.
Comment 1 Maik Qualmann 2024-12-29 21:44:52 UTC
Git commit da8093a00d03f6cfbb1bdb54e04db42bd95d3ea7 by Maik Qualmann.
Committed on 29/12/2024 at 21:43.
Pushed by mqualmann into branch 'master'.

apply patch from Michael Moore to detect Debian versions in the AppImage
FIXED-IN: 8.6.0

M  +1    -1    NEWS
M  +9    -0    project/bundles/appimage/data/AppRun

https://invent.kde.org/graphics/digikam/-/commit/da8093a00d03f6cfbb1bdb54e04db42bd95d3ea7