Issue 29 Support OpenSSH on Cygwin

Title Support OpenSSH on Cygwin
Priority feature Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, eivuokko, jch, kowey, mlarsen, rgm, thorkilnaur, tommy, wglozer, zooko
Assigned To
Topics SSH, Windows

Created on 2005-11-30.01:58:40 by zooko, last changed 2009-10-24.00:07:33 by admin.

File name Uploaded Type Edit Remove
scpwrap.hs kowey, 2006-07-11.10:10:38 application/octet-stream
msg113 (view) Author: zooko Date: 2005-11-30.01:58:40
Zooko intends to try this at some point and report back.  It is vaguely related
to issue28.
msg129 (view) Author: droundy Date: 2005-11-30.13:26:05
For what it's worth, I speculate that passing relative rather than absolute
paths might help.

msg663 (view) Author: zooko Date: 2006-05-18.15:41:01
This issue is more important now because putty doesn't do ControlMaster so it
can't take advantage of the cool new "one connection" feature of darcs 1.0.7.
msg804 (view) Author: kowey Date: 2006-07-09.13:52:19
Here's a proposed plan of action.  Any Windows developers volunteer to do this?

1. Look at the Cygpath C++ source: http://tinyurl.com/famkm
   (note: you might have to unroll the ball of yarn all the up to some
    helper library)

2. Reimplement in 3 lines of Haskell or less [;-)], thus providing a
      windowsToUnixPath :: FilePath -> FilePath
   which translates a path like
      z:\Program Files\foo\bar
      /cygpath/z/Program\ Files/foo/bar

3. Generalise the function hasSSHControlMasterIO (and its unsafe  wrapper)
       type SSHInfo = { isCygwinOpenSSH  :: Bool
                      , hasControlMaster :: Bool
       getSSHInfo :: SSHInfo 

   Notes: a combination of uname and ssh -v would probably do
   the job

4. All functions that invoke SSH : do path translation on all arguments that
   are paths if we are using the Cygwin OpenSSH

5. Write test cases
msg810 (view) Author: kowey Date: 2006-07-11.10:10:38
See this file by Simon Marlow
msg820 (view) Author: jch Date: 2006-07-13.18:35:56
Taking the risk of reopening a long-dormant flamewar, I'm marking this bug as

Writing software for Unix is difficult.  Writing software for Windows is
difficult.  Writing software that's portable between Windows and Unix even more

Writing software that works on a nondeterministic Windows/Unix hybrid such
as Cygwin is beyond what we can afford.  Thus, I would argue that unless
somebody volunteers for maintaining Darcs on Cygwin, we should make no
concessions for Cygwin users.

Please reopen this bug if you disagree and are willing to do the work and
willing to make sure it doesn't break in the foreseeable future.
msg825 (view) Author: zooko Date: 2006-07-13.20:56:54
I'm willing to (continue) to do work to support Cygwin users.
msg1057 (view) Author: kowey Date: 2006-10-10.16:58:52
See also RT#496
msg8535 (view) Author: kowey Date: 2009-08-27.14:49:32
Hi Zooko: I'm re-marking this as wont-fix due to lack of manpower.  In general,
I think the Darcs project should focus its Windows efforts on making a pure
Windows darcs, without worrying about Cygwin.  Perhaps a separate Cygwin-Darcs
effort outside the project would be a good idea.
Date User Action Args
2005-11-30 01:58:40zookocreate
2005-11-30 13:26:16droundysetstatus: unread -> unknown
nosy: droundy, tommy, wglozer, zooko
messages: + msg129
2006-05-18 15:41:04zookosetnosy: droundy, tommy, wglozer, zooko
messages: + msg663
2006-06-30 17:45:06zookosetnosy: droundy, tommy, wglozer, zooko
assignedto: zooko -> zooko
2006-07-09 13:52:23koweysetnosy: + kowey
messages: + msg804
title: What goes wrong when you try to use darcs/w32 with cygwin ssh? -> Support OpenSSH on Cygwin
2006-07-11 10:10:44koweysetfiles: + scpwrap.hs
nosy: droundy, tommy, kowey, wglozer, zooko
messages: + msg810
2006-07-11 11:37:08mlarsensetnosy: + mlarsen
2006-07-13 18:36:00jchsetstatus: unknown -> wont-fix
nosy: + jch
messages: + msg820
2006-07-13 20:56:57zookosetstatus: wont-fix -> unknown
nosy: droundy, jch, tommy, kowey, wglozer, zooko, mlarsen
messages: + msg825
2006-07-13 20:57:07zookosetnosy: droundy, jch, tommy, kowey, wglozer, zooko, mlarsen
2006-10-10 16:58:57koweysetnosy: droundy, jch, tommy, kowey, wglozer, zooko, mlarsen
messages: + msg1057
2007-07-18 07:40:34koweysettopic: + SSH
nosy: + eivuokko, rgm, beschmi
2008-02-08 17:21:58markstossetstatus: unknown -> deferred
nosy: droundy, jch, tommy, beschmi, kowey, wglozer, zooko, eivuokko, mlarsen, rgm
2009-08-06 17:36:30adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, dagit, mornfall, simon, thorkilnaur, - droundy, jch, wglozer, eivuokko, mlarsen, rgm
2009-08-06 20:33:33adminsetnosy: - beschmi
2009-08-10 21:56:53adminsetnosy: + wglozer, mlarsen, eivuokko, rgm, jch, - markstos, darcs-devel, jast, dagit, Serware, mornfall
2009-08-25 17:50:25adminsetnosy: + darcs-devel, - simon
2009-08-27 13:54:35adminsetnosy: jch, tommy, kowey, wglozer, darcs-devel, zooko, eivuokko, mlarsen, rgm, thorkilnaur, dmitry.kurochkin
2009-08-27 14:49:34koweysetstatus: deferred -> wont-fix
nosy: jch, tommy, kowey, wglozer, darcs-devel, zooko, eivuokko, mlarsen, rgm, thorkilnaur, dmitry.kurochkin
messages: + msg8535
assignedto: zooko ->
2009-10-23 22:41:45adminsetnosy: + robmoss, - rgm
2009-10-24 00:07:33adminsetnosy: + rgm, - robmoss