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
ssh-ident: switch to python3 interpreter #92912
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
hum pb, path should contain folders not executables ... |
oh right, did not even think of that |
@@ -10,12 +10,10 @@ stdenv.mkDerivation { | |||
sha256 = "1jf19lz1gwn7cyp57j8d4zs5bq13iw3kw31m8nvr8h6sib2pf815"; | |||
}; | |||
|
|||
buildInputs = [ makeWrapper ]; | |||
buildInputs = [ python3 ]; |
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.
Does the executable of interest retain the dependency on the python3
executable? If not, wrapProgram
is still needed.
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.
looks like the patchShebang is doing the correct behavior
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.
[nix-shell:/home/jon/.cache/nixpkgs-review/pr-92912]$ ./results//ssh-ident/bin/ssh-ident --help
ssh-ident found '/nix/store/qhhq7ijxplzzb1ridynqxj5ffphhgbn5-ssh-ident-2016-04-21/bin/ssh-ident' as the next command to run.
Based on argv[0] (./results//ssh-ident/bin/ssh-ident), it seems like this will create a
loop.
Please use BINARY_SSH, BINARY_DIR, or change the way
ssh-ident is invoked (eg, a different argv[0]) to make
it work correctly.
looks like wrapping needs to change
Looks like the problem was there before, I re added the wrapper but for the moment I don't see how to fix the missing ssh-agent inside the nixpkgs-review shell, normally it simply looks up in the PATH |
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.
diff LGTM
just please squash the fix up commits
E.g.
git reset HEAD~4
git add pkgs/
git commit --amend --no-edit
git push .. .. --force
7e2473f
to
c879bdc
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
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.
LGTM
shows usage
https://github.com/NixOS/nixpkgs/pull/92912
1 package built:
ssh-ident
Motivation for this change
Python2 is obsolete, so why still depend on it for ssh-ident.
even though the code is pretty old it is working painlessly with python3
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)