-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
duckstation: unstable-2023-09-30 -> 0.1-6292 #277565
Conversation
739bcbe
to
3e393a9
Compare
3e393a9
to
29972cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now Wayland support is mandatory?
I copied upstream: Same thing of PCSX2: nixpkgs/pkgs/applications/emulators/pcsx2/default.nix Lines 114 to 120 in b0d36bd
I removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting mergers
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3204 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1353 |
29972cd
to
2adf53b
Compare
Was this yet another mere hash update? |
Is there any reason why this hasn't been merged yet? |
Mergers busy merging other things... |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1387 |
2adf53b
to
932e40c
Compare
]; | ||
|
||
# https://github.com/stenzek/duckstation/blob/master/scripts/appimage/apprun-hooks/default-to-x11.sh | ||
# Can't avoid the double wrapping, the binary wrapper from qtWrapperArgs doesn't support --run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be possible to overwrite the makeWrapper used back to the none binary one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing this would increase startup time, though.
So... which one is less bad? Double wrapping, or longer startup time?
(Also, if I do the latter, it should be changed on PCSX2 too for consistency)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer no double-wrapping.
How much the startup would be affected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #225881.
(Looking at the that... how am I supposed to revert it? Overriding propagatedBuildInputs
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The speedup is huge, two orders of magnitude! Let's stay with the double wrapping, until someone writes the Best Wrappers Ever (using JSON or other eerie magic).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double wrapping is really bad as the program thinks that it was started as .name-wrapped which really is the name of the first wrapper after the other one was applied on top.
Also instead of adding a new magic variable which does things, why can't we tell people to just export QT_QPA_PLATFORM=xcb for duckstation? That would avoid the problem entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I'll reiterate the points:
- This wrapping is done to match upstream's behavior. The AppImages have Wayland as an opt-in (and not opt-out) because they think that the Wayland experience on PCSX2/DuckStation isn't good enough for it to be the default. See
https://github.com/PCSX2/pcsx2/pull/10179
. It is important to respect this when making a package of their program. - So, if I have to do the above while not double wrapping, then I need to "revert" write-qt-apps-hook.sh: use make-binary-wrapper for significant speedups #225881's behavior (that is, make
wrapQtAppsHook
usemakeWrapper
instead ofmakeBinaryWrapper
). I don't know how to do that.
Also, no one said anything when I did the same thing on PCSX2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read the small words.
And, seriously, the "no one said this to me before" is a bad argument, especially in a codebase with sudden changes like Nixpkgs.
Also instead of adding a new magic variable which does things, why can't we tell people to just export QT_QPA_PLATFORM=xcb for duckstation? That would avoid the problem entirely.
I think it would be a serious problem of usability. Yes, we Nixpkgs users are usually a well-informed people, however things like "extra preparation steps" are too much to require, since
- Other distros rarely worry about those things
- export variables can affect more than the running program, breaking one of the main flagships of Nixpkgs - the sandbox
- it is easy to forget to undo the exports, or even why they were made in the first place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you consider this thread blocking? Would a simple s/I_WANT_A_BROKEN_WAYLAND_UI/DUCKSTATION_I_WANT_A_BROKEN_WAYLAND_UI/
suffice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the maintainer of this package, everything LGTM.
The problems of this expression are external to it.
932e40c
to
b3ccaab
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1459 |
Description of changes
Supersedes #273855.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.