Combined build and destroot

Dan Ports dports at ambulatoryclam.net
Tue Dec 22 23:36:55 PST 2009


On Sat, Dec 19, 2009 at 10:20:05AM -0600, Ryan Schmidt wrote:
> Note that the destroot directory doesn't exist until the destroot phase begins, so if you wanted to install into it during the build phase, you'd have to create the destroot directory yourself. I'm not sure if this will impede MacPorts' own attempts to create the destroot directory (and the dozens of other directories inside it) but it might work ok, and I'd give it a try.

This turns out not to be a problem -- MacPorts just skips over any
directories that already exist in the destroot when populating it at
the beginning of the destroot phase.

So this is likely the way to go if anyone finds themselves with a
similar problem. Obviously the port's build script needs to create any
missing directories in the destroot, but anything with a non-trivial
build script probably knows how to do that.

Dan

-- 
Dan R. K. Ports                              <dports at ambulatoryclam.net>
Research Henchman
Massachusetts Institute of Technology                     <drkp at mit.edu>
Computer Science and Artificial Intelligence Lab    <drkp at csail.mit.edu>                            


More information about the macports-dev mailing list