<div dir="ltr"><div dir="ltr">That worked well. Thanks, Chris.<div><br></div><div>Seems port selfupdate tries to recursively set the ownership of the $portdbpath/sources directory::</div><div><br></div><div><div><font face="monospace, monospace"> # set the MacPorts sources to the right owner</font></div><div><font face="monospace, monospace"> set sources_owner [file attributes [file join $portdbpath sources/] -owner]</font></div><div><font face="monospace, monospace"> ui_debug "Setting MacPorts sources ownership to $sources_owner"</font></div><div><font face="monospace, monospace"> try {</font></div><div><font face="monospace, monospace"> exec [macports::findBinary chown $macports::autoconf::chown_path] -R $sources_owner [file join $portdbpath sources/]</font></div><div><br></div><div>As for the git slowness. I figured it out. I have some code that runs a number of git calls each time my prompt is generated, in order to display information about (un)staged changes etc., and since the repo is so large, it was just taking a while to run these commands.</div></div><div><br></div><div>Thanks.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 9:09 PM Christopher Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk">jonesc@hep.phy.cam.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi,<div><br></div><div>I have a complete clone of the port tree, but just under my regular user account.</div><div><br></div><div><div>Oberon ~/Projects/MacPorts/ports > git status</div><div>On branch master</div><div>Your branch is up to date with 'origin/master'.</div><div><br></div><div>nothing to commit, working tree clean</div><div><br></div><div>then, in your macports sources.conf, just point it at this area as your new default.</div><div><br></div><div><div>> tail -4 /opt/local/etc/macports/sources.conf</div><div># If an rsync URL points to a .tar file, a signed .rmd160 must exist next to</div><div># it on the server and will be used to verify its integrity.</div><div>#<a>rsync://rsync.macports.org/release/tarballs/ports.tar</a> [default]</div><div><a>file:///Users/chris/Projects/MacPorts/ports</a> [default]</div></div><div><br></div><div>thats it. everything is automatic after that. ‘sudo port sync’ updates that area, as your regular user.</div><div><br></div><div>Regarding the git slowness though, no, I do not see anything like that. You are going to have to provide more details on what exactly you mean.</div><div><br></div><div>Chris</div><div><br></div><div><blockquote type="cite"><div>On 6 Sep 2018, at 8:31 pm, Bruce Johnson <<a href="mailto:bruce.johnson289@gmail.com" target="_blank">bruce.johnson289@gmail.com</a>> wrote:</div><br class="m_2110016153656670842Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>Just wondering how people have their ports tree set up for development?</div><div><br></div><div>I ask because I had cloned the macports-ports repo to:</div><div><br></div><div> /opt/local/var/macports/sources/<a href="http://github.com/macports/macports-ports" target="_blank">github.com/macports/macports-ports</a><br></div><div><br></div><div>then ran `sudo port selfupdate` and all the files then changed ownership to root. D'oh! After chowning the entire ports tree back to my user, I then figured I could use `port sync` to only update the ports tree and retain ownership, which worked well :-)</div><div><br></div><div>My remaining qualm is that git interactions are quite slow, which is probably just a function of the repo size, and therefore difficult to do anything about.</div><div><br></div><div>Would be good to hear how others are setup and whether you have any tips.</div><div><br></div><div>Thanks.</div><div><br></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div>