delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/12/16:03:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C6981E6.2030200@ece.gatech.edu>
Date: Tue, 12 Feb 2002 15:58:14 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Holger Spielmann <holger AT spielmann DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: CVS with pserver: Binary files get corrupted
References: <87wuxiikt1 DOT fsf AT shambler DOT spielmann DOT net>

Holger Spielmann wrote:

> Hello,
> 
> due to company policy, I have to use Windows in my current project, so
> I started using Cygwin to get a halfway decent environment.
> 
> I successfully managed to set up a CVS pserver on Cygwin. In our
> project, we want to add some JAR files to the CVS, so the frameworks
> API (here: Cocoon) can be assured to be on the same revision for all
> developers.
> 
> But the jars arrive garbled in the repository, despite I added them
> with the -kb option. First I thought it might be related to the text
> mode I used for mounting the file systems, but transferring the
> repository didn't change anything, I even tried to import a new
> project from scratch.


The repository itself must be on a binary (unix) mounted drive -- within 
the conext of the service!  Since you are probably starting the pserver 
daemon from inetd, which is started under the *SYSTEM* user.  It 
(probably) doesn't matter where the checked-out or original-pre-import 
sources are, but the repository must be on a unix mount.

Try starting from scratch:

On repository machine:
   mount -b -s D:\my-repository /repository
(-s insures that this is a whole-system mount, so even the SYSTEM user 
will see it)

export CVSROOT=/repository
cvs init

And then try importing a new project.

--Chuck

[not snipped so your entire message appears in the correct mailing list archives]


> For all binary files, linefeed is replaced by CR/LF, and yes, it
> already happens when the files arrive in the repository.
> As I read in an older posting by Corinna Vinschen concerning ash,
> dated from April 2001, this might be related to the cvs pserver
> process opening its socket with O_TEXT. Alas, grepping thru the
> sources of cvs and inetutils showed me no place where I might try to
> patch.
> 
> Using rsh is no opportunity because we get dynamic IPs, using ssh
> with client certificates would involve additional software and
> procedures, to which some of my collegues are not used to, and putting
> the repository on a Windows share is too damn slow and lacks any
> security.
> Ah, and did I mention the policy keeps me from just putting Debian on
> one of the boxes... :(
> 
> Any ideas regarding this problem? A patch would be quite handy!
> 
> TIA
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019