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
tigervnc: unbreak the build (and add tests) #85124
Conversation
@GrahamcOfBorg test vnc (I don't actually know whether I have permissions to ask our bot for this favor, but thought that I might just try it.) Update: I'm not a trusted user, hence the tests did not run. I'm grateful if somebody else could run them so that I can fix the test script if needed. :-) |
@GrahamcOfBorg test vnc |
@GrahamcOfBorg test vnc |
|
||
in with pkgs; { | ||
testTigerVNC = makeVNCTest "tigervnc" tigervnc; | ||
testTightVNC = makeVNCTest "tightvnc" tightvnc; |
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.
Ok. Maybe the renaming was not the best idea. Just spotted that it tests two different implementations. However trying to build this, still causes infinite recursion.
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.
Yes, the idea was to have one test file for both packages, as they are very similar in their functionality.
What's the best way to proceed? If I'm honest then I'm not completely sure why we use passthru.tests.tigervnc = nixosTests.tigervnc
which I believe to cause the infinite recursion. I loosely based the test on the test for Mumble, and the Mumble package also does not contain an analogue of this declaration.
Thank you for tending to this pull request! :-)
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.
Actually I use the same thing here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/ferm/default.nix#L30
@iblech AFAIU @Mic92 merged the fix, meaning that this PR only adds tests now. Are you still interested in rebasing on a recent master and pushing this to completion? On that topic @Mic92, I can't see in the comments any reason for you not to merge the tests too. Or maybe you just didn't review them? |
I marked this as stale due to inactivity. → More info |
Closing due to inactivity from author. |
Motivation for this change
Right now, the vncserver of tigervnc doesn't start because
xauth
is missing from$PATH
. This pull request fixes this and also adds a basic test, both for tigervnc and for tightvnc.Note that tightvnc in principle has the same xauth problem, but there it has already been solved by patching the start script (by replacing
xauth
with${xauth}
). Here we simply add it to the path withmakeBinPath
. I don't know which procedure is best practice.I was not able to actually run the test I added since the computers I have access to lack kvm support.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)