*BSD News Article 10488


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA199 ; Fri, 29 Jan 93 13:00:14 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!usc!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!ux1!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: [386bsd] problem with new patchkit?
Message-ID: <1993Jan28.173201.15153@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <1993Jan27.191018.21657@bradford.ac.uk> <51684@shamash.cdc.com>
Date: Thu, 28 Jan 93 17:32:01 GMT
Lines: 42

In article <51684@shamash.cdc.com> pbd@runyon.cim.cdc.com (Paul Dokas) writes:
>I rescued pccons.c by backing out 603 by hand (and luck).

This should be simply an issue of mv'ing the patchlevel desired on top of
the patched program itself, ie:

	mv pccons.c.pl3 pccons.c
	rm pccons.c.pl4

Back out pccons.c from patch level 5 to patch level 3... for proper
operation of future patches, you have to delete intervening version
of the files between the patch level set and the patch level desired.
The "patches" program should actually provide you with a sheel script
to do this in case of detectable failure.

Note that to back out a patch entirely, you may need to do this with more
than one file.

>BTW, I also had a couple of patch rejects (my fault) but patches didn't
>say anything about them.  Shouldn't there be some kind of error or warning
>if a .rej is created?

It's probably possible to check for a ".rej" file, but it's not currently
done.  The problem is with the "patch" program itself (not to be confused
with the "patches" program) that comes with 386BSD.  It doesn't return
sufficient status to fully automate the process.  I haven't dived into
patching the "patch" program itself, mostly because it's currently
maintained by someone else apart from the sources for 386BSD, and I'm not
sure if the changes would make it into the next 386BSD release as a result.


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------