Texlive Package Problem

Ken Brown kbrown@cornell.edu
Tue Feb 17 21:12:00 GMT 2015


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



More information about the Cygwin mailing list