X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <489FE49E.9010203@cwilson.fastmail.fm>
Date: Mon, 11 Aug 2008 03:05:02 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: setup v2.573.2.3: Postinstall: "abnormal exit: exit code=126"
References: <00be01c8fa36$aaa16120$9601a8c0@CAM.ARTIMI.COM> <489DF631.57D5D4D6@dessent.net> <00db01c8fa5f$79ddb830$9601a8c0@CAM.ARTIMI.COM> <489E0C62.86E9115A@dessent.net> <489E3393.4040300@byu.net> <489E4332.3060700@go4more.de> <489EEB8A.7060408@byu.net> <489F64A5.3080309@users.sourceforge.net> <20080810231105.GC9970@ednor.casa.cgf.cx> <489F93E7.4020108@cwilson.fastmail.fm> <20080811041224.GA12423@ednor.casa.cgf.cx>
In-Reply-To: <20080811041224.GA12423@ednor.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor wrote:
> On Sun, Aug 10, 2008 at 09:20:39PM -0400, Charles Wilson wrote:
>> Well, one of the problems with both cygport's current automatic handling of 
>> info files, and the _update-info-dir metapackage, is that nobody ever runs 
>> install-info --remove. And really, I don't see any way a metapackage like 
>> _update-info-dir could ever do so -- How does it know what I *used* to have 
>> installed, that now is installed no longer?  It can't parse my existing dir 
>> file, can it?
> 
> _update-info-dir deletes the dir file before it creates it.  The only
> way an obsolete .info file can be added is if it somehow was not removed
> by setup.

Oh, I didn't know that was how _update-info-dir worked.  I knew it 
called install-info on every info file, but somehow I thought 
install-info was idempotent.  So, there would be no need to delete the 
dir file before doing that.

But if it deletes the dir file, then there really is no point in ANY 
.info-file-related shenanigans in postinstall or preremove scripts.

--
Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

