<div><div><a href="https://github.com/macports/macports-base/pull/76" target="_blank">https://github.com/macports/macports-base/pull/76</a><br><div><br></div><div>During the extract-from-package step, if bsdtar exists **and** supports --hfsCompression, use the flag during the extraction.</div><div><br></div><div>To test:</div><div> * make sure libarchive is installed</div><div> * check disk usage</div><div> * deactivate & re-activate a large port (llvm / gcc / clang)</div><div> * check disk usage again. If everything is working, you should have more space available.</div><div><br></div><div>I've been using it for months and have been very happy with the space savings (especially on packages with lots of text files. *cough* compilers *cough*.)</div><div><br></div><div>It is slower to extract, but I don't notice any slowdown after the that point. Most Apple-installed tools are compressed, from the spot-checking I’ve done.</div><div><br></div><div>Downsides:</div><div> * Doesn't detect if the compression will be lost (and therefore pointless work/time) when moving for activation. This is the case if different mountpoints are involved for the extraction directory and the final activation locations. Scrapped detection of this as corner case with significantly increased complexity. (And it’s not broken in the corner case, just burns some extra cycles during extraction.)</div><div> * Slower to extract than when not in use -- shouldn't be a surprise.</div><div><br></div><div>Thanks,</div><div> - Eric</div></div>
</div>