Changeset 39296


Ignore:
Timestamp:
Aug 16, 2008, 1:46:50 PM (12 years ago)
Author:
pmagrath@…
Message:

Add to ChangeLog all changes brought in by the branch. Change default of install.asroot to false. Update readme.

Location:
branches/gsoc08-privileges/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc08-privileges/base/ChangeLog

    r39178 r39296  
    66
    77Unreleased:
     8
     9    - MacPorts now performs fetch, extract, patch, configure and build in a
     10      user rather than system owned location. By default, this is
     11      ~/.macports/opt. This allows MacPorts to do all but the install of the
     12      port without root privileges. (gsoc08-privileges)
     13
     14    - MacPorts now automatically drops privileges whenever possible so as to
     15      avoid running as root whenever possible. (gsoc08-privileges)
     16
     17    - MacPorts will prompt for the root password if you attempt to install a
     18      port into the /opt hierarchy and did not start MacPorts with sudo. It
     19      will not do so however until the install stage. The fetch, extract,
     20      patch, configure and build will proceed first under the privileges
     21      MacPorts is started with. (gsoc08-privileges)
     22
     23    - The Portfile format has a number of new boolean attributes to indicate
     24      when an action should or should not be run with root privileges:
     25      'patch.asroot', 'build.asroot', 'configure.asroot', 'destroot.asroot',
     26      and 'install.asroot'. The default for all is "no". If the prefix folder
     27      (by default /opt/local) is not writable, MacPorts will attempt to
     28      elevate privileges to root for the install phase. (gsoc08-privileges)
     29
     30    - A "make group" command has been added to the Makefile and a
     31      "--with-shared-directory" switch to the configure script. Running "make
     32      group" will create a macports group. "--with-shared-directory" will let
     33      let the group specified by "--with-install-group" have full read write
     34      access to the /opt/local hierarchy. This will allow users who are
     35      members of the new macports group to have full write permissions to /opt
     36      and its subfolders, and hence to install ports which only affect that
     37      hierarchy to install those ports without requiring root privileges.
     38      (gsoc08-privileges)
     39
     40    - A switch called "--with-no-root-privileges" has been added for use by
     41      user installing MacPorts for their own use only. An example configure
     42      command would be "./configure
     43      --prefix=/Users/{your-user-name-here}/.macports/opt
     44      --with-no-root-privileges" (gsoc08-privileges)
     45
    846    - Ruby port group now accepts a new (optional) last parameter for the
    947      ruby.setup command, "implementation". It is "ruby" by default, and
     
    1149      possibly support still other rubys in the future. (#15912, febeling
    1250      in 38683)
    13        
     51   
    1452    - Don't use build.nice for complex build.cmd commands (#16091)
    1553
  • branches/gsoc08-privileges/base/README.txt

    r39215 r39296  
    30303) MacPorts will prompt for the root password if you attempt to install a port into the /opt hierarchy and did not start MacPorts with sudo. It will not do so however until the install stage. The fetch, extract, patch, configure and build will proceed first under the privileges MacPorts is started with.
    3131
    32 4) The Portfile format has a number of new boolean attributes to indicate when an action should or should not be run with root privileges: 'patch.asroot', 'build.asroot', 'configure.asroot', 'destroot.asroot', and 'install.asroot'. The default for all is "no" except for 'install.asroot', which defaults to "yes".
     324) The Portfile format has a number of new boolean attributes to indicate when an action should or should not be run with root privileges: 'patch.asroot', 'build.asroot', 'configure.asroot', 'destroot.asroot', and 'install.asroot'. The default for all is "no". If the prefix folder (by default /opt/local) is not writable, MacPorts will attempt to elevate privileges to root for the install phase.
    3333
    34345) MacPorts now supports two new, additional, installation options. Each of these is a distinct alternative to the current standard installation option.
  • branches/gsoc08-privileges/base/src/port1.0/portinstall.tcl

    r38800 r39296  
    4949
    5050# Set defaults
    51 default install.asroot yes
     51default install.asroot no
    5252
    5353set_ui_prefix
     
    5555proc install_start {args} {
    5656        global UI_PREFIX portname portversion portrevision variations portvariants
    57         global install.asroot
     57        global install.asroot prefix
    5858        ui_msg "$UI_PREFIX [format [msgcat::mc "Installing %s @%s_%s%s"] $portname $portversion $portrevision $portvariants]"
    5959       
    6060        # start gsoc08-privileges
    6161        if { [tbool install.asroot] } {
    62         # if port isn't marked as not needing root     
     62                # if port is marked as needing root     
     63                elevateToRoot "install"
     64        } elseif { ![file writable $prefix] } {
     65                # if install location is not writable, need root privileges to install
    6366                elevateToRoot "install"
    6467        }
Note: See TracChangeset for help on using the changeset viewer.