[MacPorts] #48045: dbus "no_root" fails to install
#48045: dbus "no_root" fails to install --------------------------+-------------------------------- Reporter: ocroquette@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: dbus --------------------------+-------------------------------- 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) -- Ticket URL: <https://trac.macports.org/ticket/48045> MacPorts <https://www.macports.org/> Ports system for OS X
#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
#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 | ---------------------------+------------------------ Comment (by ocroquette@…): That's for the reply. Can't "startupitem_install" be set set implicitly for the no_root variant? -- Ticket URL: <https://trac.macports.org/ticket/48045#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#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 | ---------------------------+------------------------ Comment (by ryandesign@…): I feel that the "no_root" variant should not exist. Instead, the port should detect if the MacPorts prefix was created with a non-root user, and act accordingly. As far as I know, the inability of dbus no_root to install a launchd plist is not specific to the dbus port. Any port attempting to install a launchd plist would experience this failure in a non-root MacPorts prefix. Therefore, it is not up to each port to fix this, but rather it is up to the user to configure their MacPorts installation properly. If any change is needed in MacPorts related to this, it would be a change in MacPorts base to either alert the user to their improper configuration and/or for the installation process to automatically disable startupitems if the installation isn't going to use root. -- Ticket URL: <https://trac.macports.org/ticket/48045#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#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 | ---------------------------+------------------------ Comment (by ocroquette@…): I tend to agree with that. Some things that might help: * maintain an official "non-root" howto * support it in the official installer (AFAIK, currently on has to compile MacPorts him/herself) * provider helpers/automatism's for Portfile maintainers -- Ticket URL: <https://trac.macports.org/ticket/48045#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts