Nixpkgs: Plasma broke after recent updates on unstable channel

Created on 17 Aug 2020  路  11Comments  路  Source: NixOS/nixpkgs

Describe the bug
A lot of kde widgets and functions broke after recent updates on the unstable channel (nixos-unstable). Opening the bluetooth widget shows this error message:

Error loading QML file: file:///nix/store/74xnbqp5gmaq5s3b1xs6d7iaahkjrh72-bluedevil-5.17.5/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/BluetoothApplet.qml:24:1: module "org.kde.bluezqt" is not installed

Other broken widgets/functions includes bluetooth widget, printer widget and desktop (the desktop disappeared resulting in a black background)

xsession log: https://fars.ee/Z2vb

To Reproduce
Steps to reproduce the behavior:

  1. Install plasma
  2. open plasma

Expected behavior
Plasma widgets should work normally

Screenshots
A broken widget:
image

Additional context
Add any other context about the problem here.

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

  • system: "x86_64-linux"
  • host os: Linux 5.7.15, NixOS, 20.09pre238896.16fc531784a (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.4pre20200721_ff314f1
  • channels(root): "nixos-20.09pre238896.16fc531784a, home-manager"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module: services.xserver.desktopManager.plasma5
bug qkde

Most helpful comment

It works :)

All 11 comments

cc @ttuegel @petabyteboy

I believe Qt was updated on unstable.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/is-plasma-broken/8621/2

That was just me asking if it was broken.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/is-plasma-broken/8621/2

In my case, The activities and taskbar went down. I am also having the black screen as background.

The errors messages I've noticed are:

Ocorreu um erro ao carregar o arquivo QML: file:///nix/store/aril5n1mllyyfdgjp23va4wh8d8mbl13-plasma-desktop-5.17.5/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/main.qml:27:1: module "org.kde.plasma.private.taskmanager" is not installed

Ocorreu um erro ao carregar o arquivo QML: file:///nix/store/aril5n1mllyyfdgjp23va4wh8d8mbl13-plasma-desktop-5.17.5/share/plasma/plasmoids/org.kde.plasma.pager/contents/ui/main.qml:27:1: module "org.kde.plasma.private.pager" is not installed

  • system: "x86_64-linux"
  • host os: Linux 5.7.15, NixOS, 20.09pre238896.16fc531784a (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.7
  • channels(wjjunyor): "nixos-unstable-20.09pre228622.029a5de0839, nixpkgs-unstable-20.09pre228453.dcb64ea42e6"
  • channels(root): "nixos-20.09pre238896.16fc531784a"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

The likely culprit (though I'm not super familiar with QML) is that these lines:

https://github.com/NixOS/nixpkgs/blob/feb9c28902eca0384484004e0b7dfe5ac8661d6c/pkgs/development/libraries/qt-5/5.12/qtdeclarative.patch#L8-L18

Are not present in the 5.14 version of the patch:

https://github.com/NixOS/nixpkgs/blob/feb9c28902eca0384484004e0b7dfe5ac8661d6c/pkgs/development/libraries/qt-5/5.14/qtdeclarative.patch#L1-L13

That sounds about correct to me. All the patches had to be redone for 5.14 so I guess that hunk got dropped

30 minutes into rebuild with it readded, will report if it works :)

30 minutes into rebuild with it readded, will report if it works :)

Just a recommendation, not sure if it will be helpful to you specifically, but the time to rebuild should be relatively short, and it could be even shorter if you test via running the nixos test interactively

nix-build nixos/tests/plasma5.nix -A driver
./result/bin/nixos-run-vms

Yeah, that's exactly the command I've been waiting for... it seems to rebuild all dependencies of qt; I'm currently on qtwebengine, which hydra says takes 5 hours :/

It works :)

What do I do now?

@wjjunyor the fix was merged into master, so wait for the next update of nixos-unstable (or switch your system to master :)

Was this page helpful?
0 / 5 - 0 ratings