[tex-live] Updating and anti-virus software on Windows

T T t34www at googlemail.com
Wed Aug 17 16:08:52 CEST 2011


On 16 August 2011 08:33, Rainer Göllner <rgoellner at gmx.de> wrote:
>
> Nice to hear that the problem really exists ;)

It exists and I realize how frustrating it must be for some people,
but until recently we had no idea what might be causing it.  I suspect
the problem happens when AV (or some other service) opens a file,
while tar tries to change its time stamp immediately after extraction
and this fails.  Depending on when exactly AV kicks in, failures will
happen at random.

I've just committed a patch (see below), which will hopefully make the
problem go away.  It should be available from tomorrow in tlcritical
(for testing knowledgeable folks can simply replace
tlpkg/TeXLive/TLUtils.pm with the one from our repository or patch
this file manually).

I would appreciate reports whether this patch actually solves the
problem.  The simplest way to test it would be to perform trial
installation with unpatched and then patched TLUtils.pm and see if the
latter still fails at random.

Cheers,

Tomek


Index: tlpkg/TeXLive/TLUtils.pm
===================================================================
--- tlpkg/TeXLive/TLUtils.pm    (revision 23586)
+++ tlpkg/TeXLive/TLUtils.pm    (working copy)
@@ -2095,7 +2095,9 @@
   my $cwd = cwd();
   chdir($targetdir) || die "chdir($targetdir) failed: $!";

-  if (system($tar, "xf", $tarfile) != 0) {
+  # on w32 don't extract file modified time, because AV soft can open
+  # files in the mean time causing time stamp modification to fail
+  if (system($tar, win32() ? "xmf" : "xf", $tarfile) != 0) {
     tlwarn("untar: untarring $tarfile failed (in $targetdir)\n");
     $ret = 0;
   } else {



More information about the tex-live mailing list