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

sway: 1.5 -> 1.6; wlroots: 1.12 -> 1.13 #116544

Merged
merged 5 commits into from
Apr 8, 2021
Merged

Conversation

Synthetica9
Copy link
Member

@Synthetica9 Synthetica9 commented Mar 16, 2021

Motivation for this change

Tracking PR for Sway 1.6, first RC just landed: https://github.com/swaywm/sway/releases/tag/1.6-rc1

EDIT 2021-03-24: Next RC landed https://github.com/swaywm/sway/releases/tag/1.6-rc2

EDIT: 2021-04-07: Final version of wlroots 0.13 landed. https://github.com/swaywm/wlroots/releases/tag/0.13.0

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.

@Synthetica9 Synthetica9 changed the title sway: 1.15 -> 1.16 sway: 1.5 -> 1.6 Mar 16, 2021
@ofborg ofborg bot requested a review from primeos March 16, 2021 17:44
@Synthetica9
Copy link
Member Author

Seems to build and run fine here. A few new dependencies were added, I just naively added them.

@ofborg ofborg bot requested a review from Ma27 March 16, 2021 17:49
Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

Can you also run nixpkgs-review and investigate broken builds (e.g. by backporting patches, switching to a newer release, looking at issue trackers, etc.)?
Other than that it looks good.

pkgs/applications/window-managers/sway/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/wlroots/default.nix Outdated Show resolved Hide resolved
@ofborg ofborg bot requested review from primeos and AndersonTorres March 16, 2021 19:04
@jbeich
Copy link

jbeich commented Mar 16, 2021

For wayfire/hikari/etc fixes try extracting from freebsd/freebsd-ports@70148c1

pkgs/applications/window-managers/labwc/default.nix Outdated Show resolved Hide resolved
pkgs/applications/window-managers/sway/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/wlroots/default.nix Outdated Show resolved Hide resolved
@ofborg ofborg bot requested a review from AndersonTorres March 16, 2021 21:32
@Synthetica9
Copy link
Member Author

Sway 1.6 also seems to fix an issue I was having with firefox, which is a nice plus

@ofborg ofborg bot requested a review from primeos March 17, 2021 12:28
@Synthetica9
Copy link
Member Author

@SuperSandro2000 What's the recommended way to fetch multiple commits from a PR that hasn't been merged yet? (cage-kiosk/cage#174)

@Synthetica9 Synthetica9 changed the title sway: 1.5 -> 1.6 sway: 1.5 -> 1.6; wlroots: 1.12 -> 1.13 Mar 17, 2021
@Synthetica9
Copy link
Member Author

@berbiche see 732cd86

@ofborg ofborg bot requested a review from berbiche March 17, 2021 15:08
@primeos
Copy link
Member

primeos commented Mar 17, 2021

@SuperSandro2000 What's the recommended way to fetch multiple commits from a PR that hasn't been merged yet? (cage-kiosk/cage#174)

I think that's unfortunately a bit of a problem without a good solution (PRs are mutable so we cannot use them directly and even fetching the commits before they're merged is far from ideal as they could disappear / become GCed, e.g. if the PR branch will be rebased).

For past wlroots updates I've kindly pinged the maintainers to e.g. merge such PRs. If that doesn't work it's probably best to keep wlroots 1.12 in Nixpkgs for some time (we're already doing this with some other packages).

@Synthetica9
Copy link
Member Author

Okay, I see you pinged the maintainers. Since this is not yet ready to be merged anyways I'll keep it as is for now, I'll use the merge commit when that appears on master.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Mar 17, 2021

GCed commits is usually not a problem with github and is far less likely than a changed pr.

@berbiche
Copy link
Member

@berbiche see 732cd86

Cagebreak's source code history is available on the "development" branch, the master branch is just a "dump" like you said.

I'll investigate and send a patch when I have time.

@Synthetica9
Copy link
Member Author

@alyssais I tried to override wlroots for wayfire and wcm, but I couldn't get it through the plugin system, any pointers?

@alyssais
Copy link
Member

alyssais commented Apr 2, 2021 via email

@Synthetica9
Copy link
Member Author

This is all going to be squashed a bit before being merged, right?

