Bug 407234 - Snap package can't find Qt 5.12
Summary: Snap package can't find Qt 5.12
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 19.04
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-05 11:57 UTC by Marcus Larborg
Modified: 2019-05-22 16:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot from Kfind, libQt5Core.so.5 (103.70 KB, image/png)
2019-05-05 11:57 UTC, Marcus Larborg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Larborg 2019-05-05 11:57:12 UTC
Created attachment 119847 [details]
Screenshot from Kfind, libQt5Core.so.5

SUMMARY
Snap package.

Tried to launch Kcalc from menu, nothing happens.
Opened Konsole and run: snap run kcalc

kcalc: /snap/kcalc/34/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found (required by /snap/kcalc/34/usr/lib/x86_64-linux-gnu/libkdeinit5_kcalc.so)


STEPS TO REPRODUCE
1. Try to launch Kcalc
2. 
3. 

OBSERVED RESULT
Won't start

EXPECTED RESULT
Kcalc should start

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.15
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
kcalc                    19.04.0              34    stable  kde✓            -
kde-frameworks-5         5.47.0               27    stable  kde✓            -
kde-frameworks-5-core18  5.56.0               29    stable  kde✓            -
Comment 1 Christoph Feck 2019-05-21 18:52:18 UTC
Where did you download the KCalc snap package from?
Comment 2 Marcus Larborg 2019-05-21 19:05:45 UTC
(In reply to Christoph Feck from comment #1)
> Where did you download the KCalc snap package from?

From the Snapstore
sudo snap install kcalc

In my ~/snap/kcalc/ folder i have these folders: current, common, 13, 27 and 34.
Comment 3 Marcus Larborg 2019-05-21 19:09:22 UTC
(In reply to Marcus Larborg from comment #2)
> (In reply to Christoph Feck from comment #1)
> > Where did you download the KCalc snap package from?
> 
> From the Snapstore
> sudo snap install kcalc
> 
> In my ~/snap/kcalc/ folder i have these folders: current, common, 13, 27 and
> 34.

Tried again from the terminal after boot and the first run gives this error:
utils.go:684: cannot change mount namespace of snap "kcalc" according to change mount (/snap/kde-frameworks-5-core18/29 /snap/kcalc/34/kf5-2 none bind,ro 0 0): permission denied
kcalc: /snap/kcalc/34/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found (required by /snap/kcalc/34/usr/lib/x86_64-linux-gnu/libkdeinit5_kcalc.so)

Next try gives only this message:
kcalc: /snap/kcalc/34/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found (required by /snap/kcalc/34/usr/lib/x86_64-linux-gnu/libkdeinit5_kcalc.so)
Comment 4 Christoph Feck 2019-05-21 21:38:31 UTC
Jonathan, do you know if "Snapstore" has our snaps?
Comment 5 Alan Pope 2019-05-22 08:39:02 UTC
This looks like a bug in snapd, not the KDE snap itself. The quick workaround is `snap remove kcalc && snap install kcalc` which will re-instate the connection between the kcalc snap and the kde frameworks snap (where libqtcore and friends _really_ live). Sorry about this. The bug is being worked on - https://github.com/snapcore/snapd/pull/6884
Comment 6 Jonathan Riddell 2019-05-22 08:48:32 UTC
Yes this is a KDE Snap made on neon's servers and uploaded to the KDE account on the Snap store
https://build.neon.kde.org/view/Snaps/job/bionic_release_kde_kcalc_snap_amd64/
It has 1,504 active installs
Comment 7 Marcus Larborg 2019-05-22 16:08:08 UTC
(In reply to Alan Pope from comment #5)
> This looks like a bug in snapd, not the KDE snap itself. The quick
> workaround is `snap remove kcalc && snap install kcalc` which will
> re-instate the connection between the kcalc snap and the kde frameworks snap
> (where libqtcore and friends _really_ live). Sorry about this. The bug is
> being worked on - https://github.com/snapcore/snapd/pull/6884

Thanks! That solved the problem.