Nixpkgs: mirage doesn't start in plasma DE - incompatible Qt version

Created on 21 Aug 2020  路  8Comments  路  Source: NixOS/nixpkgs

Describe the bug
looks like #37864

~ 05:25:29 | Got library name:  "/nix/store/gwb3nsc2gaphv4wapri50plhrrcincg2-pyotherside-1.5.9/lib/qt-5.14.2/qml/io/thp/pyotherside/libpyothersideplugin.so"
F 05:25:29 | Cannot mix incompatible Qt library (version 0x50c07) with this library (version 0x50e02)

It does start on gnome, but when I log into plasma it crashes like that.

To Reproduce
Steps to reproduce the behavior:

  1. install mirage-im and use plasma as a desktop enviroment from different channels (e.g. plasma from stable and mirage from unstable, since it's not yet on stable)
  2. start mirage

Expectation
I would expect to be able to use plasma and mirage at the same time.

Notify maintainers

@colemickens

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.4.57, NixOS, 20.09pre237781.32b46dd897a (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.7
  • channels(root): "nixos-20.09pre237781.32b46dd897a"
  • channels(kaine): "home-manager-20.03, nixpkgs-unstable-20.09pre239228.bd0e645f024"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: mirage-im
bug qkde

All 8 comments

Does clearing the QML cache work?

https://github.com/mirukana/mirage/issues/90

--

Edit: nevermind, this is probably a different issue?

Hmm, I'm now suprised this issue doesn't show up for more qt packages.

As far as I can tell, mirage is correctly wrapped, but the wrapper script doesn't overwrite QT_PLUGIN_PATH, it prepends to it (thus it prepends to the one inherited from plasma). That means it ends up with both versions included. It runs successfully with QT_PLUGIN_PATH= mirage.

Someone with more knowledge of qt packaging might need to say what the correct approach is here

I think this is relevant #86369?

Could anyone check if https://github.com/NixOS/nixpkgs/pull/101369 fixes this? (It will take quiet some time to rebuild your system on top of it).

mirage has been removed from nixpkgs due to being unmaintained.

I am on Gnome so I can't help much in testing. @ZerataX when you are on a kde session, what's the output of env | grep QT ? I tested that the package doesn't get inputs of incompatible qt versions so I suspect this is a bug in the plasma nixos module or your setup / environment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edolstra picture edolstra  路  3Comments

yawnt picture yawnt  路  3Comments

ayyess picture ayyess  路  3Comments

langston-barrett picture langston-barrett  路  3Comments

spacekitteh picture spacekitteh  路  3Comments