From nobody@FreeBSD.org  Sun Feb 23 18:58:43 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 072E3AE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 18:58:43 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id E11901A0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 18:58:42 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1NIwgOx032230
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 18:58:42 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1NIwgVS032226;
	Sun, 23 Feb 2014 18:58:42 GMT
	(envelope-from nobody)
Message-Id: <201402231858.s1NIwgVS032226@cgiserv.freebsd.org>
Date: Sun, 23 Feb 2014 18:58:42 GMT
From: David Naylor <dbn@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsdpatch fails to apply patch when compiling FreeBSD 8.3 (aka '-b .orig' issue)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186984
>Category:       bin
>Synopsis:       bsdpatch(1) fails to apply patch when compiling FreeBSD 8.3 (aka '-b .orig' issue)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 23 19:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Wed Apr 16 01:20:38 UTC 2014
>Originator:     David Naylor
>Release:        
>Organization:
>Environment:
FreeBSD dragonbsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 d44ce30(releng/10.0): Sun Feb  9 20:11:55 SAST 2014     root@dragon.dg:/tmp/home/freebsd/10.0/src/sys/MODULAR  amd64
>Description:
On a fresh checkout of the source code to FreeBSD 8.3 (under /home/freebsd/8.3/src), I get the following compilation error:

patch -s -b .orig -o context.c < /home/freebsd/8.3/src/gnu/usr.bin/diff/context.c.diff /home/freebsd/8.3/src/gnu/usr.bin/diff/../../../contrib/diff/src/context.c
  I can't seem to find a patch in there anywhere.
*** Error code 2
>How-To-Repeat:
Checkout 8.3 source code and run the above command.  
>Fix:
Remove the '-b .orig' parameter.  

>Release-Note:
>Audit-Trail:
>Unformatted:
