Conversation
|
buildInputs? |
Yes, it seems that if However, it occurs to me now that maybe |
|
Sure enough, it works fine with a fake SSH executable present during the build. So I think I'll amend my pull request to not use the openssh package, it's unnecessary. |
cd3e0de to
fd3b151
Compare
If no ssh executable can be found during the configure phase, CVS defaults to using rsh for remote connections instead.
|
Let me ask: If I built CVS before your PR, and install both CVS and OpenSSH, then CVS will be unable to find SSH. |
|
Yes, exactly. In that case it executes rsh instead, so it never finds ssh
because it isn't even attempting to find it.
…On Wed, Oct 9, 2024, 3:14 PM Anderson Torres ***@***.***> wrote:
Let me ask:
If I built CVS before your PR, and install both CVS and OpenSSH, then CVS
will be unable to find SSH.
Is this correct?
—
Reply to this email directly, view it on GitHub
<#347374 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADUECYWN6IN5TXXO5SBHMKLZ2WMDZAVCNFSM6AAAAABPTMGYDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGQ2DANJVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
From what I have understood by reading the source code,
It looks like it's possible to use ssh under cvs. |
|
I believe I was able to get the existing build of cvs from nixpkgs to use SSH by setting CVS_RSH=ssh in my environment at runtime. Before creating this pull request, I tried each of the 3 methods you suggested and none of them worked.
Just because it's possible to make it work doesn't mean it makes sense to require an extra environment variable be defined just so that cvs will behave the way its own authors describe.
I've just migrated my work computer from Ubuntu to NixOS. Ubuntu's cvs package does not attempt to use rsh.
|
There are tutorials on the Internet suggesting to set environment variables in order to use CVS: And this is supported by the documentation:
Nice. |
|
I'm not interested in trying to convince you that this is a worthwhile change. I find it valuable, personally. I was somewhat annoyed when I discovered that cvs doesn't work the same way in NixOS as it works on Ubuntu because it meant that I couldn't get work done until I found a workaround. I thought the community may benefit from this change.
Be my guest, I've never looked at them personally. I've just used cvs on other systems. |
If no ssh executable can be found during the configure phase, CVS defaults to using rsh for remote connections instead. This seems undesirable in 2024.
Things done
Added the
opensshpackage to the build inputs so that thesshexecutable is found by configure.Built on platform(s)
Tested, as applicable:
Tested compilation of all packages that depend on this change using
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usageTested basic functionality of all binary files (usually in
./result/bin/)24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
Fits CONTRIBUTING.md.
Add a 👍 reaction to pull requests you find important.