Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com Date: Thu, 16 May 2002 14:07:03 +0200 From: Pavel Tsekov Reply-To: Pavel Tsekov Organization: Syntrex, Inc. X-Priority: 3 (Normal) Message-ID: <1317051719.20020516140703@syntrex.com> To: Robert Collins CC: cygwin-apps AT cygwin DOT com Subject: Installation of X with setup.exe was Re[8]: setup.exe and inuse files for X In-Reply-To: <6315740543.20020516134512@syntrex.com> References: <6315740543 DOT 20020516134512 AT syntrex DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok, yesterday I've installed X with setup.exe and ended up with a lot of filename.new files under /usr/X11R6/ and some other dirs. I took a look at setup.log and saw this: 2002/05/15 11:26:13 Failed to open cygfile:///usr/X11R6/lib/X11/xman.help for wr iting. .. and many others like this. Obviosly I wasn't looking very sharp at the log file since I choose a wrong direction when looking how to fix the problem. Today after some bunch of messages I sent to the list, I decided to grep the setup source for the message printed in the log file. It appears only in archive.cc: io_stream::remove (destfilename); io_stream *tmp = io_stream::open (destfilename, "wb"); if (!tmp) { log (LOG_TIMESTAMP, String ("Failed to open ") + destfilename + " for writ ing."); return 1; } Ok what's wrong here is that io_stream_cygfile::remove doesn't do the SetFileAttributes() trick when calling DeleteFile (). I was looking in the wrong place, package_meta.cc in packagemeta::uninstall. However these code was never executed, because X was never installed on my PC with setup.exe, but with the old method for installing X. Sorry, for spamming the mail list :( Thursday, May 16, 2002, 1:45:12 PM, you wrote: PT> No! Because I'm stupid... There is something else here. I got fooled. RC>> Oh, and can you please provide as a patch+ changelog?