Skip to content

Conversation

@bobrik
Copy link
Contributor

@bobrik bobrik commented Aug 12, 2021

Motivation for this change

Fixing the following issue:

kitty/cocoa_window.m:179:37: error: 'NSUserNotificationCenter' is deprecated:
  first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced
  with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
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 (aarch64)
    • 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 packages 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/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Fixing the following issue:

```
kitty/cocoa_window.m:179:37: error: 'NSUserNotificationCenter' is deprecated:
  first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced
  with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
```
@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Aug 12, 2021
@Artturin
Copy link
Member

Use lib.optionalString

@bobrik bobrik requested review from FRidh and jonringer as code owners August 13, 2021 19:30
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Aug 13, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Aug 13, 2021
@bobrik
Copy link
Contributor Author

bobrik commented Aug 13, 2021

I copy-pasted this from some other package, so I went ahead and changed all other similar places. Somebody needs to retarget this to staging now, I suppose.

@Artturin
Copy link
Member

you dont have to do it in this pr

@SuperSandro2000
Copy link
Member

More important this needs to target staging.

@Luflosi
Copy link
Contributor

Luflosi commented Aug 16, 2021

@bobrik you can target staging yourself by clicking edit to the right of the title and then changing the branch from master to staging. Maybe you also need to rebase your commits.
I don't have a Mac with an Apple Silicon chip, so I can't test this PR.

@bobrik
Copy link
Contributor Author

bobrik commented Aug 16, 2021

I don't think I even successfully rebased a PR to a different branch without pulling a whole lot of unrelated reviewers. The manual process seems to rely on hope a bit too much: #115220 (comment).

Is there there a reason why somebody with permissions can't ask ofborg to rebase?

@7c6f434c
Copy link
Member

I don't think ofBorg supports rebase…

I would recommend maybe rebasing the PR on git merge-base of master and staging, this should reduce the risk of mentioning everyone. Also, retarget and immediately close, and check it worked (and maybe push a staging-rebased version) before reopening.

@bobrik
Copy link
Contributor Author

bobrik commented Aug 16, 2021

See #115226 (comment), it's absolutely possible to rebase. You just need to be on the list to be allowed to do it.

@7c6f434c
Copy link
Member

This is very definitely not ofBorg. (And I am not sure if this action got deactivated or just takes forever — I tried and got no reaction…)

@7c6f434c
Copy link
Member

/rebase staging

@zowoq
Copy link
Contributor

zowoq commented Aug 16, 2021

The rebase action was removed a while ago as it was broken.

@bobrik bobrik closed this Aug 19, 2021
@bromanko
Copy link

bromanko commented Sep 2, 2021

@bobrik why did you close this? Did you find an alternative solution?

@cideM cideM mentioned this pull request Jan 4, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants