[MacPorts] #67336: BSD tar can create corrupted archives on Catalina, Big Sur, Monterey, Ventura

MacPorts noreply at macports.org
Fri May 5 03:25:58 UTC 2023


#67336: BSD tar can create corrupted archives on Catalina, Big Sur, Monterey,
Ventura
---------------------+-------------------------------------------------
  Reporter:  catap   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.8.1
Resolution:          |   Keywords:  catalina, bigsur, monterey, ventura
      Port:          |
---------------------+-------------------------------------------------

Comment (by ryandesign):

 Replying to [comment:21 ryandesign]:
 > if there is some code that GNU tar is running that avoids the issue,
 such as perhaps some preprocessing on all the files that it will add to
 the archive that coincidentally causes the disk cache to figure itself
 out, maybe we can use similar code in MacPorts base to avoid the need for
 either `purge` or `sleep`.

 If this code consistently shows you the problem:

 Replying to [ticket:67336 catap]:
 > {{{
 > post-destroot {
 >     system -W ${destroot} "/usr/bin/tar -cvf - . 2>/dev/null | wc"
 >     system -W ${destroot} "${prefix}/bin/gtar -cvf - . 2>/dev/null | wc"
 > }
 > }}}

 then you can test this theory by reversing the order so that you call GNU
 tar first, then BSD tar. Is the BSD tar output then correct or is it still
 wrong?

-- 
Ticket URL: <https://trac.macports.org/ticket/67336#comment:23>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list