Subject: misc/25020: 'make iso-image' fails on read-only src tree
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jukka-netbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 04/02/2004 10:59:22
>Number:         25020
>Category:       misc
>Synopsis:       'make iso-image' fails on read-only src tree
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 02 09:00:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0A
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 2.0A NetBSD 2.0A (GENERIC) #0: Mon Mar 29 23:46:09 CEST 2004 build@himo.salmi.ch:/build/nbsdc/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
On a current NetBSD system, running 'make iso-image' fails if $BSDSRCDIR/etc
is mounted read-only because of file and directory creation commands
($BSDSRCDIR/etc/Makefile, line 410 f.).
>How-To-Repeat:
# mount | grep /usr/src
/src/nbsd/current on /usr/src type null (read-only, local)
# cd /usr/src/etc && make DESTDIR=/opt/dst RELEASEDIR=/opt/rel iso-image
rm -f cdrom.pathlist
echo "i386=/opt/rel/i386" >> cdrom.pathlist
cannot create cdrom.pathlist: permission denied
*** Error code 2

Stop.
make: stopped in /usr/src/etc
>Fix:
cdrom.dir and cdrom.pathlist should be created on a filesystem which is
mounted read-write. I'm not sure what's the right way to do it. Maybe
MAKEOBJDIRPREFIX should be used if set?
>Release-Note:
>Audit-Trail:
>Unformatted: