delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/20/02:54:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <048101bfc228$5752fc80$fa3c1818@rochester.rr.com>
From: "Terry Lincoln" <lincoln2 AT rochester DOT rr DOT com>
To: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>,
<cygwin AT sourceware DOT cygnus DOT com>
References: <392633C8 DOT 4B20FBE5 AT ece DOT gatech DOT edu>
Subject: Re: Wierd patch problem + simple fix
Date: Sat, 20 May 2000 02:55:09 -0400
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

Hi,

The final problem you describe is simply because patch is trying to mv
(rename) across drive barriors.

This could be fixed if mv would fall back to 'cp & rm' in situations where
the source and destination drives differ.

Regards,

W. Terry Lincoln
Senior Solution Developer [Linux Registered User #99583]
Ciber corporation (ICQ# 39362285)
mailto:WTerryLincoln AT engineer DOT com mailto:lincoln2 AT rochester DOT rr DOT com
mailto:TerryLincoln AT isonfire DOT com
http://www.geocities.com/terry_lincoln
http://www.angelfire.com/ny/TerryLincoln

----- Original Message -----
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
To: <cygwin AT sourceware DOT cygnus DOT com>
Sent: Saturday, May 20, 2000 2:42 AM
Subject: Wierd patch problem + simple fix


> This behavior seems to have cropped up only recently, but I don't know
> *exactly* which of the myriad upgrades to my cygwin installation
> triggered it.
>
> patch gives a strange error:
>
> $ patch -p1 < ../binutils-patch
> patching file `ld/emultempl/pe.em'
> patch: **** can't rename `E:\TEMP/po002169' to `ld/emultempl/pe.em' :
> File exists
>
> I thought it may have been related to the line-ending troubles of
> cygwin-1.1.1, but after trying both the 5/19 snapshot and the 4/19
> snapshot, neither fixed it. This did:
>
> $ echo $TMP
> E:\TEMP
> $ export TMP=/tmp
>
> and then patch works just fine.
>
>
> So, here's two questions to ponder: why is patch now sensitive to the
> $TMP variable, and why didn't cygwin1.dll translate the pre-existing
> windows variable 'TMP' into /e/temp (since E: is mounted on /e)?
>
> Which leads to the following:
>
> $ export TMP=/e/TEMP
> $ patch -p1 -R < ../binutils-patch
> patching file `ld/emultempl/pe.em'
> patch: **** can't rename `/e/TEMP/po002198' to `ld/emultempl/pe.em' :
> File exists
>
> Weird.
>
> --Chuck
>
> P.S. I've gotta stress that whatever the underlying cause of this
> behavior, simply setting $TMP to /tmp, or unsetting it (e.g. 'export
> TMP=') will work around the problem.
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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