Changes between Version 6 and Version 7 of howto/RunningMaster


Ignore:
Timestamp:
Jul 25, 2008, 12:50:08 AM (16 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/RunningMaster

    v6 v7  
    1212== Installation ==
    1313
    14 === Step 1: '''Checkout MacPorts trunk''' ===
     14=== Step 1: '''Check out MacPorts trunk''' ===
    1515
    16 Pick a location to store MacPorts; for this HOWTO {{{/opt/mports}}} will be used (change to suit); run
     16Pick a location to store a working copy of the MacPorts code. For this HOWTO {{{/opt/mports}}} will be used (change to suit). Run:
    1717{{{
     18mkdir -p /opt/mports
    1819cd /opt/mports
    1920svn co http://svn.macports.org/repository/macports/trunk
    2021}}}
    21 which will create {{{/opt/mports/trunk}}} containing everything needed for MacPorts.
     22This will create {{{/opt/mports/trunk}}} containing everything needed for MacPorts.
    2223
    2324=== Step 2: '''Build and Install MacPorts''' ===
    2425
    25 Build and install MacPorts with:
     26Build and install MacPorts:
    2627{{{
    2728cd /opt/mports/trunk/base
    28 ./configure
     29./configure --enable-readline
    2930make
    3031sudo make install
     
    3738=== Step 3: '''Configure MacPorts to use port information from subversion''' ===
    3839
    39 Open {{{/opt/local/etc/macports/sources.conf}}} in a text editor.  Change the last line which should look like
     40Open {{{/opt/local/etc/macports/sources.conf}}} in a text editor.  The last line which should look like this:
    4041{{{
    4142rsync://rsync.macports.org/release/ports/
    4243}}}
    43 to point to the stuff you already checked out:
     44Change it to point to the working copy you checked out:
    4445{{{
    4546file:///opt/mports/trunk/dports
    4647}}}
    4748
    48 Now MacPorts will look in the subversion checkout for port information.
     49Now MacPorts will look for portfiles in the working copy.
    4950
    5051=== Step 4: '''Update PATH''' ===
     
    5859=== '''Subversion update''' ===
    5960
    60 The official release of MacPorts has two commands {{{sync}}} and {{{selfupdate}}}, used to update all the port information ({{{sync}}}) and to update the base MacPorts installation when necessary ({{{selfupdate}}}).  Instead of using these, update the subversion files:
     61MacPorts has two commands used to keep itself current: {{{sync}}}, used to update the ports tree, and {{{selfupdate}}}, to update the MacPorts base code. When compiling MacPorts yourself instead of using a released MacPorts package, you can continue to use {{{sync}}} to update the ports tree, or you can update the working copy manually like this:
    6162{{{
    62 cd /opt/mports/trunk
    63 svn update
     63svn update /opt/mports/trunk
    6464}}}
    65 does what {{{port sync}}} would do.  You do need to update the base install manually however, when and/or if needed, with the same commands listed in step 2 above.
     65You should not use {{{selfupdate}}} anymore because it would downgrade you to the latest released version of MacPorts. Instead you should {{{svn update}}} as above and then repeat the steps listed in step 2 above.
    6666
    6767== Using MacPorts ==
     
    7777Error: Status 1 encountered during processing.
    7878}}}
    79 It was never really intended to be used in portfiles, and it got removed because of it was considered confusing for it's side-effects. See #12914 for a few more details and Ryan Schmidt's explanation on the dev list [http://lists.macosforge.org/pipermail/macports-dev/2008-July/005652.html in this mail]. If you encounter this problem with a port, please file a bug against this port which still uses {{{cd}}}.
     79It was never really intended to be used in portfiles, and it got removed because the side-effects of using it can be confusing. See #12914 for more details and Ryan Schmidt's explanation on the dev list [http://lists.macosforge.org/pipermail/macports-dev/2008-July/005652.html in this mail]. If you encounter this problem with a port, please file a bug against this port which still uses {{{cd}}}.
    8080
    8181[wiki:howto <- Back to the HOWTO section]