Two different copies of MacPorts on the same system?

Blair Zajac blair at orcaware.com
Sun Jun 30 22:06:43 PDT 2013


On 6/30/13 10:02 PM, Vincent Habchi wrote:
> Dear fellow Macporters :)
>
> I was wondering if it were possible to have, at the same time, two install directories for MacPorts; e.g. /opt/local and something else.
>
> Why? Because as a maintainer, I am almost obliged to compile most of the ports with the universal variant; however, space on my 128 GiB SSD is rather scarce, and don’t use the 32-bit binaries anyway: compiling universal leads to a waste of resources. So the idea would be to have two separate directories, a "working" one, on the SSD (/opt/local) with only 64-bit binaries, possibly optimized (-march=native as in my previous post), and a "development" copy, somewhere on an external disk, with universal binaries, that I’d use, well, for development. Both would be fed out of the SVN tree.
>
> Possible or quixotist?

Yes, definitely.  We've had 3 different copies of MacPorts installed at 
the same time.

I always set --prefix=$PREFIX --with-tclpackage=$PREFIX/lib/tcl/macports 
to ensure that each copy installs all its files into its own prefix.

Blair


More information about the macports-dev mailing list