[MacPorts] #36560: Use hfsCompression

MacPorts noreply at macports.org
Sat Jan 3 06:01:27 PST 2015


#36560: Use hfsCompression
--------------------------+----------------------
  Reporter:  mfeiri@…     |      Owner:  mfeiri@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:  2.1.99
Resolution:               |   Keywords:  haspatch
      Port:               |
--------------------------+----------------------

Comment (by mfeiri@…):

 Version 3 of this patch now uses bsdtar instead of ditto, e.g. as provided
 by the libarchive port. Integration follows the example of lbzip2 and
 pbzip2 in portimage.tcl (thanks raim for this hint). For maximal
 robustness an actual feature test is performed. If bsdtar breaks or is
 unavailable or does not support hfsCompression, everything transparently
 falls back to the regular tar utility.

 To give some motivation again: My installation of macports is 18GB in size
 (according to Finder Info), but only takes up 10GB of space on my SSD
 (according to "du -sh"). With this new patch the impact on unarchiving
 time is now down to around 2x versus 10x previously (measured with "time
 sudo port activate git" on a 2011 MBP).

 PS: (Un)archiving and (de)compression happens in various places in
 macports. This patch only considers portimage.tcl and does not try to
 introduce configuration infrastructure for this feature.

-- 
Ticket URL: <https://trac.macports.org/ticket/36560#comment:20>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list