Yeah, I'll do a rebase to group relevant commits together at least, maybe a full squash if requested.

@mweinelt
Copy link
Member

mweinelt commented Apr 7, 2021

https://github.com/swaywm/sway/releases/tag/1.6
Final release notes.

@Synthetica9
Copy link
Member Author

swaywm/sway@1.6 (release)

Way ahead of you 😉

@Synthetica9
Copy link
Member Author

Synthetica9 commented Apr 7, 2021

@primeos I think two things remain:

@primeos
Copy link
Member

primeos commented Apr 8, 2021

@Synthetica9 yes, I'd pin cage to wlroots 0.12 (we can always look at that later, outside of this PR) and squash the RCs together. Regarding squashing I'd do the following (IIRC that's how I handled it in the past but that is open for discussion if you don't like it):

  1. Commit: Introduces wlroots_0_12 and pins the packages that still require it to that version
  2. Commit: Updates wlroots and introduces the required changes to fix builds of other packages (except if we update their version)
  3. Commit: Updates sway

@Synthetica9 Synthetica9 force-pushed the sway-1.16 branch 4 times, most recently from e5803eb to 6dd142b Compare April 8, 2021 10:36
@Synthetica9 Synthetica9 marked this pull request as ready for review April 8, 2021 10:36
@Synthetica9
Copy link
Member Author

I think this PR is ready to be merged :)

Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

Overall it LGTM now, thanks a lot! We mainly need to re-add recurseIntoAttrs for Wayfire (s. below).

nixpkgs-review result:

1 package added:
wlroots_0_12 (init at 0.12.0)

11 packages updated:
dwl fuzzel sway-contrib.grimshot (1.5.1 → 1.6) labwc (2021-02-06 → 2021-03-15) qt-video-wlr sway (1.5.1 → 1.6) sway-contrib.inactive-windows-transparency (1.5.1 → 1.6) sway-unwrapped (1.5.1 → 1.6) waybar wbg-unstable wlroots (0.12.0 → 0.13.0)

3 packages removed:
wayfire (†0.7.0) wcm (†0.7.0) wf-shell (†0.7.0)

12 packages built:
dwl fuzzel labwc qt-video-wlr sway sway-contrib.grimshot sway-contrib.inactive-windows-transparency sway-unwrapped waybar wbg wlroots wlroots_0_12

pkgs/applications/window-managers/cage/default.nix Outdated Show resolved Hide resolved
pkgs/top-level/all-packages.nix Outdated Show resolved Hide resolved
Synthetica9 and others added 5 commits April 8, 2021 17:23
Uses the old wlroots in places where the new one isn't yet compatible.

Co-authored-by: Alyssa Ross <hi@alyssa.is>
Co-authored-by: Michael Weiss <dev.primeos@gmail.com>
Pulls in an upstream patch for dwl. Explicitly takes xcbutilrenderutil
as an argument to avoid pulling in all of xorg.
Co-authored-by: Michael Weiss <dev.primeos@gmail.com>
Needed for wlroots 0.13.0

Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

Thanks a lot, very well done!
I've briefly tested sway, dwl, and labwc on my old desktop PC. nixpkgs-review result:

1 package added:
wayfireApplications-unwrapped.wlroots (init at 0.12.0)

11 packages updated:
dwl fuzzel sway-contrib.grimshot (1.5.1 → 1.6) labwc (2021-02-06 → 2021-03-15) qt-video-wlr sway (1.5.1 → 1.6) sway-contrib.inactive-windows-transparency (1.5.1 → 1.6) sway-unwrapped (1.5.1 → 1.6) waybar wbg-unstable wlroots (0.12.0 → 0.13.0)

12 packages built:
dwl fuzzel labwc qt-video-wlr sway sway-contrib.grimshot sway-contrib.inactive-windows-transparency sway-unwrapped waybar wayfireApplications-unwrapped.wlroots wbg wlroots

@primeos primeos dismissed AndersonTorres’s stale review April 8, 2021 15:52

Should be resolved now (GH doesn't handle that automatically)

@primeos primeos merged commit 915e3fe into NixOS:master Apr 8, 2021
@primeos primeos mentioned this pull request Apr 8, 2021
10 tasks
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

8 participants