[MacPorts] #48045: dbus "no_root" fails to install

MacPorts noreply at macports.org
Sun Jun 14 02:41:47 PDT 2015


#48045: dbus "no_root" fails to install
---------------------------+------------------------
  Reporter:  ocroquette@…  |      Owner:  mcalhoun@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.3.3
Resolution:                |   Keywords:
      Port:  dbus          |
---------------------------+------------------------
Changes (by ryandesign@…):

 * cc: mcalhoun (removed)
 * owner:  macports-tickets@… => mcalhoun@…


Old description:

> Command: "port install no_root", with the target directory in my user
> directory
>
> The first error is:
>
> error renaming
> "/Users/user/bin/macports/var/macports/software/dbus/mpextractNk3f1e8H/Library/LaunchAgents/org.freedesktop
> .dbus-session.plist" to "/Library/LaunchAgents/org.freedesktop.dbus-
> session.plist": permission denied
>
> A workaround is to set startupitem_install=no in macports.conf
>
> The second error is:
> :debug:activate Backtrace: could not set group for file
> "/Users/user/bin/macports/var/run/dbus": not owner
>
> (at that point however, the port is already activated, so it's possible
> to install other ports that depend directly or indirectly on dbus)

New description:

 Command: "`port install dbus +no_root`", with the target directory in my
 user directory

 The first error is:

 {{{
 error renaming
 "/Users/user/bin/macports/var/macports/software/dbus/mpextractNk3f1e8H/Library/LaunchAgents/org.freedesktop
 .dbus-session.plist" to "/Library/LaunchAgents/org.freedesktop.dbus-
 session.plist": permission denied
 }}}

 A workaround is to set `startupitem_install no` in macports.conf

 The second error is:
 {{{
 :debug:activate Backtrace: could not set group for file
 "/Users/user/bin/macports/var/run/dbus": not owner
 }}}

 (at that point however, the port is already activated, so it's possible to
 install other ports that depend directly or indirectly on dbus)

--

Comment:

 The first error is expected, in that it is known that you cannot install
 files into root-owned locations like /Library if you are not root, so you
 should ask MacPorts not to attempt to do so. To do that, you should set
 `startupitem_install no` in macports.conf as you already discovered. This
 is not specific to the dbus port.

 I'm not certain about the second issue.

-- 
Ticket URL: <https://trac.macports.org/ticket/48045#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list