[MacPorts] #10879: RFE: apache2 and other ports won't install as non-root users
MacPorts
noreply at macports.org
Tue May 19 16:47:23 PDT 2009
#10879: RFE: apache2 and other ports won't install as non-root users
-----------------------------------+----------------------------------------
Reporter: plambert@… | Owner: imajes@…
Type: enhancement | Status: assigned
Priority: Normal | Milestone: MacPorts Future
Component: base | Version:
Keywords: |
-----------------------------------+----------------------------------------
Comment(by www.macports.org@…):
I have been having a similar problem installing dbus as a non root user
since it also installs StartupItems.
Editing DESTROOT/share/macports/Tcl/port1.0/portstartupitem.tcl and the
dbus Portfile fixed it.
The changes are simple:
In portstartupitem.tcl, replace all instances of "root" by
"${install.user}" and all instances of "wheel" by "${install.group}".
In the dbus portfile, same process.
Note that there's a misspelling at some point : "error" is spelled
"erorr".
This allows dbus to properly install the Startup Items in the /User/<my-
user-name>/Library/StartupItems folders. They run perfectly when
activated. Before that, I could only install dbus by selecting the no_root
and no_startupitems variants.
However, it is possible that these changes cause a standard MacPorts
installation (ie, as root) to break, since the installation user won't be
root but most likely a simple administrator.
I'll let the experts judge if that's a problem.
--
Ticket URL: <http://trac.macports.org/ticket/10879#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list