NetBSD Problem Report #15385
Received: (qmail 3712 invoked from network); 26 Jan 2002 21:56:42 -0000
Message-Id: <200201262156.g0QLufF25975@home.schemamania.org>
Date: Sat, 26 Jan 2002 16:56:41 -0500 (EST)
From: "James K. Lowden" <jklowden@schemamania.org>
Reply-To: jklowden@schemamania.org
To: gnats-bugs@gnats.netbsd.org
Subject: sqsh install breaks trying to install man pages
X-Send-Pr-Version: 3.95
>Number: 15385
>Category: pkg
>Synopsis: sqsh install breaks trying to install man pages
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 26 21:57:00 +0000 2002
>Closed-Date: Tue Mar 12 01:54:29 +0000 2002
>Last-Modified: Tue Mar 12 01:54:29 +0000 2002
>Originator: James K. Lowden
>Release: 1.4.2
>Organization:
>Environment:
i386
System: NetBSD home.schemamania.org 1.4.2 NetBSD 1.4.2 (GENERIC) #3: Wed Mar 15 23:41:54 PST 2000 toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
On "make install", the man pages are installed by a script:
/usr/pkgsrc/databases/sqsh/work/sqsh-1.7/autoconf/install-man
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.
>How-To-Repeat:
Having done "make":
# pwd
/usr/pkgsrc/databases/sqsh
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
>Fix:
Workaround. I replaced Line 1:
#!/bin/sh
with
#!/usr/pkg/bin/bash
That did the trick.
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: "James K. Lowden" <jklowden@schemamania.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/15385: sqsh install breaks trying to install man pages
Date: Tue, 29 Jan 2002 14:54:45 +0100
--uQr8t48UFsdbeI+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Jan 26, 2002 at 04:56:41PM -0500, James K. Lowden wrote:
> 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.
This line by its own in an if in a shell-script seems to work fine on
an 1.4.2 machine I have available.
Depending on bash is not an option. Could you please try if the
attached patch fixes the problem for you?
Thanks,
Thomas
--
Thomas Klausner - wiz@danbala.tuwien.ac.at
When all other means of communication fail, try words.
--uQr8t48UFsdbeI+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=sqsh-patch
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/sqsh/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile 2001/06/21 02:04:59 1.9
+++ Makefile 2002/01/29 13:52:26
@@ -23,6 +23,7 @@
CONFIGURE_ENV+= INCDIRS="${BUILDLINK_DIR}/include"
CONFIGURE_ENV+= LIBDIRS="${BUILDLINK_DIR}/lib"
+MAKE_FLAGS+= INSTALL_MAN="${INSTALL_DATA}"
.include "../../databases/freetds/buildlink.mk"
.include "../../devel/readline/buildlink.mk"
--uQr8t48UFsdbeI+V--
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: "James K. Lowden" <jklowden@schemamania.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/15385: sqsh install breaks trying to install man pages
Date: Fri, 1 Feb 2002 14:30:43 +0100
On Tue, Jan 29, 2002 at 10:00:34PM -0500, James K. Lowden wrote:
> I did "make clean; make; make install". Looking at the output of
> "make install", I saw how "install-man" is called. I than ran it with
> the "-x" switch, so you can see the results, attached below. Hope
> that helps.
>
> If you need more, just ask. :)
Just to make sure: your root shell is ksh?
At least that's the only shell with which I can reproduce your
problem.
Bye,
Thomas
--
Thomas Klausner - wiz@danbala.tuwien.ac.at
When all other means of communication fail, try words.
State-Changed-From-To: open->closed
State-Changed-By: wiz
State-Changed-When: Mon Mar 11 17:52:42 PST 2002
State-Changed-Why:
I worked around this problem by manually installing program and man page
in the package's Makefile.
Thanks for the PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.