/opt/local/macports/software

René J.V. Bertin rjvbertin at gmail.com
Mon Jan 19 17:15:24 PST 2015


On Monday January 19 2015 17:21:14 Ryan Schmidt wrote:

> Spotlight would find items in the /opt/local/var/macports/software directory. So when you were trying to launch an application in /Applications/MacPorts, it might find the copy in /opt/local/var/macports/software instead, which might not work.

That was before macports/software contained tarballs, I presume.

> That would be a possible solution for the Spotlight issues but not for the Time Machine issues.

Why not for Time Machine? It can't (or rather, couldn't) make duplicate backups if one of the 2 sources is in an excluded directory, yes?

> I also do not know what would happen if a user who already has ports installed with bz2 archives suddenly changes the archive format to xz (or, more generally, makes any change to the archive format). Would MacPorts still know how to find the existing archive and remove it when a port is uninstalled or upgraded?

I suppose there is normally only 1 tarball per installed version or variant, so the search algorithm could omit the compressor extension from the search pattern. 

> > What parts of ${prefix}/var/macports are used during normal operation, so as long as you don't use the port command?
> 
> None. That directory is for the port command to use, and nobody else.

So it could indeed be on a removable/external drive that's mounted only for port maintenance.

R


More information about the macports-users mailing list