#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