Changes between Initial Version and Version 1 of Ticket #52000, comment 12
- Timestamp:
- Mar 30, 2018, 7:21:50 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #52000, comment 12
initial v1 1 1 > 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. 2 2 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.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. 4 4 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.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. 6 6 7 [1] https://opensource.apple.com/source/libarchive/libarchive-25.1/config.h.auto.html7 ![1] https://opensource.apple.com/source/libarchive/libarchive-25.1/config.h.auto.html 8 8 9 [2] https://opensource.apple.com/source/libarchive/libarchive-29/config.h.auto.html9 ![2] https://opensource.apple.com/source/libarchive/libarchive-29/config.h.auto.html 10 10 11 [3] https://github.com/yan12125/macports-base/tree/bundle-xz11 ![3] https://github.com/yan12125/macports-base/tree/bundle-xz