2008-01-06 17:14:18 -05:00
|
|
|
Pacman - Submitting Patches
|
|
|
|
===========================
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-29 23:25:02 -04:00
|
|
|
This document is here mainly to make the job of those who review patches
|
|
|
|
easier and is more of a guideline and not a strict set of rules. However,
|
|
|
|
please try to follow as much as you can.
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-27 11:45:52 -04:00
|
|
|
NOTE: Some of this is paraphrased from the kernel documentation's
|
2007-01-02 18:48:36 -05:00
|
|
|
"SubmittingPatches" file.
|
|
|
|
|
2008-07-29 23:25:02 -04:00
|
|
|
Getting the most recent source
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
Patches need to be submitted in GIT format and are best if they are against the
|
|
|
|
latest version of the code. There are several helpful tutorials for getting
|
|
|
|
started with GIT if you have not worked with it before.
|
|
|
|
|
|
|
|
* http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
|
|
|
|
* http://wiki.archlinux.org/index.php/Super_Quick_Git_Guide
|
|
|
|
|
|
|
|
The pacman code can be fetched using the following command:
|
|
|
|
|
|
|
|
git clone git://projects.archlinux.org/pacman.git
|
|
|
|
|
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
Creating your patch
|
|
|
|
-------------------
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
--
|
2008-07-29 23:25:02 -04:00
|
|
|
* use `git commit -s` for creating a commit of your changes.
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-27 11:45:52 -04:00
|
|
|
The -s allows you to credit yourself by adding a "Signed Off By" line to
|
|
|
|
indicate who has "signed" the patch - who has approved it.
|
|
|
|
|
|
|
|
Signed-off-by: Aaron Griffin <aaron@archlinux.org>
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-27 11:45:52 -04:00
|
|
|
Please use your real name and email address. Feel free to "scramble" the
|
|
|
|
address if you're afraid of spam.
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-27 11:45:52 -04:00
|
|
|
* Describe your patch.
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-29 23:25:02 -04:00
|
|
|
It helps if you describe the overview and goals of the patch in the git commit
|
|
|
|
log. This allows others to see what you intended so as to compare it to what
|
|
|
|
was actually done, and allows better feedback.
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-29 23:25:02 -04:00
|
|
|
* Use `git format-patch` to create patches.
|
2008-07-27 11:45:52 -04:00
|
|
|
|
|
|
|
Your commit message will be shown above the patch by default when you will use
|
|
|
|
`git-format-patch`, including the signoff line.
|
2008-01-06 17:14:18 -05:00
|
|
|
--
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
Submitting your patch
|
|
|
|
---------------------
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
--
|
2007-01-03 00:45:29 -05:00
|
|
|
* Send the patch to the pacman-dev mailing list
|
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
The mailing list is the primary queue for review and acceptance. Here you
|
2008-07-27 11:45:52 -04:00
|
|
|
will get feedback, and let me know the details of your patch.
|
2007-01-03 00:45:29 -05:00
|
|
|
|
2007-01-02 18:48:36 -05:00
|
|
|
* No MIME, no links, no compression, no attachments. Just plain text.
|
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
Patches should be contained in the actual body of the email. There are many
|
2008-07-29 23:25:02 -04:00
|
|
|
reasons for this. First, it makes them easier to read with any mail reader,
|
2008-01-06 17:14:18 -05:00
|
|
|
it allows easier review "at a glance", and most importantly, it allows people
|
|
|
|
to comment on exact lines of the patch in reply emails.
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-07-29 23:25:02 -04:00
|
|
|
`git send-email` allows you to send git formatted patches in plain text easily
|
|
|
|
and is the preferred method for submission to the mailing list.
|
2007-01-03 00:45:29 -05:00
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
--
|
|
|
|
|
|
|
|
After you submit
|
|
|
|
----------------
|
2007-01-03 00:45:29 -05:00
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
--
|
2007-01-03 00:45:29 -05:00
|
|
|
* Don't get discouraged
|
2007-01-02 18:48:36 -05:00
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
Any feedback you get, positive or negative, has nothing to do with you. If a
|
|
|
|
patch is rejected, try taking the suggestions into account and re-submitting.
|
|
|
|
We welcome most submissions here, and some may take a bit longer to get
|
|
|
|
looked over than others. If you think your patch got lost in the shuffle,
|
|
|
|
send another email to the list in reply to the original asking if anyone has
|
|
|
|
looked at it yet.
|
2008-07-29 23:25:02 -04:00
|
|
|
|
|
|
|
* Respond to feedback
|
|
|
|
|
|
|
|
When you do get feedback, it usually merits a response, whether this be a
|
|
|
|
resubmit of the patch with corrections or a follow-up email asking for
|
|
|
|
clarifications. When neither of these occurs, don't expect your patch to see
|
|
|
|
further review. The all-volunteer staff don't have time to fix up patches that
|
|
|
|
aren't their own.
|
|
|
|
|
2008-01-06 17:14:18 -05:00
|
|
|
--
|
|
|
|
|
|
|
|
/////
|
|
|
|
vim: set ts=2 sw=2 syntax=asciidoc et:
|
|
|
|
/////
|