Re: problem while building against libpgsql2 on sparc
>
> Unpacking libpgsql2 (from .../libpgsql2_7.2.3-0.2_sparc.deb) ...
>
> dpkg: error processing /home/buildd/build/chroot-unstable/var/cache/apt/archives/libpgsql2_7.2.3-0.2_sparc.deb (--unpack):
> subprocess pre-installation script returned error exit status 1
>
The bug is in this part of the preinst script:
if [ -d ${PGDATA:=/var/lib/postgres/data} ]
then
installed=`cat ${PGDATA}/PG_VERSION 2>/dev/null`
On the sparc buildd, /var/lib/postgres/data/PG_VERSION does not exist.
So the line fails and exists the script non-zero. If he wants that to be
able to fail, then it needs to look like:
installed=`cat ${PGDATA}/PG_VERSION 2>/dev/null` || true
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
Reply to: