Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kdeconnect is broken in 20.09 #99951

Closed
edolstra opened this issue Oct 7, 2020 · 9 comments · Fixed by #99956 or #101272
Closed

kdeconnect is broken in 20.09 #99951

edolstra opened this issue Oct 7, 2020 · 9 comments · Fixed by #99956 or #101272
Labels
0.kind: bug Something is broken 0.kind: regression Something that worked before working no longer 6.topic: qt/kde
Milestone

Comments

@edolstra
Copy link
Member

edolstra commented Oct 7, 2020

Describe the bug

The kdeconnect widget in the KDE panel shows:

Error loading QML file: file:///nix/store/78r8ihcgk25cj91d5bk8l5z6xcvxqli9-kdeconnect-1.3.5/share/plasma/plasmoids/org.kde.kdeconnect/contents/ui/main.qml:25:1: module "org.kde.kdeconnect" is not installed

Also, going to the "KDE Connect" panel in the KDE System Settings shows the error message The shared library was not found.

Notify maintainers

@FRidh

Metadata

$ nixos-version 
20.09.20201006.7badbf1 (Nightingale)
@edolstra edolstra added 0.kind: bug Something is broken 6.topic: qt/kde 0.kind: regression Something that worked before working no longer labels Oct 7, 2020
@edolstra edolstra added this to the 20.09 milestone Oct 7, 2020
@doronbehar
Copy link
Contributor

doronbehar commented Oct 8, 2020

It's possible we should update it: https://invent.kde.org/network/kdeconnect-kde/-/tags thought it's not clear whether we should choose 20.08.1 or 1.4.0. I pushed some new dependencies we'll need in order to update it in #99956 . Here's a diff for the kdeconnect update, which doesn't work, hence I didn't push it to #99956 :

:100644 100644 c3d2feb2fed 1860b66c09e M	pkgs/applications/misc/kdeconnect/default.nix
:100644 100644 eaa37e1fe2a 752c5c50cd5 M	pkgs/top-level/all-packages.nix

diff --git a/pkgs/applications/misc/kdeconnect/default.nix b/pkgs/applications/misc/kdeconnect/default.nix
index c3d2feb2fed..1860b66c09e 100644
--- a/pkgs/applications/misc/kdeconnect/default.nix
+++ b/pkgs/applications/misc/kdeconnect/default.nix
@@ -13,25 +13,45 @@
 , libfakekey
 , libXtst
 , qtx11extras
+, qtmultimedia
 , sshfs
 , makeWrapper
 , kwayland
 , kio
+, kpeoplevcard
+, kpeople
+, kirigami2
+, pulseaudio-qt
 }:
 
 mkDerivation rec {
   pname = "kdeconnect";
-  version = "1.3.5";
+  version = "20.08.1";
 
   src = fetchurl {
-    url = "mirror://kde/stable/${pname}/${version}/${pname}-kde-${version}.tar.xz";
-    sha256 = "02lr3xx5s2mgddac4n3lkgr7ppf1z5m6ajs90rjix0vs8a271kp5";
+    url = "https://download.kde.org/stable/release-service/${version}/src/${pname}-kde-${version}.tar.xz";
+    sha256 = "0s76djgpx08jfmh99c7kx18mnr3w7bv4hdra120nicq89mmy7gwf";
   };
 
   buildInputs = [
-    libfakekey libXtst
-    ki18n kiconthemes kcmutils kconfigwidgets kdbusaddons knotifications
-    qca-qt5 qtx11extras makeWrapper kwayland kio
+    libfakekey
+    libXtst
+    qtmultimedia
+    pulseaudio-qt
+    kpeoplevcard
+    kpeople
+    kirigami2
+    ki18n
+    kiconthemes
+    kcmutils
+    kconfigwidgets
+    kdbusaddons
+    knotifications
+    qca-qt5
+    qtx11extras
+    makeWrapper
+    kwayland
+    kio
   ];
 
   nativeBuildInputs = [ extra-cmake-modules kdoctools ];
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index eaa37e1fe2a..752c5c50cd5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -21555,7 +21555,7 @@ in
 
   k4dirstat = libsForQt5.callPackage ../applications/misc/k4dirstat { };
 
-  kdeconnect = libsForQt514.callPackage ../applications/misc/kdeconnect { };
+  kdeconnect = libsForQt5.callPackage ../applications/misc/kdeconnect { };
 
   inherit (kdeFrameworks) kdesu;
 

Applying this patch causes ld errors. Using the same patch but libsForQt514.callPackage for kdeconnect is closest I got, but it fails with an unfound kcmutils_version.h include.

@FRidh
Copy link
Member

FRidh commented Oct 8, 2020

we indeed should use 20.08.1.

@doronbehar
Copy link
Contributor

@doronbehar
Copy link
Contributor

Updating kdeconnect is inseparable from #99956 so I'm pushing it there.

@edolstra
Copy link
Member Author

This issue still exists on master and release-20.09.

@edolstra edolstra mentioned this issue Oct 21, 2020
10 tasks
@aanderse
Copy link
Member

I noticed a similar problem with the printer widget in the KDE panel:

Error loading QML file: file:///nix/store/4mqinkdaq1r00hqicrzwk8a3i86hyw8b-print-manager-20.08.1/share/plasma/plasmoids/org.kde.plasma.printmanager/contents/ui/printmanager.qml:64:34: Type PopupDialog unavailable
file:///nix/store/4mqinkdaq1r00hqicrzwk8a3i86hyw8b-print-manager-20.08.1/share/plasma/plasmoids/org.kde.plasma.printmanager/contents/ui/PopupDialog.qml:81:23: Type PrinterItem unavailable
file:///nix/store/4mqinkdaq1r00hqicrzwk8a3i86hyw8b-print-manager-20.08.1/share/plasma/plasmoids/org.kde.plasma.printmanager/contents/ui/PrinterItem.qml:28:1: Type PlasmaExtras.ExpandableListItem unavailable
file:///nix/store/a9q5wr6ygfkdb85lz0n37508y12a1pgn-plasma-framework-5.73.0-bin/lib/qt-5.12.7/qml/org/kde/plasma/extras/ExpandableListItem.qml:20:1: module "QtQuick" version 2.14 is not installed

@edolstra
Copy link
Member Author

Yeah, mixing 3 different versions of Qt in one system really isn't ideal...

@doronbehar
Copy link
Contributor

A similar issue we had fixed in #99956 appears with the set kdeApplications. See #100707 .

edolstra added a commit that referenced this issue Oct 22, 2020
Fixes #99951.

  $ kdeconnect-app
  Cannot mix incompatible Qt library (5.12.7) with this library (5.15.0)
  Aborted (core dumped)
edolstra added a commit that referenced this issue Oct 22, 2020
Fixes #99951.

  $ kdeconnect-app
  Cannot mix incompatible Qt library (5.12.7) with this library (5.15.0)
  Aborted (core dumped)

(cherry picked from commit fa08ce0)
@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/what-should-stable-nixos-prioritize/9646/1

marcus7070 pushed a commit to marcus7070/nixpkgs that referenced this issue Nov 22, 2020
Fixes NixOS#99951.

  $ kdeconnect-app
  Cannot mix incompatible Qt library (5.12.7) with this library (5.15.0)
  Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 0.kind: regression Something that worked before working no longer 6.topic: qt/kde
Projects
None yet
5 participants