Thread

  1. postgresql-7.0.2: install-sh cannot install pgaccess

    Lutz Birkhahn <lutz@osn.de> — 2000-07-28T15:29:20Z

    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
    
    
  2. Re: postgresql-7.0.2: install-sh cannot install pgaccess

    Tom Lane <tgl@sss.pgh.pa.us> — 2000-07-28T16:26:48Z

    Lutz Birkhahn <lutz@osn.de> writes:
    > Reason: postgresql-7.0.2/src/bin/pgaccess/Makefile tries to install
    > multiple files with one install command:
    
    This is fixed in current sources.
    
    			regards, tom lane