Order of activation/deactivation pre/post phases

Ryan Schmidt ryandesign at macports.org
Wed Feb 25 12:48:54 PST 2015


On Feb 25, 2015, at 2:38 PM, Artur Szostak wrote:

> The problem with downloading into destroot just like any other file is that one ends up with two copied of the data. That is fine for packages of a few MB. But for large number of demo data packages of a few GB each this surely is a bad idea.
> 
> As an example, have a look at the attached Portfile. After installing it I end up with a copy of the data under:
>  /opt/local/share/demodata/
> and a binary archive of equal size under:
>  /opt/local/var/macports/software/demodata/

You should Reply All, not just to me.

Yes, that's correct. For all installed ports, there will be a compressed archive in /opt/local/var/macports/software/, and when the port is active, an uncompressed copy of its files will be wherever they're supposed to be in /opt/local. That's just how MacPorts works.

There are discussions about ways MacPorts could be enhanced to minimize the impact of that, for example by using hfsCompression on the activated files, and I think some work was already done on that, but it is not committed and not in a released version of MacPorts:

https://trac.macports.org/ticket/36560




More information about the macports-dev mailing list