From owner-freebsd-bugs Tue Nov 7 8: 0:10 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 4A0FF37B4C5 for ; Tue, 7 Nov 2000 08:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA26414; Tue, 7 Nov 2000 08:00:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 692D737B479 for ; Tue, 7 Nov 2000 07:55:58 -0800 (PST) Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0CDD6E2A5B for ; Tue, 7 Nov 2000 07:55:57 -0800 (PST) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id HAA23996 for ; Tue, 7 Nov 2000 07:55:54 -0800 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda23994; Tue Nov 7 07:55:35 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.1/8.9.1) id eA7FtaL12161 for ; Tue, 7 Nov 2000 07:55:36 -0800 (PST) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdo12159; Tue Nov 7 07:55:31 2000 Received: (from cy@localhost) by cwsys.cwsent.com (8.11.1/8.9.1) id eA7FtUR32046; Tue, 7 Nov 2000 07:55:30 -0800 (PST) Message-Id: <200011071555.eA7FtUR32046@cwsys.cwsent.com> Date: Tue, 7 Nov 2000 07:55:30 -0800 (PST) From: Cy.Schubert@uumail.gov.bc.ca Reply-To: Cy.Schubert@uumail.gov.bc.ca To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/22661: Mergemaster Fails with R/O NFS Mounted /usr/src Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22661 >Category: bin >Synopsis: Mergemaster Fails with R/O NFS Mounted /usr/src >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 07 08:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Cy Schubert >Release: FreeBSD 4.2-BETA i386 >Organization: ITSD Province of BC >Environment: FreeBSD cwsys 4.2-BETA FreeBSD 4.2-BETA #0: Mon Nov 6 20:45:35 PST 2000 root@cwsys:/opt2/obj/usr/opt/cvs-420b-001106/src/sys/CWSYS i386 >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] mtree -deU -f /usr/opt/cvs-420b-001106/src/etc/mtree/BSD.include.dist -p /usr/libdata/perl/5.00503/mach cd /; rm -f /sys; ln -s usr/src/sys sys cd /usr/share/locale; set - `cat /usr/opt/cvs-420b-001106/src/etc/local e.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done 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 Stop in /usr/opt/cvs-420b-001106/src/etc. *** FATAL ERROR: Cannot 'cd' to /usr/src/etc and install files to the temproot environment cwtest# >How-To-Repeat: See description. >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 2000 +++ 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 ''; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message