[MacPorts] #64775: xar @1.8.0.452: No longer supports extracting to stdout

MacPorts noreply at macports.org
Thu Mar 10 11:26:10 UTC 2022


#64775: xar @1.8.0.452: No longer supports extracting to stdout
-------------------------+-------------------------
  Reporter:  ryandesign  |      Owner:  Schamschula
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  xar         |
-------------------------+-------------------------

Comment (by ryandesign):

 Thanks!

 You can create archives with `xar` for testing, for example:

 {{{
 $ echo hello world > test.txt
 $ xar -cf test.xar test.txt
 }}}

 To extract to stdout:

 {{{
 $ xar -xOf test.xar
 }}}

 With mackyle's xar @1.6.1_6 the result is:

 {{{
 hello world
 }}}

 With Apple's xar @1.8.0.452_3 the result is:

 {{{
 --to-stdout requires a newer xar library
 }}}

 Looks like the whole concept of having
 [https://github.com/mackyle/xar/commit/ba57887b34af69e786b35b34762ab06f17135e2b
 different libxar library versions with different capabilities] was added
 by mackyle too.

 Since we know the library and program are provided as a matched set by the
 port, we could just dispense with the library version checking. When I do
 that, the result of trying to extract to stdout is that the `-O` flag is
 silently ignored; the file test.txt is created in the current directory.

 I think the commit I mentioned at the beginning was only the part that
 modified the `xar` command line program to be able to use the to-stdout
 capability of the libxar library; we still need to patch that support into
 the library. I'll see if I can dig it up and send you the patch.

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


More information about the macports-tickets mailing list