Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <392633C8.4B20FBE5@ece.gatech.edu> Date: Sat, 20 May 2000 02:42:16 -0400 From: "Charles S. Wilson" X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: Wierd patch problem + simple fix Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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