Changes between Initial Version and Version 1 of Ticket #65182


Ignore:
Timestamp:
May 15, 2022, 6:53:33 AM (2 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

I don't see how your suggestion could be correct. The documentation is correct as written. sources.conf must point to the place where your ports tree is, such as a clone of macports-ports. It makes no sense to point it at a clone of macports-base.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #65182

    • Property Component changed from ports to guide
  • Ticket #65182 – Description

    initial v1  
    66
    77In
    8 "(Optional) Configure MacPorts to use port information from Git
     8> 3. (Optional) Configure MacPorts to use port information from Git
     9>
     10> This step is useful if you want to do port development. Check out the ports tree from git:
     11>
     12> {{{
     13> $ cd /opt/mports
     14> $ git clone https://github.com/macports/macports-ports.git
     15> }}}
     16>
     17> Then open /opt/local/etc/macports/sources.conf in a text editor. The last line should look like this:
     18>
     19> {{{
     20> rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
     21> }}}
     22>
     23> Change it to point to the working copy you checked out:
     24>
     25> {{{
     26> file:///opt/mports/macports-ports [default]
     27> }}}
     28>
     29> Now MacPorts will look for portfiles in the working copy and use Git instead of rsync to update your ports tree.
    930
    10 This step is useful if you want to do port development. Check out the ports tree from git:
     31`file:///opt/mports/macports-ports [default]` is wrong because the line up have been changed, I suppose.
     32The right content for this /opt/local/etc/macports/sources.conf is, at the end of the file:
     33`file:///opt/mports/macports-base/ [default]`
    1134
    12 $ cd /opt/mports
    13 $ git clone https://github.com/macports/macports-ports.git
    14 Then open /opt/local/etc/macports/sources.conf in a text editor. The last line should look like this:
    15 
    16 rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
    17 Change it to point to the working copy you checked out:
    18 
    19 file:///opt/mports/macports-ports [default]
    20 Now MacPorts will look for portfiles in the working copy and use Git instead of rsync to update your ports tree.
    21 "
    22 
    23 file:///opt/mports/macports-ports [default] is wrong because the line up have been changed, I suppose.
    24 The right content for this /opt/local/etc/macports/sources.conf is, at the end of the file:
    25 file:///opt/mports/macports-base/ [default]
    26 
    27 macports-base is good, macports-ports was wrong for me.
     35`macports-base` is good, `macports-ports` was wrong for me.
    2836
    2937Hope it helps,