1 # Copyright (C) 2004-2008, Parrot Foundation.
6 docs/submissions.pod - Parrot Submission Instructions
10 How to submit bug reports, patches and new files to Parrot.
12 =head1 How To Submit A Bug Report
14 If you encounter an error while working with Parrot, and don't understand what
15 is causing it, then create a bug report using the F<parrotbug> utility. The
16 simplest way to use it is to run
20 in the distribution's root directory, and follow the prompts.
22 However, if you do know how to fix the problem you encountered, then think
23 about submitting a patch, or (see below) getting commit privileges.
25 =head1 How To Submit A Patch
27 Try to keep your patches specific to a single change, and ensure that your
28 change does not break any tests. Do this by running C<make test>. If there is
29 no test for the fixed bug, please provide one.
37 In the following examples, F<parrot> contains the Parrot distribution, and
38 F<workingdir> contains F<parrot>. The name F<workingdir> is just a placeholder
39 for whatever the distribution's parent directory is called on your machine.
57 If you are working with a checked out copy of parrot then please generate
58 your patch with C<svn diff>.
62 svn diff > my_contribution.patch
66 If you are working from a released distribution of Parrot and the change you
67 wish to make affects only one or two files, then you can supply a C<diff> for
68 each file. The C<diff> should be created in F<parrot>. Please be sure to
69 create a unified diff, with C<diff -u>.
72 diff -u docs/submissions.pod docs/submissions.new > submissions.patch
74 Win32 users will probably need to specify C<-ub>.
76 =item Recursive C<diff>
78 If the change is more wide-ranging, then create an identical copy of F<parrot>
79 in F<workingdir> and rename it F<parrot.new>. Modify F<parrot.new> and run a
80 recursive C<diff> on the two directories to create your patch. The C<diff>
81 should be created in F<workingdir>.
84 diff -ur --exclude='.svn' parrot parrot.new > docs.patch
86 Mac OS X users should also specify C<--exclude=.DS_Store>.
90 Each and every patch is an important contribution to Parrot and it's important
91 that these efforts are recognized. To that end, the F<CREDITS> file contains
92 an informal list of contributors and their contributions made to Parrot. Patch
93 submitters are encouraged to include a new or updated entry for themselves in
94 F<CREDITS> as part of their patch.
96 The format for entries in F<CREDITS> is defined at the top of the file.
102 Go to Parrot's ticket tracking system at
103 L<https://trac.parrot.org/parrot/>. Log in, or create an account if you
108 Select "New Ticket" L<https://trac.parrot.org/parrot/newticket>.
112 Give a clear and concise Summary.
114 Prefix it with a C<[PATCH]> identifier.
118 The Description should contain an explanation of the purpose of the patch, and
119 a list of all files affected with summary of the changes made in each file.
120 Optionally, the output of the C<diffstat(1)> utility when run on your patch(s)
121 may be included at the bottom of the message body.
125 Set the Type of the ticket to "patch". Set other relevant drop-down
126 menus, such as Version (the version of Parrot where you encountered the
127 problem), Platform, or Severity.
131 Check the box for "I have files to attach to this ticket"
133 Double-check that you've actually done this, because it's easy to forget.
135 B<DO NOT> paste the patch file content into the Description.
139 Click the "Create ticket" button. On the next page attach your patch
144 =head1 Applying Patches
146 You may wish to apply a patch submitted by someone else before the patch is
147 incorporated into SVN.
149 For single C<diff> patches or C<svn> patches, copy the patch file to
153 patch -p0 < some.patch
155 For recursive C<diff> patches, copy the patch file to F<workingdir>, and run:
158 patch -p0 < some.patch
160 In order to be on the safe side run 'make test' before actually committing
163 =head2 Configuration of files to ignore
165 Sometimes new files will be created in the configuration and build process of
166 Parrot. These files should not show up when checking the distribution with
172 perl tools/dev/manicheck.pl
174 The list of these ignore files can be set up with:
176 svn propedit svn:ignore <PATH>
178 In order to keep the two different checks synchronized,
179 the MANIFEST and MANIFEST.SKIP file should be regenerated with:
181 perl tools/dev/mk_manifest_and_skip.pl
184 =head1 How To Submit Something New
186 If you have a new feature to add to Parrot, such as a new test.
192 Add your new file path(s), relative to F<parrot>, to the file MANIFEST. Create
193 a patch for the MANIFEST file according to the instructions in B<How To Submit
198 If you have a new test script ending in C<.t>, some mailers may become confused
199 and consider it an application/x-troff. One way around this (for *nix users) is
200 to diff the file against /dev/null like this:
203 diff -u /dev/null newfile.t > newfile.patch
207 Go to Parrot's ticket tracking system at
208 L<https://trac.parrot.org/parrot/>. Log in, or create an account if you
213 Select "New Ticket" L<https://trac.parrot.org/parrot/newticket>.
217 Give a clear and concise Summary.
219 Prefix it with a C<[NEW]> identifier.
223 The Description should contain an explanation of the purpose of the feature
224 you are adding. Optionally, include the output of the C<diffstat(1)> utility
225 when run on your patch(es).
229 Set the Type of the ticket to "patch". Set other relevant drop-down
230 menus, such as Version, Platform, or Severity.
234 Check the box for "I have files to attach to this ticket"
236 Double-check that you've actually done this, because it's easy to forget.
238 B<DO NOT> paste the content of the new file or files into the body of the
243 Click the "Create ticket" button. On the next page attach the patch for
244 MANIFEST and your new file(s).
248 =head1 What Happens Next?
250 Trac creates a ticket for the submission, and you will receive an automatic reply
251 with details of the ticket identifier. This identifier should be used in all
252 further correspondence concerning the submission.
254 Everyone on the list sees the submission, and can comment on it. A developer
255 with SVN commit authority will commit it to SVN once it is clear that it is the
258 Even developers with SVN commit authority stick to this scheme for larger or
259 more complex changes, to allow time for peer review.
261 You can check the progress of your submission at the Parrot bugs page
262 L<http://bugs6.perl.org/>. If you have trouble logging in try username C<guest>
263 with password C<guest>.
265 A Parrot Bug Summary page is also available from
266 L<https://rt.perl.org/rt3/NoAuth/parrot/Overview.html>
268 A list of all the unresolved patches is at
269 L<http://www.parrotcode.org/openpatches.html>
271 =head1 Patches for the Parrot website
273 The L<http://www.parrot.org> website is hosted in a Drupal CMS. Submit
274 changes through the usual ticket interface in Trac.
276 =head1 Getting Commit Privileges
278 If you are interested in getting commit privileges to Parrot, here is
285 Submit several high quality patches (and have them committed) via the process
286 described in this document. This process may take weeks or months.
290 Obtain a Trac account at L<https://trac.parrot.org/parrot>
294 Submit a Parrot Contributor License Agreement; this document signifies that you
295 have the authority to license your work to Parrot Foundation for inclusion in
296 their projects. You may need to discuss this with your employer if you
297 contribute to Parrot on work time or with work resources, or depending on your
298 employment agreement.
300 L<http://www.parrot.org/files/parrot_cla.pdf>
304 Request commit access via the C<parrot-dev> mailing list, or via IRC
305 (#parrot on irc.parrot.org). The existing committers will discuss your request in
306 the next couple of weeks.
308 If approved, a metacommitter will update the permissions to allow you to commit
309 to Parrot; see C<RESPONSIBLE_PARTIES> for the current list. Welcome aboard!
313 Thanks for your help!