Subject: problem in etc/Makefile ?
To: None <current-users@netbsd.org>
From: George Coulouris <george@coulouris.org>
List: current-users
Date: 10/31/2001 10:03:09
Just cvs updated, made obj, made distclean, and nuked my tooldir this
morning, and this is what I got when I tried to make release:
# make release
Build started at: Wed Oct 31 09:54:53 EST 2001
(cd /usr/src/etc && make -m /usr/src/share/mk DESTDIR=/usr/destdir distrib-dirs)
install -d -o root -g wheel -m 755 /usr/destdir
mtree -def mtree/NetBSD.dist -p /usr/destdir/ -U
rm -f //sys
install -l s -o root -g wheel -m 755 usr/src/sys /usr/destdir/sys
install: usr/src/sys: No such file or directory
*** Error code 1
My neophyte guess is that the problem lies in this section of etc/Makefile:
distrib-dirs:
${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U ${UNPRIVILEGED:D-W}
rm -f ${DESTDIR}/sys
${INSTALL} ${INSTPRIV} -l s -o root -g wheel -m 755 \
usr/src/sys ${DESTDIR}/sys
Shouldn't that last bit be ${KERNSRCDIR} instead of having usr/src/sys
hardcoded?
Sadly, however, if I correct the makefile, I get this:
# make release
Build started at: Wed Oct 31 09:59:09 EST 2001
(cd /usr/src/etc && make -m /usr/src/share/mk DESTDIR=/usr/destdir
distrib-dirs)
install -d -o root -g wheel -m 755 /usr/destdir
mtree -def mtree/NetBSD.dist -p /usr/destdir/ -U
rm -f /usr/destdir/sys
install -l s -o root -g wheel -m 755 /usr/src/sys /usr/destdir/sys
install: /usr/destdir/sys: not a regular file
*** Error code 1
The only thing I can think of is that install is doing the wrong thing since
/usr/src and /usr/destdir live on different partitions..
# mount
/dev/sd1a on / type ffs (local, soft dependencies)
/dev/sd1e on /var type ffs (local, soft dependencies)
/dev/sd1f on /usr type ffs (local, soft dependencies)
/dev/sd0f on /usr/src type ffs (local, soft dependencies)
Any ideas?
--
George Coulouris -- firstname at lastname dot org