FS#45565 - [qt5-declarative] Missing dependency: libsm

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Monday, 06 July 2015, 00:07 GMT
Last edited by Felix Yan (felixonmars) - Friday, 30 October 2015, 06:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It looks like libsm is a missing dependency, which is required for the xcb backend of Qt5 to work. Without that, qml-qt5 and other tools in this package fail to run.
This task depends upon

Closed by  Felix Yan (felixonmars)
Friday, 30 October 2015, 06:05 GMT
Reason for closing:  Implemented
Additional comments about closing:  libsm added as dependency of qt5-declarative since 5.5.1-2
Comment by Doug Newgard (Scimmia) - Monday, 06 July 2015, 03:39 GMT
I see no linking to libsm. Is it possible the dep is deeper in the stack? Or is this something done dynamically at run time?
Comment by Balló György (City-busz) - Monday, 06 July 2015, 07:49 GMT
Yes, because qt5-declarative needs the xcb plugin of Qt5, which has dependencies on libsm and libxkbcommon-x11. libxkbcommon-x11 is already in dependencies, and libsm needs to be added also.
Comment by Felix Yan (felixonmars) - Thursday, 16 July 2015, 08:49 GMT
I don't think the xcb plugin is needed when using other platforms like wayland or eglfs, etc. Also libxkbcommon-x11 should be the same case. I still need to think about how to sort this out.
Comment by Balló György (City-busz) - Thursday, 16 July 2015, 15:21 GMT
Until X11 is used by nearly all users, I think it should be a dependency (either in qt5-base or in qt5-declarative).
Comment by Maarten Bezemer (veger) - Thursday, 29 October 2015, 21:14 GMT
I encountered the same issue (although the dependency is missing at qt5-base):

I am installing Arch Linux from scratch and attempting to install a window manager.
Therefore I installed sddm, which tried to load the xcb plugin of qt5-base.
This fails, due to the missing dependency on libsm.

Steps to reproduce:
- Remove libsm package from system (or start from scratch)
- Install qt5-base
- Run ldd /usr/lib/qt/plugins/platforms/libqxcb.so
- Notice that libsm.so.6 is 'not found'
- Install libsm
- Notice that libsm.so.6 is found now at /usr/lib/libSM.so.6

Loading...