-
-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
xwayland-run: init at 0.0.2 #273453
xwayland-run: init at 0.0.2 #273453
Conversation
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/3071 |
7044157
to
850cef0
Compare
850cef0
to
6cfd197
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/1309 |
It seems the entrypoints need wrapping to properly enter the python environment
Consider |
6cfd197
to
8b2d8fd
Compare
Sorry! Done. |
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.
On a headless host i get no output and no side-effects when running a program:
$ /nix/store/798xf6snhdbyi7z7c8s3ism06mxq8fv2-xwayland-run-0.0.2/bin/xwfb-run touch foobar
$ test -f foobar || echo ":("
:(
In strace
i can see it handling some error:
read(4, "# subprocess - Subprocesses with"..., 8192) = 8192
read(4, "PollSelector'):\n _PopenSe"..., 8192) = 8192
read(4, "elf.returncode = returncode\n "..., 8192) = 8192
read(4, ".\n\n Prefer an implementation "..., 8192) = 8192
read(4, " raise ValueError(\"The 'ext"..., 8192) = 8192
read(4, "subprocess exit status creates a"..., 8192) = 8192
read(4, "f _get_handles(self, stdin, stdo"..., 8192) = 8192
read(4, "ot executable:\n "..., 8192) = 8192
On a wayland gnome host i get no side-effects and the following error:
Failed to connect to the compositor!
When i run it in cage
i get the following output, not sure if relevant:
$ cage results/xwayland-run/bin/xwfb-run touch asd
00:00:00.012 [EGL] command: eglQueryDmaBufModifiersEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In eglQueryDmaBufModifiersEXT: Invalid format
"
00:00:00.012 [render/egl.c:661] Failed to query dmabuf number of modifiers
00:00:00.012 [EGL] command: eglQueryDmaBufModifiersEXT, error: EGL_BAD_PARAMETER (0x300c), message: "EGL_BAD_PARAMETER error: In eglQueryDmaBufModifiersEXT: Invalid format
"
00:00:00.012 [render/egl.c:661] Failed to query dmabuf number of modifiers
Failed to connect to the compositor!
8b2d8fd
to
5ae9f91
Compare
@pbsds everything should be fine now. |
5ae9f91
to
d20904f
Compare
Seems to work, but putting both weston, cage and mutter in the closure is quite excessive. Up for discussion is, should we set cage as the default compositor? Instead of propagating the runtime dependencies, please wrap the |
Yeah agreed.
I think it's better to keep upstream's defaults.
I'll take a look tomorrow. Thanks for the suggestion. |
d20904f
to
0370e59
Compare
@pbsds wrapped the binaries. |
0370e59
to
ef90d1f
Compare
It seems
It might need to be wrapped with |
This should work headlessly, which can be emulated in a |
ef90d1f
to
ab54af1
Compare
Fixed. |
ab54af1
to
15a6431
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.
Result of nixpkgs-review pr 273453
run on x86_64-linux 1
2 packages built:
- xwayland-run
- xwayland-run.man
- package path fits guidelines
- package name fits guidelines
- package version fits guidelines
- package builds on x86_64-linux
- executables tested on x86_64-linux
-
meta.description
is set and fits guidelines -
meta.license
fits upstream license -
meta.platforms
is set -
meta.maintainers
is set - build time only dependencies are declared in
nativeBuildInputs
- source is fetched using the appropriate function
- the list of
phases
is not overridden - when a phase (like
installPhase
) is overridden it starts withrunHook preInstall
and ends withrunHook postInstall
. - patches have a comment describing either the upstream URL or a reason why the patch wasn't upstreamed
- patches that are remotely available are fetched rather than vendored
@pbsds thanks for all your help, learned a lot here! |
Description of changes
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.