postgresql-7.0.2: install-sh cannot install pgaccess

From: Lutz Birkhahn <lutz(at)osn(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: postgresql-7.0.2: install-sh cannot install pgaccess
Date: 2000-07-28 15:29:20
Message-ID: 3981A6D0.71865C@osn.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I downloaded the source files postgresql-7.0.2.tar.gz at Jul 12, 2000.

Trying to install pgaccess, it did not correctly copy all files to the
target directories.

Reason: postgresql-7.0.2/src/bin/pgaccess/Makefile tries to install
multiple
files with one install command:

$(INSTALL) $(INSTLOPTS) lib/*.tcl $(POSTGRESDIR)/pgaccess/lib
...

But the install script postgresql-7.0.2/src/install-sh can only install
*one* file at a time:

# This script is compatible with the BSD install script, but was
written
# from scratch. It can only install one file at a time, a
restriction
# shared with many OS's install
programs.

In the case of multiple files, the shell expands the *.tcl, so the
install
script installs the *first* file only into the target directory.

DETAILS
=======

$ uname -a
SunOS qint 5.5.1 Generic_103640-31 sun4m sparc SUNW,SPARCstation-20

Created a new user postgres (uid=26, home dir=/usr/local/pgsql)
# export LD_RUN_PATH=/usr/local/pgsql/lib
# export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin
# cd /var/tmp/postgresql-7.0.2/src
# ./configure --with-perl --with-tcl

(the INSTALL variables in Makefile.global are:
# For many ports, INSTALL is overridden below.
INSTALL= /var/tmp/postgres/postgresql-7.0.2/src/install-sh -c
RANLIB= ranlib

INSTLOPTS= -m 444
INSTL_EXE_OPTS= -m 555
INSTL_LIB_OPTS= -m 644
INSTL_SHLIB_OPTS= -m 644
)

# gmake
# gmake install
# cd /var/tmp/postgres/postgresql-7.0.2/src/bin/pgaccess
# gmake install
/var/tmp/postgres/postgresql-7.0.2/src/install-sh -c -m 555 pgaccess
/usr/local/pgsql/bin/pgaccess
/var/tmp/postgres/postgresql-7.0.2/src/install-sh -c -m 555 main.tcl
/usr/local/pgsql/pgaccess
/var/tmp/postgres/postgresql-7.0.2/src/install-sh -c -m 444 lib/*.tcl
/usr/local/pgsql/pgaccess/lib
/var/tmp/postgres/postgresql-7.0.2/src/install-sh -c -m 444
lib/help/*.hlp
/usr/local/pgsql/pgaccess/lib/help
/var/tmp/postgres/postgresql-7.0.2/src/install-sh -c -m 444
lib/languages/[a-z]*
/usr/local/pgsql/pgaccess/lib/languages
/var/tmp/postgres/postgresql-7.0.2/src/install-sh -c -m 444 images/*.gif
/usr/local/pgsql/pgaccess/images

--
Lutz Birkhahn
OSN Online Service Nuernberg GmbH

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2000-07-28 16:26:48 Re: postgresql-7.0.2: install-sh cannot install pgaccess
Previous Message Tom Lane 2000-07-28 15:16:15 Re: float8 comparison failure