Bug 28384

Summary: make installworld fails from R/O /usr/obj
Product: Base System Reporter: ahd <ahd>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description ahd 2001-06-24 16:00:09 UTC
Install of FreeBSD 4.3 fails well into the install because /usr/obj is R/O.  I would expect R/W not to be required on an install, or if it was, to be checked before partially updating the system.

Here's a sample of the failure mode:


	.
	.
	.
Appending installation info to /usr/libdata/perl/5.00503/mach/perllocal.pod
===> gnu/usr.bin/perl/library/SDBM_File
cd /usr/obj/usr/src/gnu/usr.bin/perl/library/SDBM_File/ext/SDBM_File ; make -B install  INSTALLPRIVLIB=/usr/libdata/perl/5.00503  INSTALLARCHLIB=/usr/libdata/perl/5.00503/mach
cd sdbm && make all
rm -rf libsdbm.a
rm: libsdbm.a: Read-only file system
*** Error code 1

Stop in /usr/obj/usr/src/gnu/usr.bin/perl/library/SDBM_File/ext/SDBM_File/sdbm.
*** Error code 1

Stop in /usr/obj/usr/src/gnu/usr.bin/perl/library/SDBM_File/ext/SDBM_File.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/library/SDBM_File.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/library.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl.
*** Error code 1

Stop in /usr/src/gnu/usr.bin.
*** Error code 1

Stop in /usr/src/gnu.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
#

Fix: 

Workaround is, of course, to allow R/W access to /usr/obj as root.
How-To-Repeat: 	make installworld with R/O /usr/obj
Comment 1 ru freebsd_committer freebsd_triage 2001-09-25 17:04:16 UTC
State Changed
From-To: open->closed

There shouldn't be any attempts to "make" something in the object 
directory during the install phase.  If you observe this, it'smuch 
likely that /usr/src and /usr/obj are time-unbalanced, i.e. some 
files in /usr/src have more recent modification dates.