From owner-freebsd-stable Tue Nov 5 20:15:32 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A346737B401 for ; Tue, 5 Nov 2002 20:15:29 -0800 (PST) Received: from motgate4.mot.com (motgate4.mot.com [144.189.100.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90EAB43E3B for ; Tue, 5 Nov 2002 20:15:28 -0800 (PST) (envelope-from rittle@latour.rsch.comm.mot.com) Received: from mothost.mot.com (mothost.mot.com [129.188.137.101]) by motgate4.mot.com (Motorola/Motgate4) with ESMTP id gA64FJ8Z018202; Tue, 5 Nov 2002 21:15:19 -0700 (MST) Received: [from latour.rsch.comm.mot.com (latour.rsch.comm.mot.com [145.1.80.116]) by mothost.mot.com (MOT-pobox 2.0) with ESMTP id VAA19716; Tue, 5 Nov 2002 21:15:19 -0700 (MST)] Received: from latour.rsch.comm.mot.com (localhost.rsch.comm.mot.com [127.0.0.1]) by latour.rsch.comm.mot.com (8.12.6/8.12.6) with ESMTP id gA64FFGC051053; Tue, 5 Nov 2002 22:15:15 -0600 (CST) (envelope-from rittle@latour.rsch.comm.mot.com) Received: (from rittle@localhost) by latour.rsch.comm.mot.com (8.12.6/8.12.6/Submit) id gA64FFi2051052; Tue, 5 Nov 2002 22:15:15 -0600 (CST) Date: Tue, 5 Nov 2002 22:15:15 -0600 (CST) From: Loren James Rittle Message-Id: <200211060415.gA64FFi2051052@latour.rsch.comm.mot.com> To: stable@freebsd.org Subject: Re: buildworld broken on ro /usr/src In-Reply-To: <20021106003423.GB307@lenny.anarcat.ath.cx> Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs Cc: anarcat@anarcat.ath.cx Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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