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

elisa: backporting Qt < 5.14 fix #103802

Closed
wants to merge 1 commit into from

Conversation

SCOTT-HAMILTON
Copy link
Contributor

Motivation for this change

https://hydra.nixos.org/build/130350392#tabs-summary

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ttuegel
Copy link
Member

ttuegel commented Nov 20, 2020

Why not build with Qt 5.15?

@SCOTT-HAMILTON
Copy link
Contributor Author

My Pull Request doesn't aim at fixing elisa build against Qt5.15 (which it doesn't need anyway as the last build on staging-20.09 tells).
I just propose this pull request to fix elisa builds against Qt < 5.14 (in nixpkgs case, builds against Qt5.14)

@SuperSandro2000
Copy link
Member

The hydra build you linked passed. Maybe the bug was somewhere else and fixed in the meanwhile?

@SCOTT-HAMILTON
Copy link
Contributor Author

Could you link to the successful build? I can't find it.

@doronbehar
Copy link
Contributor

I too don't understand exactly why apply that patch. Currently elisa fails to launch for me with:

QQmlApplicationEngine failed to load component
qrc:/qml/ElisaMainWindow.qml:175:13: Type HeaderBar unavailable
qrc:/qml/HeaderBar.qml:11:1: module "QtGraphicalEffects" is not installed

And applying this patch makes it work:

diff --git i/pkgs/applications/kde/elisa.nix w/pkgs/applications/kde/elisa.nix
index 9a51aa786fa..ee45202fe54 100644
--- i/pkgs/applications/kde/elisa.nix
+++ w/pkgs/applications/kde/elisa.nix
@@ -7,6 +7,7 @@
 , qtmultimedia
 , qtquickcontrols2
 , qtwebsockets
+, qtgraphicaleffects
 , kconfig
 , kcmutils
 , kcrash
@@ -36,6 +37,7 @@ mkDerivation rec {
     kirigami2
     qtmultimedia
     qtquickcontrols2
+    qtgraphicaleffects
     qtwebsockets
   ];
 

Though I don't understand why use propagatedBuildInputs and not normal buildInputs..

@peterhoeg
Copy link
Member

Elisa works fine here (on unstable). Can somebody please explain exactly what isn't working?

@SCOTT-HAMILTON
Copy link
Contributor Author

This is just to fix elisa build on Qt < 5.15. Qt 5.15 is the default verision for libsForQt5 on unstable, so it won't change anything for you. But people running older channels might be interested in using libsForQt5{12,14}.elisa which is the default when installing elisa on older channels.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review. If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 103802 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • libsForQt512.elisa
  • libsForQt514.elisa
1 package built:
  • libsForQt5.elisa (kdeApplications.elisa ,libsForQt515.elisa)

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

libsForQt5.elisa.log:

�[1;33mwarning: unclear-gpl�[0m
gpl3 is a deprecated license, check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.

Near pkgs/applications/kde/elisa.nix:53:5:

   |
53 |     license = licenses.gpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

@doronbehar
Copy link
Contributor

This is just to fix elisa build on Qt < 5.15. Qt 5.15 is the default verision for libsForQt5 on unstable, so it won't change anything for you. But people running older channels might be interested in using libsForQt5{12,14}.elisa which is the default when installing elisa on older channels.

Then @SCOTT-HAMILTON please make the PR target the older branch that you'd like elisa to build with there.

@Thra11
Copy link
Member

Thra11 commented Jan 19, 2021

QQmlApplicationEngine failed to load component
qrc:/qml/ElisaMainWindow.qml:175:13: Type HeaderBar unavailable
qrc:/qml/HeaderBar.qml:11:1: module "QtGraphicalEffects" is not installed

And applying this patch makes it work:

diff --git i/pkgs/applications/kde/elisa.nix w/pkgs/applications/kde/elisa.nix
index 9a51aa786fa..ee45202fe54 100644
--- i/pkgs/applications/kde/elisa.nix
+++ w/pkgs/applications/kde/elisa.nix
@@ -7,6 +7,7 @@
 , qtmultimedia
 , qtquickcontrols2
 , qtwebsockets
+, qtgraphicaleffects
 , kconfig
 , kcmutils
 , kcrash
@@ -36,6 +37,7 @@ mkDerivation rec {
     kirigami2
     qtmultimedia
     qtquickcontrols2
+    qtgraphicaleffects
     qtwebsockets
   ];
 

Problems with missing QtGraphicalEffects in application using Kirigami may have been fixed in unstable by #108331.

@stale
Copy link

stale bot commented Jul 19, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 19, 2021
@doronbehar
Copy link
Contributor

I'm closing due to this being irrelevant now.

@doronbehar doronbehar closed this Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: qt/kde 10.rebuild-darwin: 0 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants