Subject: Re: problem with build.sh and rdonly filesystem
To: Luke Mewburn <luke@mewburn.net>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
Date: 03/05/2003 11:21:30
On Wed, Mar 05, 2003 at 15:20:12 +1100, Luke Mewburn wrote:
> It was a problem accidentally introduced in rev 1.27 of mkdir.c.
> I've committed a fix (rev 1.28).
>
> Update your mkdir sources and reinstall, and the problem should be
> resolved.
OK, thanks. That works:
# /bin/mkdir -p /net/NetBSD/src
mkdir: /net/NetBSD/src: Read-only file system
# echo $?
1
# cp /bin/mkdir /bin/mkdir.orig
# cp /net/NetBSD/build-i386/bin/mkdir /bin/mkdir
# /bin/mkdir -p /net/NetBSD/src
# echo $?
0
#
However,
----------
# sh build.sh -u -U -M /net/NetBSD/obj-i386 -T /net/NetBSD/tools-i386 \
-D /net/NetBSD/build-i386 -V MKTOOLS=no install=/
===> build.sh command: build.sh -u -U -M /net/NetBSD/obj-i386 \
-T /net/NetBSD/tools-i386 -D /net/NetBSD/build-i386 -V MKTOOLS=no install=/
===> build.sh started: Wed Mar 5 11:15:26 CET 2003
===> DESTDIR path: /net/NetBSD/build-i386
===> TOOLDIR path: /net/NetBSD/tools-i386
rm: /net/NetBSD/tools-i386/bin/nbmake-i386: Read-only file system
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
eval: cannot create /net/NetBSD/tools-i386/bin/nbmake-i386: permission denied
chmod: /net/NetBSD/tools-i386/bin/nbmake-i386: Read-only file system
===> Updated /net/NetBSD/tools-i386/bin/nbmake-i386
exec: /export/NetBSD-current/tools-i386/bin/nbmake: not found
ERROR: failed to make installworld to /
*** BUILD ABORTED ***
#
----------
----------
# cat /net/NetBSD/tools-i386/bin/nbmake-i386
#! /bin/sh
# Set proper variables to allow easy "make" building of a NetBSD subtree.
# Generated from: $NetBSD: build.sh,v 1.93 2003/03/04 02:20:28 lukem Exp $
#
UPDATE='yes'; export UPDATE
UNPRIVED='yes'; export UNPRIVED
MAKEOBJDIRPREFIX='/export/NetBSD-current/obj-i386'; export MAKEOBJDIRPREFIX
DESTDIR='/export/NetBSD-current/build-i386'; export DESTDIR
TOOLDIR='/export/NetBSD-current/tools-i386'; export TOOLDIR
MACHINE='i386'; export MACHINE
MACHINE_ARCH='i386'; export MACHINE_ARCH
MAKEFLAGS='-m /export/NetBSD-current/src/share/mk MKOBJDIRS=yes'; export MAKEFLAGS
USETOOLS=yes; export USETOOLS
exec "$TOOLDIR/bin/nbmake" ${1+"$@"}
#
----------
So, nbmake-i386 is overriding DESTDIR and TOOLDIR with the wrong paths?
# ls /net/NetBSD
build-i386 obj-i386 release-i386 tools-i386
build-sparc obj-sparc src tools-sparc
#
rvdp