Changeset 26521 for trunk/doc


Ignore:
Timestamp:
Jun 27, 2007, 4:35:33 PM (12 years ago)
Author:
jmpp@…
Message:

Advice on setting appropriate permissions on the ${prefix}/var/macports/{distfiles,build} dirs for quick testing a still in development Portfile.
Thanks to Brian Campbell <lambda@…> for the patch! Closes #12187.

Also make it clear that you only need -d to debug the testing, not -v *and* -d.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/guide/xml/portfiles/quick.xml

    r26404 r26521  
    3737      detail. </para>
    3838
     39    <para>In order for these commands to work, you're going to need
     40      permission to write to certain areas of your MacPorts tree. You
     41      need to be able to write
     42      to <filename>${prefix}/var/macports/build</filename> and
     43      <filename>${prefix}/var/macports/distfiles</filename>. You
     44      could run all of these commands as a superuser (prefix the
     45      commands with <command>sudo</command>), but you might
     46      accidentally install a broken package that way, or otherwise
     47      damage up your MacPorts installation. Another option is to change
     48      the owner of just those directories to your user, so you can
     49      write to those directories but not your whole
     50      <filename>${prefix}</filename> tree. To do this,
     51      run <userinput>chown username
     52      ${prefix}/var/macports/build</userinput> and <userinput>chown
     53      -R username ${prefix}/var/macports/distfiles</userinput>.</para>
     54
    3955    <para>Since you're interested in writing a
    4056      <filename>Portfile</filename>, you should invoke the
    41       <command>port</command> with the <option>-v</option> (verbose
    42       output) and the <option>-d</option> (debugging option) switches.
    43       This will display useful messages that are usually suppressed
     57      <command>port</command> with the <option>-d</option> (debugging option)
     58      switch. This will display useful messages that are usually suppressed
    4459      while running MacPorts.</para>
     60
    4561  </sect1>
    4662
Note: See TracChangeset for help on using the changeset viewer.