[90075] trunk/base/src/macports1.0/macports.tcl

Joshua Root jmr at macports.org
Wed Feb 22 02:17:30 PST 2012


On 2012-2-22 07:08 , Dan Ports wrote:
> On Wed, Feb 22, 2012 at 02:39:42AM +1100, Joshua Root wrote:
>> And why did Dan set the ownership in the first place? I can see that
>> making sense in the per-port dirs but not really in the global one.
> 
> Without it, the plist had 0600 permissions and it was owned by root, so
> xcodebuild couldn't access it once we dropped privileges. Changing the
> permissions works to.
> 
> Speaking of which, do we actually need to create the plist in both the
> global and per-port home directories? It looks like only the global one
> is actually used, regardless of $HOME. (This surprised me, I figured
> it'd be the other way around.)

Yeah, it turns out xcodebuild doesn't care about $HOME and just asks
DirectoryServices or something. So in fact there's no point copying the
plist at all unless we're root, and no point putting it in the per-port
home dirs.

- Josh


More information about the macports-dev mailing list