Re: Patch files

From: Tommy Reynolds (reynolds@redhat.com)
Date: Mon Oct 01 2001 - 11:32:59 EST


Anthony <aslan@ispdr.net.au> was pleased to say:

> Hi everyone,
> I'm new to this list, and have been using Linux for just over a year now.
> I'll get straight to the point, as I think this may be a bit off-topic. I'm
> trying to apply a patch file to support a PCI printer card I've got. The
> patch file contains several patches, but only the last one is working. I'm
> prepared to try and sort it out myself, but I just need to know something
> about the patch file so I might be able to understand how it works. Can
> anyone please explain (or point me to the relevant documentation) to me
> what the following lines mean?:
>
> --- linux/include/linux/pci_ids.h.netmos Sat Sep 8 09:44:43 2001
> +++ linux/include/linux/pci_ids.h Sat Sep 8 09:44:45 2001
> @@ -1664,8 +1664,12 @@
>
> And this is from further down in the patch:
> @@ -2831,6 +2839,15 @@
>
> I'm using RedHat 7.1 with the included 2.4.2-2 kernel. Any help on this
> matter would be much appreciated.

Larry Wall's patch program uses the diff(1) program to perform the file
comparisons, so an "info diff" command is your friend. Hint: this is a context
diff.

---------------------------------------------+-----------------------------
Tommy Reynolds | mailto: <reynolds@redhat.com>
Red Hat, Inc., Embedded Development Services | Phone: +1.256.704.9286
307 Wynn Drive NW, Huntsville, AL 35805 USA | FAX: +1.236.837.3839
Senior Software Developer | Mobile: +1.919.641.2923
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:15 EST