Ticket #12187: guide-quick-chown.patch

File guide-quick-chown.patch, 1.6 KB (added by lambda@…, 17 years ago)

Description of how to deal with permission issues

  • xml/portfiles/quick.xml

     
    3636      MacPorts</link> sections of this guide describes the process in
    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/db/mports/build</filename> and
     43      <filename>${prefix}/var/db/mports/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      screw 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/db/mports/build</userinput> and <userinput>chown
     53      -R username ${prefix}/var/db/mports/distfiles</userinput>.</para>
     54
    3955    <para>Since you're interested in writing a
    4056      <filename>Portfile</filename>, you should invoke the
    4157      <command>port</command> with the <option>-v</option> (verbose
    4258      output) and the <option>-d</option> (debugging option) switches.
    4359      This will display useful messages that are usually suppressed
    4460      while running MacPorts.</para>
     61
    4562  </sect1>
    4663
    4764  <sect1 id="basics">