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

MacPorts noreply at macports.org
Fri May 5 21:14:42 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 catap):

 Replying to [comment:23 ryandesign]:
 > 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?

 I've added:
 {{{
 depends_build port:gnutar

 post-destroot {
     system -W ${destroot} "${prefix}/bin/gtar -cvf - . 2>/dev/null | wc"
     system -W ${destroot} "/usr/bin/tar -cvf - . 2>/dev/null | wc"
 }
 }}}

 and have an output:
 {{{
 DEBUG: Executing proc-post-org.macports.destroot-destroot-1
 DEBUG: system -W /opt/local/var/macports/build
 /_Users_runner_work_macports-ports_macports-
 ports_ports_math_pari/pari/work/destroot: /opt/local/bin/gtar -cvf - .
 2>/dev/null | wc
   156802  971295 13424640
 DEBUG: system -W /opt/local/var/macports/build
 /_Users_runner_work_macports-ports_macports-
 ports_ports_math_pari/pari/work/destroot: /usr/bin/tar -cvf - .
 2>/dev/null | wc
   141230  797436 6000640
 }}}

 => it doesn't change anything.

 Thus, run two tars haven't fix or overstep an issue.

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


More information about the macports-tickets mailing list