-j2 default and sudo usage

Toby Peterson toby at apple.com
Thu Jul 30 22:36:16 PDT 2009


On Jul 30, 2009, at 7:39 AM, Anil Madhavapeddy wrote:

> Also, how do folks typically do non-root builds to ensure stuff  
> isn't sneaking out of the fakeroot? I've chowned a bunch of  
> directories to my user, and manually invoking fakeroot works; it  
> would be nice if sudo were automatically called when required (e.g.  
> for install).  Is there a knob for this, or do you generally just  
> invoke targets manually and add sudo when required?

We do attempt to drop privileges when possible, but ports may still  
end up writing to incorrect places during certain phases. If I'm  
feeling particularly paranoid, I do the following:

port -d destroot
<look for anything bogus>
sudo port -d install

- Toby


More information about the macports-dev mailing list