From owner-freebsd-questions@FreeBSD.ORG Sun Nov 11 15:03:28 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 651EA16A417 for ; Sun, 11 Nov 2007 15:03:28 +0000 (UTC) (envelope-from m.apitz@oclcpica.org) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id C4DBB13C4A7 for ; Sun, 11 Nov 2007 15:03:26 +0000 (UTC) (envelope-from m.apitz@oclcpica.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id PAA07738 for ; Sun, 11 Nov 2007 15:56:58 +0100 (CET) (envelope-from m.apitz@oclcpica.org) Received: from ppp-82-135-2-147.dynamic.mnet-online.de(82.135.2.147) by hunter.Sisis.de via smap (V2.1) id xmab07705; Sun, 11 Nov 07 15:56:41 +0100 Received: (from guru@localhost) by rebelion.Sisis.de (8.13.8/8.13.8/Submit) id lABF2peW015664 for freebsd-questions@freebsd.org; Sun, 11 Nov 2007 16:02:51 +0100 (CET) (envelope-from m.apitz@oclcpica.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to m.apitz@oclcpica.org using -f Date: Sun, 11 Nov 2007 16:02:51 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20071111150251.GA15448@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD 6.2-RELEASE (i386) Subject: problems with building a patch X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2007 15:03:28 -0000 Hello, I've build a patch for 'nn-6.7.3' to add support for RFC1522 to my beloved news-reader. Before giving it away I was trying it on a fresh workspace of the /usr/ports/news/nn and run into the problem that new files which brings the patch to the tree are always created in the current working dir, even if I create them before with touch(1), existing files, like 'answer.c' in the example below, get patched correctly: $ /usr/ports/news/nn/work $ touch nn-6.7.3/PATCH.RFC1522 $ patch < ../myRFC1522.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -N -r -u -X exclude nn-6.7.3/PATCH.RFC1522 nn-6.7.3.patched/PATCH.RFC1522 |--- nn-6.7.3/PATCH.RFC1522 Thu Jan 1 01:00:00 1970 |+++ nn-6.7.3.patched/PATCH.RFC1522 Sat Nov 10 11:04:58 2007 -------------------------- (Creating file PATCH.RFC1522...) Patching file PATCH.RFC1522 using Plan A... Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff -N -r -u -X exclude nn-6.7.3/answer.c nn-6.7.3.patched/answer.c |--- nn-6.7.3/answer.c Wed Mar 30 21:28:22 2005 |+++ nn-6.7.3.patched/answer.c Fri Nov 9 12:58:26 2007 -------------------------- Patching file nn-6.7.3/answer.c using Plan A... Hunk #1 succeeded at 30. Hunk #2 succeeded at 155. Hunk #3 succeeded at 166. Hunk #4 succeeded at 278. Hunk #5 succeeded at 291. Hunk #6 succeeded at 458. Hunk #7 succeeded at 487. Hunk #8 succeeded at 690. Hunk #9 succeeded at 1017. done $ ls -l total 10 -rw-r--r-- 1 guru wheel 5342 11 nov 15:39 PATCH.RFC1522 -rw-r--r-- 1 guru wheel 0 11 nov 15:39 PATCH.RFC1522.orig drwxr-xr-x 6 guru wheel 4096 11 nov 15:39 nn-6.7.3 $ ls -l nn-6.7.3/answer.c* -rw-r--r-- 1 guru wheel 23903 11 nov 15:39 nn-6.7.3/answer.c -rw-r--r-- 1 guru wheel 22625 30 mar 2005 nn-6.7.3/answer.c.orig What is the reason for this? I'm a bit lost :-( Thx matthias -- Matthias Apitz