delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/17/15:02:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=gBV3JV+/AWBCKKM1l12G3Jb2u8fgW02tHGhVHPObggc
K5naPP0hSSoObUhQc+iOQTPXb5GB1+a3WZjWrenzPJdo4DFfT3zTGn13UpCPAm8c
+/Wo47325Sn5V6UDc6GcZpeo9WtMJD0gHF1uS4FnJLiOwfosbwKXGdRu8hEyoClM
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=I9adsTxRwTcUWffqWqlHkbMGRMk=; b=BR1wVAeBoxtG3yq/t
Kwc4pIFp8AY3ZAMbimyKTOD2cul6xrBANwkfXdAMAL8NiV4LXVRB40RJ0yIk4JGt
vIEWZ6baxdBTujKCxOmGkCCJLFLuAL76lRL1cuBB3YcJRVuD83WvHzcS3Soe9AZw
P6moGPXYfJRK2CoYEr48sStzjI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock04.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54E39E64.5060904@cornell.edu>
Date: Tue, 17 Feb 2015 15:02:44 -0500
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Texlive Package Problem
References: <54E38496 DOT 9020500 AT w5pny DOT com> <54E38E53 DOT 4020906 AT cornell DOT edu> <87h9uks6n1 DOT fsf AT Rainer DOT invalid> <54E39493 DOT 9090706 AT cornell DOT edu>
In-Reply-To: <54E39493.9090706@cornell.edu>
X-IsSubscribed: yes

On 2/17/2015 2:20 PM, Ken Brown wrote:
> On 2/17/2015 2:02 PM, Achim Gratz wrote:
>> Ken Brown writes:
>>> There's no problem here.  /var/lib/texmf/postinstall is used for the
>>> new streamlined TeX Live postinstall process.  The files in it are
>>> markers indicating that something needs to be done, and they are
>>> renamed with ".done" appended when it's done.  The same thing is done
>>> with normal postinstall files in /etc/postinstall, but I guess
>>> cygcheck knows about them.
>>
>> You could create the marker files in the normal postinstall phase via
>> script and remove them when you're done.  That way they wouldn't be
>> packaged and cygcheck would not complain if they're missing.  This is
>> however a lot less elegant unless cygport could be enhanced to provide
>> the boilerplate wrappers for that.
>>
>>> I don't know if there's something I should do to avoid this problem or
>>> if cygcheck just needs to be tweaked.
>>
>> That would be the other option, but I don't know how hard that would be.
>> If it's already matching on "/etc/postinstall" to do that deed then it
>> might be a small change to simply just check for
>> ".*/postinstall/<script>.done"
>
> It is already matching on /etc/postinstall; see
> winsup/utils/dump_setup.cc:check_package_files().  Corinna, what do you
> think?

How's this?

Index: dump_setup.cc
===================================================================
RCS file: /cvs/src/src/winsup/utils/dump_setup.cc,v
retrieving revision 1.28
diff -u -p -r1.28 dump_setup.cc
--- dump_setup.cc       16 Sep 2013 17:01:58 -0000      1.28
+++ dump_setup.cc       17 Feb 2015 20:00:40 -0000
@@ -396,7 +396,7 @@ check_package_files (int verbose, char *
           if (!directory_exists (verbose, filename, package))
             result = false;
         }
-      else if (!strncmp (filename, "etc/postinstall/", 16))
+      else if (strstr (filename, "/postinstall/"))
         {
           if (!file_exists (verbose, filename, ".done", package))
             result = false;

Ken

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

- Raw text -


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