Subject: pkg/20816: bootstrap-pkgsrc build failed under solaris 7
To: None <gnats-bugs@gnats.netbsd.org>
From: None <pierre.bourgin@pcotech.fr>
List: netbsd-bugs
Date: 03/20/2003 00:41:43
>Number:         20816
>Category:       pkg
>Synopsis:       bootstrap-pkgsrc build failed under solaris 7
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 20 00:42:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Pierre Bourgin
>Release:        solaris 7
>Organization:
>Environment:
SunOS tequila 5.7 Generic_106541-20 sun4u sparc SUNW,Ultra-250

>Description:
The compilation and installation of the bootstrap-pkgsrc failed while trying to install packages(7) man pages. 

I got bootstrap-pkgsrc from anoncvs server on 2003-03-18:

BOOTSTRAP_VERSION=20021202 in bootstrap-pkgsrc/bootstrap file,

version of file bootstrap-pkgsrc/files/install-sh is
'$NetBSD:  install-sh,v 1.2 2003/03/09 00:28:21 jschauma Exp $' 


>How-To-Repeat:
add "-x" flag to script bootstrap-pkgsrc/files/install-sh, and launch 
bootstrap-pkgsrc/bootstrap script. It will produce this output:

(snip)
# bootstrap script message

===> Installing packages(7) man page

(snip)
# files/install-sh debug

+ [ ! -d /usr/pkg/man/man7 ]
defaultIFS=

IFS=

oIFS=

IFS=%
+ echo /usr/pkg/man/man7
+ sed -e s@/@%@g -e s@^%@/@
+ set - /usr pkg man man7
./install-sh: bad substitution
installation of packages(7) man page failed. # bootstrap message 

>Fix:
don't know how to fix it.

a WORKAROUND I found to is to copy file bootstrap-pkgsrc/digest/install-sh  
as bootstrap-pkgsrc/files/install-sh.

Then I clean bootstrap-pkgsrc and launch again bootstrap-pkgsrc/bootstrap script : no more error(s).
>Release-Note:
>Audit-Trail:
>Unformatted: