Subject: misc/25020: 'make iso-image' fails on read-only src tree
To: None <>
From: None <>
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
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0A
System: NetBSD 2.0A NetBSD 2.0A (GENERIC) #0: Mon Mar 29 23:46:09 CEST 2004 i386
Architecture: i386
Machine: i386
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.).
# 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

make: stopped in /usr/src/etc
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?