Changes between Initial Version and Version 1 of Ticket #52000, comment 12


Ignore:
Timestamp:
Mar 30, 2018, 7:21:50 PM (7 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52000, comment 12

    initial v1  
    11> Recent versions of OS X provide a copy of liblzma and libarchive but there doesn't seem to be an OS copy of the xz executable. MacPorts currently handles decompression by running a separate executable. OS X's tar command links with libarchive so it should understand xz; we would just have to change MacPorts to decompress and extract the tarball as a single operation instead of two operations as it is currently.
    22
    3 Just checked and seems lzma support in libarchive is added in 10.9. libarchive-29, which is introduced in 10.9, has HAVE_LZMA_H in its config.h [2], while this is not the case for libarchive-25.1 in 10.8 [1]. If MacPorts aims to support xz for all OS X versions, bundling xz is simpler.
     3Just checked and seems lzma support in libarchive is added in 10.9. libarchive-29, which is introduced in 10.9, has HAVE_LZMA_H in its config.h ![2], while this is not the case for libarchive-25.1 in 10.8 ![1]. If MacPorts aims to support xz for all OS X versions, bundling xz is simpler.
    44
    5 As the first step to enable xz support in MacPorts, I created a simple patch that bundles xz-5.2.3 into macports-base [3]. It creates a binary /opt/local/libexec/macports/bin/xz, which can be used for creating and extracting xz-based binary packages.
     5As the first step to enable xz support in MacPorts, I created a simple patch that bundles xz-5.2.3 into macports-base ![3]. It creates a binary /opt/local/libexec/macports/bin/xz, which can be used for creating and extracting xz-based binary packages.
    66
    7 [1] https://opensource.apple.com/source/libarchive/libarchive-25.1/config.h.auto.html
     7![1] https://opensource.apple.com/source/libarchive/libarchive-25.1/config.h.auto.html
    88
    9 [2] https://opensource.apple.com/source/libarchive/libarchive-29/config.h.auto.html
     9![2] https://opensource.apple.com/source/libarchive/libarchive-29/config.h.auto.html
    1010
    11 [3] https://github.com/yan12125/macports-base/tree/bundle-xz
     11![3] https://github.com/yan12125/macports-base/tree/bundle-xz