From owner-freebsd-bugs Wed Nov 8 6:20: 8 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 18E6F37B479 for ; Wed, 8 Nov 2000 06:20:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA32921; Wed, 8 Nov 2000 06:20:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Wed, 8 Nov 2000 06:20:06 -0800 (PST) Message-Id: <200011081420.GAA32921@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Cy Schubert - ITSD Open Systems Group Subject: Re: bin/22661: Mergemaster Fails with R/O NFS Mounted /usr/src Reply-To: Cy Schubert - ITSD Open Systems Group Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/22661; it has been noted by GNATS. From: Cy Schubert - ITSD Open Systems Group To: Bruce Evans Cc: Cy.Schubert@uumail.gov.bc.ca, FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/22661: Mergemaster Fails with R/O NFS Mounted /usr/src Date: Wed, 08 Nov 2000 06:13:13 -0800 In message , Bruce Eva ns writes: > On Tue, 7 Nov 2000 Cy.Schubert@uumail.gov.bc.ca wrote: > > > >Description: > > > > Installing 4.2-BETA on a system from read-only NFS mounted /usr/src and > > /usr/obj, mergemaster fails with the following: > > > > [lines removed] > > cd /usr/share/nls; set - `cat /usr/opt/cvs-420b-001106/src/etc/locale.a > > lias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; > > shift; shift; done; rm -rf POSIX; ln -s C POSIX > > rm: ASCII: Read-only file system > > *** Error code 1 > > I think this can only fail if /usr/share/nls is read-only. That is correct. > > > >Fix: > > > > Based upon the diffs between mergemaster 1.6.2.3 and 1.6.2.4, here's my > > workaround: > > > > --- src/usr.sbin/mergemaster/mergemaster.sh.orig Wed Nov 1 00:34:30 200 > 0 > > +++ src/usr.sbin/mergemaster/mergemaster.sh Tue Nov 7 06:38:46 2000 > > @@ -428,7 +428,7 @@ > > esac > > > > { cd ${SOURCEDIR} && > > - make DESTDIR=${DESTDIR} distrib-dirs && > > + touch .foobar && rm .foobar && make DESTDIR=${DESTDIR} distrib-dirs > > make DESTDIR=${TEMPROOT} distrib-dirs && > > make DESTDIR=${TEMPROOT} -DNO_MAKEDEV distribution;} || > > { echo ''; > > Making distrib-dirs has other problems. It updates ${DESTDIR} without > asking, and shows bugs in the support for the SHARED=symlinks case. Then it should be removed, rather than my test for a r/o fs. > > Bruce > Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message