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

plasma: 5.11.5 -> 5.12.1 #34726

Merged
merged 1 commit into from Feb 14, 2018
Merged

plasma: 5.11.5 -> 5.12.1 #34726

merged 1 commit into from Feb 14, 2018

Conversation

adisbladis
Copy link
Member

@adisbladis adisbladis commented Feb 8, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Tests are passing but have not had the time to actually try things out.

cc @ttuegel @peterhoeg @bkchr

Copy link
Contributor

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I also started with this yesterday, but you was faster! :) I added two comments. I will compile it later and will report back.

}:

mkDerivation {
name = "kde-gtk-config";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
knewstuff
knewstuff gsettings_desktop_schemas gsettings_desktop_schemas
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add it twice?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a mistake. Fixed!

CXXFLAGS = [
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
"-I${lib.getDev kwayland}/include/KF5"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a patch upstream for this: https://phabricator.kde.org/D10373

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a much better fix. Changed to your patch :)

+# we have to unset this for Darwin since it will screw up KDE's dynamic-loading
+unset DYLD_FORCE_FLAT_NAMESPACE
+
+export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
+@NIXPKGS_MKDIR@ -p "$XDG_CONFIG_HOME"
+_MKDIR@ -p "$XDG_CONFIG_HOME"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_MKDIR needs to be NIXPKGS_MKDIR

-mkdir -p $configDir
+# Set the default GTK 3 theme
+gtk3_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
+_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also looks not good.

@bkchr
Copy link
Contributor

bkchr commented Feb 8, 2018

@adisbladis, I applied the following changes:

index f3aa4743bb2..e012537e402 100644
--- a/pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch
+++ b/pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch
@@ -828,7 +828,7 @@ index 8ac47aa..49970ef 100644
 +unset DYLD_FORCE_FLAT_NAMESPACE
 +
 +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
-+_MKDIR@ -p "$XDG_CONFIG_HOME"
++@NIXPKGS_MKDIR@ -p "$XDG_CONFIG_HOME"
 +
 +# The KDE icon cache is supposed to update itself
 +# automatically, but it uses the timestamp on the icon
@@ -880,7 +880,7 @@ index 8ac47aa..49970ef 100644
 -# We need to create config folder so we can write startupconfigkeys
 -mkdir -p $configDir
 +# Set the default GTK 3 theme
-+_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
++gtk3_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
 +breeze_gtk3="/run/current-system/sw/share/themes/Breeze/gtk-3.0"
 +if ! [ -e "$gtk3_settings" ] && [ -e "$breeze_gtk" ]; then
 +    mkdir -p $(dirname "$gtk3_settings")
@@ -1033,7 +1033,7 @@ index 8ac47aa..49970ef 100644
 -        XCURSOR_THEME="$kcminputrc_mouse_cursortheme"
 -        export XCURSOR_THEME
 +if [ -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ]; then
-+    kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
++    #kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
 +    if [ $? -eq 10 ]; then
 +        export XCURSOR_THEME=breeze_cursors
 +    elif [ -n "$kcminputrc_mouse_cursortheme" ]; then
@@ -1106,7 +1106,7 @@ index 8ac47aa..49970ef 100644
 -
  # Make sure that D-Bus is running
 -if qdbus >/dev/null 2>/dev/null; then
-+if ! @NIXPKGS_QDBUS@ >/dev/null 2>/dev/null; then
++if @NIXPKGS_QDBUS@ >/dev/null 2>/dev/null; then
      : # ok
  else
      echo 'startplasmacompositor: Could not start D-Bus. Can you call qdbus?'  1>&2

After applying these changes, I can start the wayland session :)

Besides that, everything seems to be working for me.

@coreyoconnor
Copy link
Contributor

xf86 input libinput is now required by plasma-desktop. Otherwise the "mouse" system settings is not present:

@adisbladis
Copy link
Member Author

adisbladis commented Feb 9, 2018

@bkchr Thanks! Applied and rebased.

@coreyoconnor

xf86 input libinput is now required by plasma-desktop. Otherwise the "mouse" system settings is not present

Perfect! Applied your patch.

@adisbladis
Copy link
Member Author

Now I have actually been running on this for a few hours and things seem to work as expected! :)

;
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) ++ [
(fetchpatch {
url = "https://phabricator.kde.org/file/data/ojbvgljuhqxztrdcicoy/PHID-FILE-6wvjkli2blrgw7jei3qg/D26720.diff";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The url does not work for me.
The following works for me:
https://phabricator.kde.org/file/data/5bu6h2c2ksaqctyy275b/PHID-FILE-jtbgqz2heluxsovlqyv3/D10373.diff

Suspicious, that your url also has a different filename?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange. That was working at some point.

How stable are phabricator urls?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adisbladis if you want to be on the save side, the patch got merged: KDE/kwin@6e5f5d9

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! I'll use the github link.

@etu
Copy link
Contributor

etu commented Feb 9, 2018

This also just became security related with CVE-2018-6791.

@ttuegel
Copy link
Member

ttuegel commented Feb 9, 2018

We should implement this; I think a few users are testing Plasma on Wayland, although we don't have it enabled by default yet: https://mail.kde.org/pipermail/distributions/2017-December/000260.html

@adisbladis
Copy link
Member Author

adisbladis commented Feb 10, 2018

sha256 = "0z5nbcg712v10mskb7r9v0jcx5h8q4ixb7fjbb0kicmzsc266yd5";
})]
;
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) ++ [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add in a comment mentioning when we can drop this patch again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@adisbladis adisbladis changed the title plasma: 5.11.5 -> 5.12.0 plasma: 5.11.5 -> 5.12.1 Feb 14, 2018
@adisbladis
Copy link
Member Author

adisbladis commented Feb 14, 2018

Plasma 5.12.1 was released. Bumped PR and rebased on current master.

Unless there is any feedback on this within the next day or two I plan to merge it.

@peterhoeg
Copy link
Member

Do you mind testing this together with #34936?

@adisbladis
Copy link
Member Author

@peterhoeg My desktop has already been running on both of these PRs for a day :)

@peterhoeg
Copy link
Member

Then LGTM!

@bkchr
Copy link
Contributor

bkchr commented Feb 14, 2018

I also have Plasma 5.12 and frameworks 5.43 running on my Laptop and everything seems to be fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants