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
virtualgl-lib: fix broken startup script #49185
Conversation
pkgs/tools/X11/virtualgl/lib.nix
Outdated
postPatch = '' | ||
# script calls exec, which fails with plain sh | ||
substituteInPlace ./server/vglrun.in \ | ||
--replace '#!/bin/sh' '#!${stdenv.shell}' |
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.
Can this be also fixed by the patchShebangs
script?
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.
That won't give me a bash but the path to a sh
(I tried).
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.
Also reported here: VirtualGL/virtualgl#87
Replace /bin/sh with bash in vglrun. 'exec' fails with /bin/sh
5cb3ccf
to
9c3c59e
Compare
This fix also needs a backport to 18.09 |
@GrahamcOfBorg build virtualglLib |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: virtualglLib Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: virtualglLib Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: virtualglLib Partial log (click to expand)
|
@GrahamcOfBorg build virtualgl bumblebee |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: virtualgl, bumblebee Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: virtualgl The following builds were skipped because they don't evaluate on aarch64-linux: bumblebee Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: virtualgl The following builds were skipped because they don't evaluate on x86_64-linux: bumblebee Partial log (click to expand)
|
Replace /bin/sh with bash in vglrun. 'exec' fails with /bin/sh (cherry picked from commit efd3f8b)
backported in c341f56. |
This reverts commit efd3f8b.
Motivation for this change
Replace /bin/sh for bash in
vglrun
.The script uses
exec
, which fails with /bin/shThings done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)