<div dir="ltr"><div dir="ltr">On Fri, Jun 17, 2022 at 7:52 PM Karl Berry <<a href="mailto:karl@freefriends.org">karl@freefriends.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    Could there be an general option "never remove forcibly" or<br>
    "always reinstall forcibly"? <br>
<br>
There could be. The problem is that occasionally packages are renamed,<br>
which amounts to removal of the old package and addition of the new one,<br>
which will end in a bad situation if the removal isn't done.<br>
<br>
That doesn't happen often, though. Clearly the unanticipated removal of<br>
perfectly-fine packages is a worse and more common outcome on Windows.<br>
<br>
I wonder if it's possible to somehow override the fail-if-a-file-is-open<br>
behavior in our internal tar used on Windows (Master/source/tar-w32.*).<br>
Or at least detect it. That's the fundamental source of the problem.</blockquote><div><br></div><div>Yes, and has different implications if the open file is not the same version</div><div>as the one the tar archive.  Keeping the old package seems reasonable, <br></div><div>but it is easy to miss a warning message for one package when installing <br></div><div>dozens, so it could be helpful to produce a summary of the installation:</div><div><br></div><div>N packages updated</div><div>M packages not updated: download problem<br></div><div>
<div>O packages not updated: overwriting open file(s) not allowed on Windows<br></div><div>
<div>P packages not updated< <due to reason ...></div><div><br></div><div>For details see: <location of log file></div><div><br></div>

</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>[...]<br>
    In any case all tar versions I could find in windows and in texlive<br>
    don't know a --warning option.<br>
<br>
It's only in GNU tar :(.  -k<br>
</blockquote></div><div><br></div><div>GNU tar is available for Windows from Cygwin and Msys2.  Windows 10 now <br></div><div>provides BSD tar.  <br></div><div><br></div><div>The current set of POSIX-like utilities provided by TeX Live has been a source of <br></div><div>confusion.  I assume Microst's Universal CRT will require changes.  It might be <br></div><div>worth looking at the Msys2 toolchain used by the R-project. They provide Rtools40 <br></div><div>which allows users to build packages on Windows, but official packages are built</div><div>using MXE <<a href="https://mxe.cc/">https://mxe.cc/</a>> cross compilers on linux.</div><div><br></div><div>R-project has been relatively successful at providing uniform user experience <br></div><div>across POSIX-like and Windows platforms.  For non-Western languages, <br></div><div>UCRT helps reduce differences between POSIX-like and Windows systems.<br></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>George N. White III<br><br></div></div></div></div>