Changes between Initial Version and Version 1 of howto/RunningMaster


Ignore:
Timestamp:
May 31, 2008, 4:37:05 AM (16 years ago)
Author:
blb@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/RunningMaster

    v1 v1  
     1[wiki:howto <- Back to the HOWTO section]
     2
     3= How to run MacPorts from the subversion trunk =
     4
     5 * Audience: Anyone who wants to test the latest features or not wait for an official release
     6 * Requires: Subversion (easy with 10.5, tricky with 10.4 since that creates a circular dependency)
     7
     8== Introduction ==
     9
     10There are times when some may want to run MacPorts from a version newer than the current stable release.  Maybe there's a new feature that you'd like to use, or it fixes an issue you've encountered, or you just like to be on the cutting edge.  This explains how to run completely from trunk, using only subversion to keep MacPorts up to date.
     11
     12== Installation ==
     13
     14=== Step 1: '''Checkout MacPorts trunk''' ===
     15
     16Pick a location to store MacPorts; for this HOWTO /opt/mports will be used (change to suit); run
     17{{{
     18cd /opt/mports
     19svn co http://svn.macports.org/repository/macports/trunk
     20}}}
     21which will create /opt/mports/trunk containing everything needed for MacPorts.
     22
     23=== Step 2: '''Build and Install MacPorts''' ===
     24
     25Build and install MacPorts with:
     26{{{
     27cd /opt/mports/trunk/base
     28./configure
     29make
     30sudo make install
     31make distclean
     32}}}
     33This will configure, build, and install MacPorts to the standard /opt/local location.
     34
     35== Configuration ==
     36
     37=== Step 3: '''Configure MacPorts to use port information from subversion''' ===
     38
     39Open /opt/local/etc/macports/sources.conf in a text editor.  Change the last line which should look like
     40{{{
     41rsync://rsync.macports.org/release/ports/
     42}}}
     43to point to the stuff you already checked out:
     44{{{
     45file:///opt/mports/trunk/dports
     46}}}
     47
     48Now MacPorts will look in the subversion checkout for port information.
     49
     50=== Step 4: '''Update PATH''' ===
     51
     52Edit your .profile (or .tshrc, or whatever is appropriate for you) to put {{{/opt/local/bin}}} in your PATH (and don't forget, if using bash, to export PATH too).  Whether you put this at the beginning or end of the PATH is your choice.
     53
     54== Keeping Up to Date ==
     55
     56=== '''Subersion update''' ===
     57
     58The official release of MacPorts has two commands {{{sync}}} and {{{selfupdate}}} 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:
     59{{{
     60cd /opt/mports/trunk
     61svn update
     62}}}
     63does 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.
     64
     65== Using MacPorts ==
     66At this point, most things should work like they do for anyone else; you will encounter some newer functionality that hasn't found its way to a release yet, and occasionally a bug.  If so, be sure to [http://trac.macports.org/newticket report the bug] when it happens.
     67
     68[wiki:howto <- Back to the HOWTO section]