Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Sep 1997 13:09:14 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        ron@cts.com
Cc:        freebsd-questions@FreeBSD.ORG, Peter van Heusden <pvh@leftside.wcape.school.za>
Subject:   Re: CVSUP crash 
Message-ID:  <199709071209.NAA19636@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Sat, 06 Sep 1997 21:58:54 PDT." <XFMail.970906221107.ron@cts.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709071209.NAA19636>