Subject: build.sh fails to make sets if destdir is symlinked
To: None <tech-toolchain@netbsd.org>
From: Wolfgang S. Rupprecht <wolfgang+gnus20040208T143644@dailyplanet.dontspam.wsrcc.com>
List: tech-toolchain
Date: 02/08/2004 15:00:09
In the last 7 days something changed for the worse in the last stages
of building.  It looks like METALOG now contains lines like:

    ./var/obj/netbsd/destdir.i386/usr/lib/libc.so type=link mode=0755 link=../../lib/libc.so.12.111

There is no ./var/obj/ but there is a /var/obj/ on my system.  I
symlink /usr/obj to /var/obj/netbsd (/usr gets backed up and I like to
keep volatiles under /var/obj).  Up to a week ago that worked
flawlessly.

Just for the record.  Here is the first and last lines of the build.

    ./build.sh -U tools kernel=WSRCC_ATHLON distribution

    [...]

    #    create  set lists
    cd /v/src/netbsd/src/distrib/sets &&  DESTDIR=/v/src/netbsd/src/obj/destdir.i386  MACHINE=i386 MACHINE_ARCH=i386  CKSUM=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbcksum MAKE=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbmake MTREE=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbmtree  MKTEMP=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbmktemp PAX=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbpax HOST_SH=sh  sh ./maketars -S -d /v/src/netbsd/src/obj/destdir.i386 -M /v/src/netbsd/src/obj/destdir.i386/METALOG  -N /v/src/netbsd/src/etc  -t /v/src/netbsd/src/obj/releasedir/i386/binary/sets
    nbmtree: ./var/obj: No such file or directory
    nbmtree: failed at line 2268 of the specification
    maketars: mtree parse of  failed

    *** Failed target:  makesetfiles
    *** Failed command: cd /v/src/netbsd/src/distrib/sets && DESTDIR=/v/src/netbsd/src/obj/destdir.i386 MACHINE=i386 MACHINE_ARCH=i386 CKSUM=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbcksum MAKE=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbmake MTREE=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbmtree MKTEMP=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbmktemp PAX=/v/src/netbsd/src/obj/tooldir.NetBSD-1.6ZI-i386/bin/nbpax HOST_SH=sh sh ./maketars -S -d /v/src/netbsd/src/obj/destdir.i386 -M /v/src/netbsd/src/obj/destdir.i386/METALOG -N /v/src/netbsd/src/etc -t /v/src/netbsd/src/obj/releasedir/i386/binary/sets
    *** Error code 1

    Stop.
    nbmake: stopped in /v/src/netbsd/src/distrib/sets

/etc/mk.conf:

     BSDOBJDIR=/var/obj/netbsd

-wolfgang