Subject: toolchain/15304: 'build.sh -u' fails at manual installation when MANZ=yes
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ryoh@jaist.ac.jp>
List: netbsd-bugs
Date: 01/20/2002 07:25:13
>Number:         15304
>Category:       toolchain
>Synopsis:       'build.sh -u' fails at manual installation when MANZ=yes
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 19 14:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 1.5ZA
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
	
	
System: NetBSD bonnie.jaist.ac.jp 1.5ZA NetBSD 1.5ZA (BONNIE) #185: Wed Jan 16 18:19:08 JST 2002 root@bonnie.jaist.ac.jp:/c/src/sys/arch/i386/compile/BONNIE i386
Architecture: i386
Machine: i386

My /etc/mk.conf contains:
MANZ=yes
COPTS+=-pipe -march=pentiumpro -O2
MANINSTALL=maninstall
MKCATPAGES=no
USE_XF86_4=yes
TOOLDIR=/usr/src/tooldir
MKOBJDIRS=yes
MKHOSTOBJ=yes
MKPICINSTALL=no
MKPROFILE=no
BSDSRCDIR=/usr/src

My nbmake wrapper script generated by 'build.sh -u' is as follows:
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
# Generated from:  $NetBSD: build.sh,v 1.38 2002/01/15 19:17:23 tv Exp $
#

UPDATE='yes'; export UPDATE
TOOLDIR='/usr/src/tooldir'; export TOOLDIR
MACHINE='i386'; export MACHINE
MACHINE_ARCH='i386'; export MACHINE_ARCH
MAKEFLAGS='-m /c/src/share/mk MKOBJDIRS=yes'; export MAKEFLAGS
USETOOLS=yes; export USETOOLS

exec $TOOLDIR/bin/nbmake ${1+"$@"}


>Description:
'build.sh -u' always stopped at manual installation.  In other words,
I got a kind of the following error, using the nbmake wrapper script.

$ cd /usr/src/usr.bin/xlint/lint1
$ sudo /usr/src/tooldir/bin/nbmake-i386 install
STRIP=/usr/src/tooldir/bin/i386--netbsdelf-strip /usr/src/tooldir/bin/nbinstall -c -p -r -o root -g wheel -m 555  -s lint1 /usr/libexec/lint1
STRIP=/usr/src/tooldir/bin/i386--netbsdelf-strip /usr/src/tooldir/bin/nbinstall -c -p -r -o root -g wheel -m 444  lint.7.gz /usr/share/man/man7/lint.7 /usr/share/man/man7/lint.7.gz
usage: install [-Ubcprs] [-M log] [-T tags] [-B suffix] [-f flags] [-m mode]
            [-o owner] [-g group] [-l linkflags] [-S stripflags] file1 file2
       install [-Ubcprs] [-M log] [-T tags] [-B suffix] [-f flags] [-m mode]
            [-o owner] [-g group] [-l linkflags] [-S stripflags]
            file1 ... fileN directory
       install [-Up] [-M log] [-T tags] -d [-m mode]
            [-o owner] [-g group] directory ...
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.bin/xlint/lint1


On the other hand, if I use 'build.sh' (not UPDATE), which runs
cleandir, it works fine.

>How-To-Repeat:
The nbmake wrapper script generated by 'build.sh -u' is used.
$ cd /usr/src/usr.bin/xlint/lint1
$ /usr/src/tooldir/bin/nbmake-i386 cleandir dependall
...(this should be okay.)
# /usr/src/tooldir/bin/nbmake-i386 install

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: