From owner-freebsd-questions Sun Sep 7 05:11:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA15245 for questions-outgoing; Sun, 7 Sep 1997 05:11:23 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA15240 for ; Sun, 7 Sep 1997 05:11:15 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id NAA19636; Sun, 7 Sep 1997 13:09:15 +0100 (BST) Message-Id: <199709071209.NAA19636@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: ron@cts.com cc: freebsd-questions@FreeBSD.ORG, Peter van Heusden Subject: Re: CVSUP crash In-reply-to: Your message of "Sat, 06 Sep 1997 21:58:54 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 07 Sep 1997 13:09:14 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The notable was wrong. I *always* run cvsup as ``cvs''. Your best bet is to remove the offending file (or directory if you're not sure which file caused the problem). Cvsup will just fetch the whole thing again. The only thing you need to do as root is the "cvs update" or "cvs co" unless you trick the system into not mtree'ing /usr/src. This can be done (I would think) by moving ``src'' to ``realsrc'' and sym-linking ``realsrc'' back to ``src''. This should stop mtree from making /usr/src un-checkout-able by a normal user. I just have a perl script that does a `chown -R cvs.research` before doing the checkout as user cvs (the script is suid root and only executable by group research): --------------------------------------------------- #! /usr/bin/suidperl $< = $>; $ENV{'PATH'} = '/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin'; $ENV{'CVSROOT'} = '/home/ncvs'; chdir('/usr'); umask 002; print "Forcing cvs.research permissions on src, ports & doc\n"; system('chown -R cvs.research src ports doc'); system('chmod -R ug+w,o-w src ports doc'); print "Changing to user cvs\n"; $< = (getpwnam('cvs'))[2]; print "Checking out source\n"; system('cvs co src'); print "Building source (All.log)\n"; chdir('/usr/src/sys/i386/boot'); system('make clean >All.log 2>&1'); chdir('/usr/src'); system('make -DNOCLEAN buildworld >>All.log 2>&1 &'); chdir('/usr'); print "Checking out ports\n"; system('cvs co ports'); print "Checking out doc\n"; system('cvs co doc'); print "Building doc\n"; chdir('/usr/doc'); system('make'); print "Installing doc\n"; system('make install'); --------------------------------------------------- Cleaning the ``boot'' directory seems to be necessary. I haven't had time to find out why. > I had problems cvsuping the same set of patches. I was told by a hackers > notable (unamed) that I should *always* run cvsup as root. Seemed as good a > suggestion as any, so I wiped my archive and started over again. It took an > entire day at 28800 but it worked. > > Skepticly yours, > > Ron McDaniels > Ron@cts.com > > > On 06-Sep-97 Peter van Heusden wrote: > >>When trying to update my ports collection with CVSUP, CVSUP crashes with > >the error message: > > > >*** runtime error: > >*** ASSERT failed > >*** file "../src/RCSDelta.m3", line 182 > > > >this seems to occur whilst trying to add a delta to > >ports/www/apache-current/patches/patch-aa (log enclosed below). > > > >Has anyone else seen anything like this? Does anyone know what I should do > >to fix this? > > > >Thanks, > >Peter > > > >---START LOG > >Updating collection ports-all/cvs > > Edit ports/www/apache-current/Makefile > > Add delta 1.1 95.08.28.13.28.45 jkh > > Add delta 1.2 95.09.19.07.03.17 pst > > Add delta 1.39 97.08.25.23.02.41 ache > > etc., &etc > >ports/www/apache-current/Makefile: Checksum mismatch -- will transfer > >entire file > > Edit ports/www/apache-current/patches/patch-aa > > Add delta 1.1 95.08.28.13.28.46 jkh > > Add delta 1.2 95.09.23.18.47.54 pst > > Add delta 1.19 97.07.14.21.26.18 ache > > Add delta 1.20 97.08.12.18.20.02 peter > > > > etc, &more etc.> > >*** > >*** runtime error: > >*** ASSERT failed > >*** file "../src/RCSDelta.m3", line 182 > >*** > > > >Abort trap (core dumped) > >---END LOG > >-- > >Peter van Heusden | Computers Networks Reds Greens Justice Peace Beer Africa > >pvh@leftside.wcape.school.za | Support the SAMWU 50 litres campaign! > > > > ---------------------------------- > E-Mail: ron@cts.com > Date: 09/06/97 > Time: 21:58:54 > > This message was sent by XF-Mail > ---------------------------------- -- Brian , Don't _EVER_ lose your sense of humour....