[MacPorts] #30978: can't install logrotate as non-root
#30978: can't install logrotate as non-root ---------------------------------+------------------------------------------ Reporter: nefar@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: logrotate ---------------------------------+------------------------------------------ {{{ ---> Activating logrotate @3.8.0_1+gzip+startupitem Error: Target org.macports.activate returned: error renaming "/var/folders/Rt/RtlcSSmbEGaAtnBHeaIrTU+++TI/-Tmp-/mpextractVf2SkO7c/Library/LaunchDaemons/org.macports.logrotate.plist" to "/Library/LaunchDaemons/org.macports.logrotate.plist": permission denied }}} For non-root, it should use: {{{ ~/Library/LaunchAgents/ }}} -- Ticket URL: <https://trac.macports.org/ticket/30978> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30978: can't install logrotate as non-root ---------------------------------+------------------------------------------ Reporter: nefar@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: logrotate ---------------------------------+------------------------------------------ Changes (by pixilla@…): * owner: macports-tickets@… => pixilla@… Comment: Check out the notes: {{{ $ port notes logrotate }}} If you install without the startupitem variant no plist is installed. You can then do as you wish. {{{ $ port install logrotate -startupitem }}} -- Ticket URL: <https://trac.macports.org/ticket/30978#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30978: can't install logrotate as non-root ---------------------------------+------------------------------------------ Reporter: nefar@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: logrotate ---------------------------------+------------------------------------------ Comment(by jmr@…): You could not create the link in /Library/LaunchDaemons when [getuid] != 0 like base does. -- Ticket URL: <https://trac.macports.org/ticket/30978#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30978: can't install logrotate as non-root ---------------------------------+------------------------------------------ Reporter: nefar@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: logrotate ---------------------------------+------------------------------------------ Changes (by pixilla@…): * cc: jmr@… (added) Comment: jmr: Is your message for me? If so I do not understand.[[BR]] If one uses the -startupitem variant then no startupitem is installed into /Library/LaunchDaemons.[[BR]] The example plist can be copied into ~/Library/LaunchAgents if so desired. -- Ticket URL: <https://trac.macports.org/ticket/30978#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30978: can't install logrotate as non-root ---------------------------------+------------------------------------------ Reporter: nefar@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: logrotate ---------------------------------+------------------------------------------ Comment(by jmr@…): The point is that you shouldn't have to deselect a variant to make installing as non-root work. You don't have to for ports that let base create their startupitems, and that behaviour could easily be recreated here by checking the uid. -- Ticket URL: <https://trac.macports.org/ticket/30978#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
On Aug 30, 2011, at 9:39 PM, MacPorts wrote:
#30978: can't install logrotate as non-root ---------------------------------+------------------------------------------ Reporter: nefar@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: logrotate ---------------------------------+------------------------------------------
Comment(by jmr@…):
The point is that you shouldn't have to deselect a variant to make installing as non-root work. You don't have to for ports that let base create their startupitems, and that behaviour could easily be recreated here by checking the uid.
Good point. Rather then wrap the "default_variants +startupitem" in a getuid test; I removed +startupitem as a default. As for installing into ~/Library/LaunchAgents/, that does not work for multi-user systems, right? Each user would need to copy the example plist to ~/Library/LaunchAgents/, right? Regards, Bradley Giesbrecht (pixilla)
#30978: can't install logrotate as non-root ----------------------------------+----------------------------------------- Reporter: nefar@… | Owner: pixilla@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: fixed | Keywords: Port: logrotate | ----------------------------------+----------------------------------------- Changes (by pixilla@…): * status: new => closed * resolution: => fixed Comment: See r83434 -- Ticket URL: <https://trac.macports.org/ticket/30978#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (2)
-
Bradley Giesbrecht
-
MacPorts