/[cvs]/eggdrop1.7/doc/PATCH-HOWTO
ViewVC logotype

Contents of /eggdrop1.7/doc/PATCH-HOWTO

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Mon Nov 20 13:53:24 2006 UTC (12 years, 5 months ago) by tothwolf
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
* Updated copyright dates for 2006 (better late than never).

1 $Id: PATCH-HOWTO,v 1.3 2005/01/21 01:43:37 wcc Exp $
2
3 Patch Howto
4 Last revised: July 23, 2004
5 _____________________________________________________________________
6
7 Patch Howto
8
9
10 The purpose of this document is to show you what a patch is and how you
11 can create, apply, download, and submit a patch.
12
13 Contents:
14 1. Terms
15 2. Applying a patch
16 3. Creating and submitting a patch
17 4. Downloading a patch
18
19
20 1. Terms
21
22 The following are some common terms used in this document:
23
24 Patch
25 A patch is an update to the source code of a program (here Eggdrop).
26 Be careful, every patch is designed for a special Eggdrop version
27 and cannot be applied on every bot!
28
29
30 2. Applying a patch
31
32 To apply a patch to an Eggdrop, you have to first obtain the Eggdrop
33 source code. You should always keep a tar.gz archive with the source of
34 your current Eggdrop on your shell. In the next step, you have to change
35 to your source directory (i.e.: /home/user/eggdrop1.7.0/) and type
36 the following command:
37
38 patch -p1 < ../path.to.the/patch
39
40 Once this is complete, execute the following command:
41
42 find . -name "*.rej" -print
43
44 If it returns a list with filenames ending with .rej extension, then the
45 patch didn't apply properly. Ensure that the patch is intended for your
46 version and that you have the original source. You should also try to
47 re-download the patch to ensure that the patch is not corrupted.
48
49 If you get an error such as this:
50
51 |Index: Makefile.in
52 |===================================================================
53 |RCS file: /usr/local/cvsroot/eggdrop1.7/Makefile.in,v
54 |retrieving revision 1.38
55 |diff -u -r1.38 Makefile.in
56 |--- Makefile.in 17 Jun 2004 05:43:28 -0000 1.38
57 |+++ Makefile.in 23 Jul 2004 21:58:23 -0000
58 --------------------------
59 File to patch:
60
61 Then you should try using a different '-p' option. Try -p0 first, and then
62 -p2, -p3, etc.
63
64
65 If the patch applied properly, the only thing left to do is to recompile
66 your Eggdrop and install the new modules and binaries.
67
68
69 3. Creating and submitting a patch
70
71 If you fixed a bug and/or changed something in Eggdrop's source code, it
72 would be really nice to let the dev team know about it, so we can
73 possibly apply it to next release of Eggdrop.
74
75 There are several steps to submit a patch to the eggdev team:
76
77 1. Create a directory with original source tree and one with modified
78 source tree.
79
80 2. Run the following:
81
82 diff -urN eggdrop1.7.original eggdrop1.7.modified > patchname.patch
83
84 DO NOT add any other diff options.
85
86 3. Send an e-mail to patches@eggheads.org with the patch attached. The
87 body should contain a detailed description of what you changed and
88 why you changed it. Don't forget to include the Eggdrop version for
89 which your patch was created.
90
91 It helps if you include the major release number that the patch is
92 for in the subject line. For the 1.7.x series, the subject line should
93 look like this:
94
95 PATCH1.7: my-patch-filename.patch
96
97 You should also include the nick/handle/name you would like to be used
98 in the UPDATES1.7 file (if applicable).
99
100 Never modify src/patch.h or one of the UPDATES files. We will do it. If
101 your patch includes changes related to autotools (./configure, etc), do
102 NOT run autoconf, autoheader, etc; we will do this as well.
103
104 Also, please don't add credit lines all over the source when patching.
105 Patch contributors will receive credit in UPDATES1.7 and ChangeLog.
106
107 CVS diff's are also perfectly fine (and actually, prefered, as the patch
108 will be against the most current version of Eggdrop). To create a CVS
109 diff, simply make the changes in your currently checked-out copy of the
110 Eggdrop source, and then run:
111
112 cvs diff -R -uN > patchname.patch
113
114
115 4. Downloading a patch
116
117 Many patches for Eggdrop 1.7.x can be found at the following location:
118
119 ftp://ftp.eggheads.org/pub/eggdrop/patches/1.7
120 _____________________________________________________________________
121
122 Copyright (C) 1999 - 2006 Eggheads Development Team

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23