Subject: toolchain/30682: build.sh fails in install phase: -l repeated in nbinstall arguments
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <htodd@twofifty.com>
List: netbsd-bugs
Date: 07/06/2005 22:09:01
>Number:         30682
>Category:       toolchain
>Synopsis:       build.sh fails in install phase: -l repeated in nbinstall arguments
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 06 22:09:01 +0000 2005
>Originator:     H. Todd Fujinaka
>Release:        NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD kerry.i8u.org 3.99.7 NetBSD 3.99.7 (KERRY) #234: Sun Jul 3 12:26:42 PDT 2005 htodd@kerry.i8u.org:/var/obj/sys/arch/i386/compile.i386/KERRY i386
Architecture: i386
Machine: i386

>Description:
./build.sh -U distribution fails with the install of libc with the following failure:
install ===> lib/libc  
#   install  /usr/src/obj.i386/destdir.i386/lib/libc.so.12.130
STRIP=/usr/src/obj.i386/tooldir.NetBSD-3.99.7-i386/bin/i386--netbsdelf-strip /usr/src/obj.i386/tooldir.NetBSD-3.99.7-i386/bin/nbinstall -U -M /usr/src/obj.i386/destdir.i386/METALOG -D /usr/src/obj.i386/destdir.i386 -h sha1 -N /usr/src/etc -c -p -r -o root -g wheel -m 444   libc.so.12.130 /usr/src/obj.i386/destdir.i386/lib/libc.so.12.130
STRIP=/usr/src/obj.i386/tooldir.NetBSD-3.99.7-i386/bin/i386--netbsdelf-strip /usr/src/obj.i386/tooldir.NetBSD-3.99.7-i386/bin/nbinstall -U -M /usr/src/obj.i386/destdir.i386/METALOG -D /usr/src/obj.i386/destdir.i386 -h sha1 -N /usr/src/etc -l s -r   -l r /usr/src/obj.i386/destdir.i386/lib/libc.so.12.130  /usr/src/obj.i386/destdir.i386/usr/lib/libc.so.12.130
nbinstall: /usr/src/obj.i386/destdir.i386/lib/libc.so.12.130: realpath: Not a directory

The -l argument is repeated and that seems to break nbinstall.

/etc/mk.conf contains:
UPDATE_TARGET=  package
BSDOBJDIR= /var/obj
BUILD= YES
BUILDID= ${MACHINE}
MKHESIOD= no
MKKERBEROS= no
MKKERBEROS4= no
MKOBJDIRS= yes
MKPOSTFIX= no

>How-To-Repeat:
cd /usr/src; ./build.sh -U distribution
>Fix:
None known.