cosmic-desktop: Missing hard dependency on libwayland-server causes panel/dock failure after dnf autoremove
After running dnf autoremove, the libwayland-server package is removed as an "orphan" dependency. This causes cosmic-panel and cosmic-notifications to fail on next boot, resulting in no visible panel or dock in the COSMIC desktop environment.
dnf autoremove
libwayland-server
cosmic-panel
cosmic-notifications
The cosmic-desktop meta-package (or its components cosmic-session, cosmic-comp, cosmic-panel, cosmic-notifications) does not declare an explicit dependency on libwayland-server. Since no installed package explicitly requires it, DNF marks it as removable by autoremove.
cosmic-desktop
cosmic-session
cosmic-comp
journalctl --user
cosmic-notifications: Failed to setup panel dbus server deadline has elapsed cosmic-panel: Failed to connect to the notifications daemon. cosmic-session: process 'cosmic-panel' failed with code 101
Add explicit Requires: libwayland-server to one of: - cosmic-session - cosmic-comp - cosmic-panel - cosmic-notifications
Requires: libwayland-server
Or add it to the cosmic-desktop meta-package.
cosmic-session-1.0.0~beta.9-1.fc43.x86_64 cosmic-panel-1.0.0~beta.9-1.fc43.x86_64 cosmic-notifications-1.0.0~beta.9-1.fc43.x86_64 cosmic-comp-1.0.0~beta.9-1.fc43.x86_64
Transaction ID : 13 Description : dnf autoremove Packages altered: Remove libwayland-server-0:1.24.0-1.fc43.x86_64 [... other unrelated packages ...]
Reinstall libwayland-server before rebooting the system:
sudo dnf install libwayland-server
Something is not right, cosmic-comp should be generating shared library version dependency on libwayland-server, but it's not.
@decathorpe, @ryanabx: what's going wrong here that is making this not happen?
The answer is most likely "dlopen()" instead of "dynamically linked".
Update proposed that fixes it: