From owner-freebsd-bugs Tue Oct 23 22:33:42 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from straylight.ringlet.net (sentinel.office1.bg [217.75.129.210]) by hub.freebsd.org (Postfix) with SMTP id 63BF037B401 for ; Tue, 23 Oct 2001 22:33:38 -0700 (PDT) Received: (qmail 7041 invoked by uid 1000); 24 Oct 2001 05:33:28 -0000 Date: Wed, 24 Oct 2001 08:33:28 +0300 From: Peter Pentchev To: Alan Larson Cc: freebsd-bugs@freebsd.org Subject: Re: problem with patch Message-ID: <20011024083328.A4792@straylight.oblivion.bg> Mail-Followup-To: Alan Larson , freebsd-bugs@freebsd.org References: <200110232039.NAA90656@ground0.paix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110232039.NAA90656@ground0.paix.net>; from larson@eng.paix.net on Tue, Oct 23, 2001 at 01:39:19PM -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Oct 23, 2001 at 01:39:19PM -0700, Alan Larson wrote: > I just happened across a problem with the patch utility. > > Running the appended script with a freshly installed 4.4-release > causes patch to give an error message and a core file. > > It says: > Patching file LOCAL using Plan A... > assertion "fillsrc==p_end+1 || fillsrc==repl_beginning" failed: "/usr/src/gnu/usr.bin/patch/pch.c", line 768 > Abort (core dumped) > > > I would claim that this is the wrong response. > > > Note, some sort of error is appropriate -- the patch file is for > 4.3-release, and doesn't match the file that is being patched. > > Alan There are known issues with the version of GNU patch that is in the FreeBSD base system. I'd recomment always installing the devel/patch port, which installs a more recent version of GNU patch, and then using gpatch instead of patch. G'luck, Peter -- This would easier understand fewer had omitted. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message