RPM postinstall script fails in postgresql-server-7.0.3-2.i386.rpm

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: RPM postinstall script fails in postgresql-server-7.0.3-2.i386.rpm
Date: 2001-02-28 19:12:51
Message-ID: 200102281912.f1SJCpT70639@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Mark Reibert (mark(dot)reibert(at)datasoft(dot)com) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
RPM postinstall script fails in postgresql-server-7.0.3-2.i386.rpm

Long Description
Installing postgresql-server-7.0.3-2.i386.rpm on a Red Hat 6.2 box resulted in the following:

[root]# rpm -Uvh postgresql-server-7.0.3-2.i386.rpm
postgresql-server ##################################################
/sbin/ldconfig: warning: can't open var/tmp/rpm-tmp.26860 (Not a directory), skipping
/sbin/ldconfig: warning: can't open 1 (No such file or directory), skipping

This appears to result from attempting to run the RPM post install script through ldconfig, as indicated by the following:

[root]# rpm -qp --scripts postgresql-server-7.0.3-2.i386.rpm
postinstall script (through /sbin/ldconfig):
echo PGLIB=/usr/lib/pgsql >> ~postgres/.bash_profile
echo PGDATA=/var/lib/pgsql/data >> ~postgres/.bash_profile
echo export PGLIB PGDATA >> ~postgres/.bash_profile

All other scripts in postgresql-server-7.0.3-2.i386.rpm run through /bin/sh as expected.

Sample Code

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Lamar Owen 2001-02-28 20:38:05 Re: RPM postinstall script fails in postgresql-server-7.0.3-2.i386.rpm
Previous Message Robert Hentosh 2001-02-28 18:21:00 Re: No Postgres Bug! Heavy downloading problems...