Thread: RPM postinstall script fails in postgresql-server-7.0.3-2.i386.rpm
RPM postinstall script fails in postgresql-server-7.0.3-2.i386.rpm
From
pgsql-bugs@postgresql.org
Date:
Mark Reibert (mark.reibert@datasoft.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
pgsql-bugs@postgresql.org wrote: > > Mark Reibert (mark.reibert@datasoft.com) reports a bug with a severity of 3 > [root]# rpm -qp --scripts postgresql-server-7.0.3-2.i386.rpm > postinstall script (through /sbin/ldconfig): Thanks for the bug report -- the 7.1 beta and the latest 7.0.3 (21?) RPM's have this fixed, IIRC. Well, I _know_ the 7.1beta RPM's have it fixed. -- Lamar Owen WGCR Internet Radio 1 Peter 4:11