From owner-freebsd-stable@FreeBSD.ORG Fri Sep 19 01:02:45 2003 Return-Path: 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 5F63616A4B3 for ; Fri, 19 Sep 2003 01:02:45 -0700 (PDT) Received: from smtp804.mail.sc5.yahoo.com (smtp804.mail.sc5.yahoo.com [66.163.168.183]) by mx1.FreeBSD.org (Postfix) with SMTP id AC73A43FB1 for ; Fri, 19 Sep 2003 01:02:43 -0700 (PDT) (envelope-from sewall@ix.netcom.com) Received: from adsl-63-198-181-47.dsl.snfc21.pacbell.net (HELO ix.netcom.com) (sewall@pacbell.net@63.198.181.47 with plain) by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP; 19 Sep 2003 08:02:43 -0000 Message-ID: <3F6AB822.8070809@ix.netcom.com> Date: Fri, 19 Sep 2003 01:02:42 -0700 From: "Scott R. Sewall" Organization: Rosetta software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Don Lewis References: <200309190725.h8J7PojS032794@gw.catspoiler.org> In-Reply-To: <200309190725.h8J7PojS032794@gw.catspoiler.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-stable@FreeBSD.org Subject: Re: Help running 'make release' w/ r/o CVSROOT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 08:02:45 -0000 Don Lewis wrote: >On 18 Sep, Scott R. Sewall wrote: > > >>I'm trying to run 'make release' with my CVSROOT NFS mounted read-only. >> >>I'm running 4.9-PRERELEASE, cvsup'd from last Sunday 9/14. >> >>Is this possible do to? >> >> > > >Yes it is. I've done a number of release builds on my -stable box and >CVSROOT/val-tags hasn't been touched in ages even though my locally >mounted /home/ncvs is mounted read-write. I also did a -current 'make >release' on another box that has the /home/ncvs NFS mounted. I think it >might be mounted read-write, but root gets turned into nobody who does't >have write access. I know that is true because 'cvs update' without the >-R option barfs because it lacks write permission. > My CVS repository does not have the file val-tags. I also don't see this file on the web interface to the CVS repository at freebsd.org. How is this file created? > > > >>The error message is: >> >>makewhatis /usr/release/usr/share/perl/man >>if [ -f /etc/resolv.conf ]; then cp -p /etc/resolv.conf >>/usr/release/etc; fi >>cd /usr/release/usr && rm -rf src && cvs -R -d /home/ncvs co -P -r >>RELENG_4 src >>cvs [checkout aborted]: cannot write /home/ncvs/CVSROOT/val-tags: >>Permission denied >>*** Error code 1 >> >>Stop in /usr/src/release. >> >> > >Interesting ... 'cvs -R' shouldn't be trying to write anything in >/home/ncvs. Also, if /home/ncvs is actually mounted read-only, it looks >to me like write attempts should return an EROFS error instead of EPERM. > > Right you are, /home/ncvs is mounted r/w and exported r/w. None of the directories allow world write access and they're owned by cvsupin. Thus the error of EPERM not EROFS. -- Scott