Subject: pkg/15385: sqsh install breaks trying to install man pages
To: None <email@example.com>
From: James K. Lowden <firstname.lastname@example.org>
Date: 01/26/2002 16:56:41
>Synopsis: sqsh install breaks trying to install man pages
>Arrival-Date: Sat Jan 26 13:57:00 PST 2002
>Originator: James K. Lowden
System: NetBSD home.schemamania.org 1.4.2 NetBSD 1.4.2 (GENERIC) #3: Wed Mar 15 23:41:54 PST 2000 email@example.com:/usr/src/sys/arch/i386/compile/GENERIC i386
On "make install", the man pages are installed by a script:
The script includes a line (I think this is the one):
while ( test $# -ne 0 -a "$1" != "--" ); do
that fails to parse (see below) under the Bourne shell.
I'm going to guess that autoconf generates this script and that it's been mostly
tested with bash's "sh" emulation. The behavior of which may be subtly from
the (ahem) real /bin/sh.
Having done "make":
g# make install
===> Installing for sqsh-1.7
cc -L/usr/pkgsrc/databases/sqsh/work/.buildlink/lib [etc.]
./autoconf/install-sh -d /usr/pkg/bin
./autoconf/install-sh sqsh /usr/pkg/bin/sqsh
./autoconf/install-man -s ./doc -d /usr/pkg/man sqsh.1
test: --: unknown operand
Installing ./doc as /usr/local/man/man1/.1
cp: ././doc is a directory (not copied).
install.man: No such man page ./-d
*** Error code 1
Workaround. I replaced Line 1:
That did the trick.