delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/05/16/08:07:50

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
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 <ptsekov AT syntrex DOT com>
Reply-To: Pavel Tsekov <ptsekov AT syntrex DOT com>
Organization: Syntrex, Inc.
X-Priority: 3 (Normal)
Message-ID: <1317051719.20020516140703@syntrex.com>
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
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:
<FC169E059D1A0442A04C40F86D9BA7600C60DB AT itdomain003 DOT itdomain DOT net DOT au>
<6315740543 DOT 20020516134512 AT syntrex DOT com>
MIME-Version: 1.0

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?   

- Raw text -


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