[MacPorts] #33497: :debug:destroot Can't run destroot under sudo without elevated privileges (due to mtree).
#33497: :debug:destroot Can't run destroot under sudo without elevated privileges (due to mtree). -------------------------------------------+-------------------------------- Reporter: thehiddendepth@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: destroot, postgresql83-server | Port: install postgresql83-server -------------------------------------------+-------------------------------- When install postgresql83-server and postgresql90-server on Mac OS X 10.7.2, I have the following error: {{{ Error: Target org.macports.destroot returned: shell command failed (see log for details) }}} And in the log file: {{{ :debug:destroot Can't run destroot under sudo without elevated privileges (due to mtree). }}} -- Ticket URL: <https://trac.macports.org/ticket/33497> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33497: postgresql*-server: chown: postgres: Invalid argument --------------------------------------+------------------------------------- Reporter: thehiddendepth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: postgresql83-server --------------------------------------+------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… * cc: thehiddendepth@… (removed) * cc: jwa@… (added) * port: install postgresql83-server => postgresql83-server * keywords: destroot, postgresql83-server => Comment: The real error shown in both logs is: {{{ chown: postgres: Invalid argument }}} Is there something wrong with the "postgres" user that these ports should have created? Does the user even exist? -- Ticket URL: <https://trac.macports.org/ticket/33497#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33497: postgresql*-server: chown: postgres: Invalid argument --------------------------------------+------------------------------------- Reporter: thehiddendepth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: postgresql83-server --------------------------------------+------------------------------------- Comment(by thehiddendepth@…): Replying to [comment:2 ryandesign@…]:
The real error shown in both logs is: {{{ chown: postgres: Invalid argument }}} Is there something wrong with the "postgres" user that these ports should have created? Does the user even exist?
Hi, ryan, thanks for the help. I am not sure if you are asking me. I checked on my MBP, there's no user: postgres created, but there's a group 'postgres' created. Best Regards. Larry -- Ticket URL: <https://trac.macports.org/ticket/33497#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33497: postgresql*-server: chown: postgres: Invalid argument --------------------------------------+------------------------------------- Reporter: thehiddendepth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: haspatch | Port: postgresql91-server postgresql83-server --------------------------------------+------------------------------------- Changes (by dports@…): * cc: dports@… (added) * keywords: => haspatch * port: postgresql83-server => postgresql91-server postgresql83-server Comment: Looks like this is happening because the port is setting add_users in the destroot phase, which doesn't work right. It should do this outside the phase (add_users is a variable that gets processed at the appropriate time, not a command like adduser). The attached patch fixes this, and also lets add_users handle adding the group instead of using addgroup. This fixes the problem for me, and I believe it will do the right thing even when using binary archives. -- Ticket URL: <https://trac.macports.org/ticket/33497#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33497: postgresql*-server: chown: postgres: Invalid argument --------------------------------------+------------------------------------- Reporter: thehiddendepth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: haspatch | Port: postgresql91-server postgresql83-server --------------------------------------+------------------------------------- Comment(by jeremyhu@…): @andholt, since you dropped off IRC: {{{ <andholt> can anyone please help me figure out how to apply a patch to a portfile? <andholt> running into this problem: https://trac.macports.org/ticket/33497 * andholt has quit (Client Quit) <jeremyhu> andholt: cd /path/tpo/dports/databases/postgresql91-server ; curl -L https://trac.macports.org/raw- attachment/ticket/33497/postgresql91-server.patch | patch }}} -- Ticket URL: <https://trac.macports.org/ticket/33497#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33497: postgresql*-server: chown: postgres: Invalid argument --------------------------------------+------------------------------------- Reporter: thehiddendepth@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: haspatch | Port: postgresql91-server postgresql83-server --------------------------------------+------------------------------------- Comment(by dports@…): I committed this for postgresql91-server in r91170. Still need to fix the other versions... -- Ticket URL: <https://trac.macports.org/ticket/33497#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33497: postgresql*-server: chown: postgres: Invalid argument ------------------------------------------------------+--------------------- Reporter: thehiddendepth@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: haspatch Port: postgresql91-server postgresql83-server | ------------------------------------------------------+--------------------- Changes (by dports@…): * status: new => closed * resolution: => fixed Comment: ...and for 83, 84, and 90 in r91171. The earlier versions still use adduser, but they're so old they should probably be removed anyway... -- Ticket URL: <https://trac.macports.org/ticket/33497#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts