From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Schmid Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: patch command question Date: Fri, 15 Nov 2002 14:05:14 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037387036 15015 80.91.224.249 (15 Nov 2002 19:03:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 19:03:56 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Clkw-0003tv-00 for ; Fri, 15 Nov 2002 20:03:54 +0100 Original-Received: (qmail 26538 invoked by uid 5); 15 Nov 2002 19:05:28 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 26529 invoked by uid 49493); 15 Nov 2002 19:05:28 -0000 Original-Received: from glenn.schmid@sunysb.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-0.7/5.0):. Processed in 0.456336 secs); 15 Nov 2002 19:05:28 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 15 Nov 2002 19:05:27 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5M00K3LT11MQ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Nov 2002 14:05:27 -0500 (EST) Original-Received: from nmta.cc.sunysb.edu (nmta.cc.stonybrook.edu [129.49.2.77]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5M00MGGT0SUW@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Nov 2002 14:05:17 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.4a July 24, 2000 X-MIMETrack: Serialize by Router on nmta.cc.sunysb.edu/DoIT(Release 5.0.11 |July 24, 2002) at 11/15/2002 02:05:17 PM Xref: main.gmane.org gmane.os.tru64.managers:2463 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2463 Thanks to Arrigo, Harald, Tru64user and Tim. The consensus was: =-=-=-= That's a unified diff. Normal Tru64 patch doesn't understand it. You need to download and install GNU patch. (and diff while you're about it, since GNU unified diffs are much easier to read than normal context diffs!) =-=-=-= I've downloaded the GNU patch and have already patched two of my name servers. HP: How about incorporating an updated 'patch' command into 5.2? :-) Thanx again =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Original post: I'm trying to apply the patches to my BIND 8.3.3 source code from I've never used the 'patch' command before, but the man page for it makes it seem as though it will accept the patches from the above diff file and apply them. As a test, I took one of the patches and placed it in a file and did the following: # patch -b -i db_defs_patch.txt Hmm... I can't seem to find a patch in there anywhere. The file it was supposed to patch (db_defs.h) was located in the same directory. The man page said that if the "Index:" was in the patch file, then it would know which file to patch, so I figured I didn't need to supply it as a parameter to 'patch'. Have I forgottten a flag or can anyone spot my mistake? the contents of my db_defs_patch.txt file are: Index: bin/named/db_defs.h =================================================================== RCS file: /proj/cvs/isc/bind8/src/bin/named/db_defs.h,v retrieving revision 8.47 diff -u -r8.47 db_defs.h --- bin/named/db_defs.h 18 May 2002 01:02:53 -0000 8.47 +++ bin/named/db_defs.h 30 Oct 2002 11:16:06 -0000 @@ -78,7 +78,7 @@ */ /* max length of data in RR data field */ -#define MAXDATA (2*MAXDNAME + 5*INT32SZ) +#define MAXDATA (3*MAXDNAME + 5*INT32SZ) /* max length of data in a TXT RR segment */ #define MAXCHARSTRING 255 Thanks a lot