[MacPorts] Notification: pmagrath modified

MacPorts noreply at macports.org
Wed Aug 6 12:52:17 PDT 2008



Changed page "pmagrath" by pmagrath at macports.org from 79.97.238.254*
Page URL: <http://trac.macports.org/wiki/pmagrath>
Diff URL: <http://trac.macports.org/wiki/pmagrath?action=diff&version=14>
Revision 14
Comment: Status update.

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: pmagrath
=========================================================================
--- pmagrath (version: 13)
+++ pmagrath (version: 14)
@@ -31,7 +31,9 @@
 ''I've added the following new options to the Portfile format: patch.asroot, build.asroot, configure.asroot, destroot.asroot, and install.asroot. These take a boolean (yes/no) value. The default for all but install.asroot is no. install.asroot's default value is yes.''
 
 ==== Privilege Escaltion ====
-I would feel that the best behavior for if MacPorts is requested to perform a privileged operation for a port, if it currently has no privileged access would be for the user to be given the choice of elevating privileges (by evoking sudo), installing in a fakeroot or aborting. The complications are that there is currently no way of knowing whether a port needs privileges, creating a fakeroot mechanism, cleanly elevating and de-elevating privileges.
+I would feel that the best behavior for if MacPorts is requested to perform a privileged operation for a port, if it currently has no privileged access would be for the user to be given the choice of elevating privileges (by evoking sudo), or aborting. 
+
+''This has now been largely implemented. A special flag is now thrown ($errorisprivileges) when a port install (or other action) fails due to insufficient privileges. MacPorts will then assemble a sudo command to complete the action with and execute it, prompting the user to enter his/her password to do so.''
 
 ==== MacPorts Group ====
 It would be a good idea to create an additional group macports which users are allowed to run any port command. So /opt/local would be owned by the group macports with g+rw. (Gentoo's portage does something like this.)

-------8<------8<------8<------8<------8<------8<------8<------8<--------


* The IP shown here might not mean anything if the user is behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/
added your email address to be notified of changes on MacPorts.
If it was not you, please report to http://www.macports.org/.


More information about the macports-changes mailing list