how to make a patch

Roland Smith rsmith at
Tue Oct 16 12:55:23 PDT 2007

On Tue, Oct 16, 2007 at 03:10:57PM +0000, Aryeh M. Friedman wrote:
> I found and fixed a bug in one of the ports how do I make a patch file
> (I only changed one line in one file) and who do I send it to?

First, you must have saved a copy of the original file before you
changed it;

  cp file file.orig

Then you edit the file. Next you crate the patch;

  diff -u file.orig file >youredits.diff

Then you start the send-pr script, and import the contents of the diff
file in the 'Fix' section. See the send-pr manual. 

Be sure to use the 'ports' category, and add the word '[PATCH]' to the
begin of the desription line. Check if your e-mail address if correct,
otherwise you won't receive replies and follow-ups.

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list