Subject: build creates files in src instead of obj
To: None <current-users@netbsd.org>
From: Arto Huusko <arto.huusko@utu.fi>
List: current-users
Date: 05/10/2004 19:27:42
With very fresh sources from -current, the build seems to produce files to
the source dir instead of objdir, which later on confuses install.
The problems are MAKEDEV and some sendmail configuration files:
Build started at: Mon May 10 16:39:05 EEST 2004
Build finished at: Mon May 10 18:44:23 EEST 2004
distribution ===> etc (with: INSTALL_DONE=1)
STRIP=/local/netbsd/current/alpha/tools/bin/alpha--netbsd-strip /local/netbsd/cu
rrent/alpha/tools/bin/nbinstall -N /source/current/src/etc -d -o root -g wheel
-m 755 -T base_pkg /local/netbsd/current/alpha/dest
/local/netbsd/current/alpha/tools/bin/nbmtree -def /source/current/src/etc/mtree
/NetBSD.dist -N /source/current/src/etc -p /local/netbsd/current/alpha/dest/ -U
install-etc-files ===> etc
# create etc//source/current/src/etc/MAKEDEV
MACHINE=alpha MACHINE_ARCH=alpha NETBSDSRCDIR=/source/current/src awk -f
/source/current/src/etc/MAKEDEV.awk /source/current/src/etc/MAKEDEV.tmpl
>/source/current/src/etc/MAKEDEV
Note the redirection, which goes to /source/....
And this then dies a few steps later with:
cd /local/netbsd/current/alpha/obj/etc && STRIP=/local/netbsd/current/alpha/tool
s/bin/alpha--netbsd-strip /local/netbsd/current/alpha/tools/bin/nbinstall -N /s
ource/current/src/etc -c -r -T etc_pkg -o root -g wheel -m 555 MAKEDEV /local/
netbsd/current/alpha/dest/dev
nbinstall: MAKEDEV: stat: No such file or directory
I invoke build.sh like this:
build.sh -a alpha -m alpha -D /local/netbsd/current/alpha/dest -O
/local/netbsd/current/alpha/obj -R /local/netbsd/current/alpha/release -T
/local/netbsd/current/alpha/tools distribution
I build on an i386.
I copied MAKEDEV and the sendmail cf files (in gnu/usr.sbin/sendmail/cf/cf)
by hand from src to obj, and the build then finished happily and even
checkflist was OK.
--
Arto Huusko