From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52497 invoked by alias); 23 Nov 2015 15:14:05 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 52484 invoked by uid 89); 23 Nov 2015 15:14:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out2-smtp.messagingengine.com Received: from out2-smtp.messagingengine.com (HELO out2-smtp.messagingengine.com) (66.111.4.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 23 Nov 2015 15:14:03 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 518FE2037A for ; Mon, 23 Nov 2015 10:14:00 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 23 Nov 2015 10:14:00 -0500 Received: from [192.168.1.102] (host86-141-129-50.range86-141.btcentralplus.com [86.141.129.50]) by mail.messagingengine.com (Postfix) with ESMTPA id F0F756801C7 for ; Mon, 23 Nov 2015 10:13:59 -0500 (EST) From: Jon Turney Subject: Re: [PATCH setup 0/3] Setup replacement for incver_ifdep To: cygwin-apps@cygwin.com References: <1442937170-17580-1-git-send-email-jon.turney@dronecode.org.uk> <561BB2A4.2030009@dronecode.org.uk> <87lhb8htrh.fsf@Rainer.invalid> <561FA783.900@dronecode.org.uk> <87oag0qad3.fsf@Rainer.invalid> <20151019154100.GB18989@calimero.vinschen.de> <87io62hiz6.fsf@Rainer.invalid> <20151020102150.GF5319@calimero.vinschen.de> Message-ID: <56532D34.4090102@dronecode.org.uk> Date: Mon, 23 Nov 2015 15:14:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151020102150.GF5319@calimero.vinschen.de> Content-Type: multipart/mixed; boundary="------------050800070705000703050607" X-SW-Source: 2015-11/txt/msg00060.txt.bz2 This is a multi-part message in MIME format. --------------050800070705000703050607 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1023 On 20/10/2015 11:21, Corinna Vinschen wrote: > On Oct 19 19:21, Achim Gratz wrote: >> Corinna Vinschen writes: >>> I agree. Actually, considering that the info files are stored in just a >>> single well-known directory, /usr/share/info(*), and further considering >>> that updated files are rewritten when overwritten, shouldn't it be entirely >>> sufficient if the update_info_dir script performs a simple test like this: >>> >>> - Does /usr/share/info/dirs exist? >>> >>> No -> run install-info >>> >>> Yes -> Is /usr/share/info/dirs mtime < /usr/share/info mtime? >>> >>> No -> Do nothing >>> >>> Yes -> run install-info So, this is actually quite straightforward to write, and /etc/postinstall/0p_update-info-dir.sh becomes the attached. >> Can this be relied on for all possible file systems? > > Not on FAT. But then again, FAT is not really a filesystem, rather just > a failed try. But yes, this does nothing useful if /usr/share/info is on a FAT filesystem, as the mtime doesn't change. --------------050800070705000703050607 Content-Type: text/plain; charset=UTF-8; name="0p_update-info-dir.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0p_update-info-dir.sh" Content-length: 948 IyEvYmluL2Jhc2gKCiMgaWYgL3Vzci9zaGFyZS9pbmZvIGlzIG5ld2VyIHRo YW4gL3Vzci9zaGFyZS9pbmZvL2RpciwgYW4gLmluZm8gZmlsZSBoYXMgYmVl bgojIGFkZGVkL3JlbW92ZWQvcmVwbGFjZWQgc2luY2UgdGhlIGxhc3QgdGlt ZSB3ZSByZWJ1aWx0IHRoZSBpbmZvIGRpcmVjdG9yeQoKaWYgWyAvdXNyL3No YXJlL2luZm8gLW50IC91c3Ivc2hhcmUvaW5mby9kaXIgXSA7IHRoZW4KICAg IGVjaG8gIlJlYnVpbGRpbmcgaW5mbyBkaXJlY3RvcnkiCiAgICBybSAtZiAv dXNyL3NoYXJlL2luZm8vZGlyLmluZm8gL3Vzci9zaGFyZS9pbmZvL2Rpcgog ICAgZm9yIGYgaW4gL3Vzci9zaGFyZS9pbmZvLyo7IGRvCiAgICAgICAgY2Fz ZSAiJGYiIGluCiAgICAgICAgICAgICpcKiopCiAgICAgICAgICAgICAgICA7 OwogICAgICAgICAgICAqL2RpcnwqL2Rpci5pbmZvKikKICAgICAgICAgICAg ICAgIDs7CiAgICAgICAgICAgICotWzAxMjM0NTY3ODldKikKICAgICAgICAg ICAgICAgIDs7CiAgICAgICAgICAgICopCiAgICAgICAgICAgICAgICBpbnN0 YWxsLWluZm8gJGYgL3Vzci9zaGFyZS9pbmZvL2RpciB8fAogICAgICAgICAg ICAgICAgaW5zdGFsbC1pbmZvIC0tZW50cnk9IiogJCRmICgkZik6ICQkZiIg JCRmIC91c3Ivc2hhcmUvaW5mby9kaXIKICAgICAgICAgICAgICAgIDs7CiAg ICAgICAgZXNhYwogICAgZG9uZQpmaQo= --------------050800070705000703050607--