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

MacPorts noreply at macports.org
Wed May 10 13:35:40 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 mascguy):

 Replying to [comment:26 ryandesign]:
 > GNU tar has support for special handling of sparse files] too. But
 whereas libarchive seems to do this by default, GNU tar doesn't unless you
 use the `--sparse` flag. You could test again with `${prefix}/bin/gtar
 -cvf - --sparse . 2>/dev/null | wc` and see if that also shows the
 problem.

 If that works, my vote would be to use GNU tar, rather than the call to
 `purge`. (I suppose it would be less wonky if the latter is baked into
 base. Even then, it feels a bit... well... hacky...

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


More information about the macports-tickets mailing list