Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2002 22:15:15 -0600 (CST)
From:      Loren James Rittle <rittle@latour.rsch.comm.mot.com>
To:        stable@freebsd.org
Cc:        anarcat@anarcat.ath.cx
Subject:   Re: buildworld broken on ro /usr/src
Message-ID:  <200211060415.gA64FFi2051052@latour.rsch.comm.mot.com>
In-Reply-To: <20021106003423.GB307@lenny.anarcat.ath.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20021106003423.GB307@lenny.anarcat.ath.cx> you write:

> I just updated my tree and tried to run buildworld. I have:

> and buildworld is crashing with:

> rm -f libgmp.so
> rm -f libgmp.so.* libgmp.so
> rm -f libgmp.a libgmp_p.a libgmp.so.3
> rm -rf mpz mpf mpq
> rm: mpz/CVS/Root: Read-only file system
> rm: mpz/CVS/Repository: Read-only file system
[...]

Yup, I recently saw this exact problem upgrading an alpha system from
FreeBSD 4.2-STABLE to 4.7-RC with /usr/src mounted over NFS read-only.
This is the work-around patch I created to get a complete buildworld.
Given the relative path reporting, I have no idea exactly what
directories it was attempting to rm.  Based on the error message, I
presume something in the ro-mounted /usr/src.  Of course, that makes
no sense thus my classification of this as a work-around.  Note, I did
update my sources with -Pd.

Index: share/mk/bsd.lib.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.lib.mk,v
retrieving revision 1.91.2.15
diff -c -r1.91.2.15 bsd.lib.mk
*** share/mk/bsd.lib.mk	2002/08/07 16:31:50	1.91.2.15
--- share/mk/bsd.lib.mk	2002/11/06 03:14:26
***************
*** 328,334 ****
  	rm -f ${_LIBS}
  .endif
  .if defined(CLEANDIRS) && !empty(CLEANDIRS)
! 	rm -rf ${CLEANDIRS}
  .endif
  .endif
  
--- 328,336 ----
  	rm -f ${_LIBS}
  .endif
  .if defined(CLEANDIRS) && !empty(CLEANDIRS)
! # Work around bug in rm vs. read-only file system ("do not ...
! # modify the exit status to reflect an error")
! 	-rm -rf ${CLEANDIRS}
  .endif
  .endif
  
Index: share/mk/bsd.obj.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.obj.mk,v
retrieving revision 1.30.2.9
diff -c -r1.30.2.9 bsd.obj.mk
*** share/mk/bsd.obj.mk	2002/07/17 19:08:23	1.30.2.9
--- share/mk/bsd.obj.mk	2002/11/06 03:14:26
***************
*** 122,128 ****
  	rm -f ${CLEANFILES} 
  .endif
  .if defined(CLEANDIRS) && !empty(CLEANDIRS)
! 	rm -rf ${CLEANDIRS}
  .endif
  .endif
  
--- 122,130 ----
  	rm -f ${CLEANFILES} 
  .endif
  .if defined(CLEANDIRS) && !empty(CLEANDIRS)
! # Work around bug in rm vs. read-only file system ("do not ...
! # modify the exit status to reflect an error")
! 	-rm -rf ${CLEANDIRS}
  .endif
  .endif
  

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211060415.gA64FFi2051052>