Ports tree setup for development
Christopher Jones
jonesc at hep.phy.cam.ac.uk
Thu Sep 6 20:09:29 UTC 2018
Hi,
I have a complete clone of the port tree, but just under my regular user account.
Oberon ~/Projects/MacPorts/ports > git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
then, in your macports sources.conf, just point it at this area as your new default.
> tail -4 /opt/local/etc/macports/sources.conf
# If an rsync URL points to a .tar file, a signed .rmd160 must exist next to
# it on the server and will be used to verify its integrity.
#rsync://rsync.macports.org/release/tarballs/ports.tar [default]
file:///Users/chris/Projects/MacPorts/ports [default]
thats it. everything is automatic after that. ‘sudo port sync’ updates that area, as your regular user.
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.
Chris
> On 6 Sep 2018, at 8:31 pm, Bruce Johnson <bruce.johnson289 at gmail.com> wrote:
>
> Hi,
>
> Just wondering how people have their ports tree set up for development?
>
> I ask because I had cloned the macports-ports repo to:
>
> /opt/local/var/macports/sources/github.com/macports/macports-ports <http://github.com/macports/macports-ports>
>
> 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 :-)
>
> 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.
>
> Would be good to hear how others are setup and whether you have any tips.
>
> Thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180906/da820973/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1910 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180906/da820973/attachment.bin>
More information about the macports-dev
mailing list