Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#2043 closed defect (duplicate)

"Timing" problem with preinstall actions?

Reported by: ronaldoussoren@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

When I try to install postgresql +server I get a failure because the postgres user doesn't exist, even though the pre-destroot stage creates such a user (the user is really present).

Trying the install a second time solves the problem.

This is on MacOS X 10.3.4.

I filed a bug on 'base' because the portfile seems correct (but what do I know, I've never written one :-)

$ sudo port install postgresql +server +darwin_7 +devel +ssl +rendezvous ---> Fetching postgresql ---> Verifying checksum(s) for postgresql ---> Extracting postgresql ---> Configuring postgresql ---> Building postgresql with target all ---> Staging postgresql into destroot Error: Target com.apple.destroot returned: could not set owner for file "/Volumes/Data/Users/ronald/ Software/darwinports/dports/databases/postgresql/work/destroot/opt/local/var/db/pgsql": user "postgres" does not exist

$ sudo nicl . / > cd users /users > ls ... 69 postgres /users > cat postgres name: postgres passwd: * uid: 502 gid: 502 realname: PostgreSQL Server home: /opt/local/var/db/pgsql shell: /bin/sh /users > quit Goodbye

$ sudo port install postgresql +server +darwin_7 +devel +ssl +rendezvous ---> Staging postgresql into destroot ---> Installing postgresql 7.4.3_0+darwin_7+devel+rendezvous+server+ssl To create a database instance, after install do

sudo su postgres -c '/opt/local/bin/initdb -D /opt/local/var/db/pgsql/defaultdb'

---> Activating postgresql 7.4.3_0+darwin_7+devel+rendezvous+server+ssl

Change History (1)

comment:1 Changed 20 years ago by olegb@…

Resolution: duplicate
Status: newclosed

* This bug has been marked as a duplicate of 2050 *

Note: See TracTickets for help on using tickets.