FreeBSD Bugzilla – Attachment 106628 Details for
Bug 147268
Imporve Porters Handbook section 4.4 - Patching
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
147268_1.diff
147268_1.diff (text/x-diff; charset=US-ASCII), 1.66 KB, created by
Gabor Pali
on 2010-09-03 16:08:25 UTC
(
hide
)
Description:
147268_1.diff
Filename:
MIME Type:
Creator:
Gabor Pali
Created:
2010-09-03 16:08:25 UTC
Size:
1.66 KB
patch
obsolete
>Index: book.sgml >=================================================================== >RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v >retrieving revision 1.1073 >diff -u -r1.1073 book.sgml >--- book.sgml 25 Aug 2010 09:55:41 -0000 1.1073 >+++ book.sgml 3 Sep 2010 15:03:52 -0000 >@@ -662,7 +662,13 @@ > To make fixes and upgrades easier, you should avoid having more than > one patch fix the same file (e.g., <filename>patch-file</filename> and > <filename>patch-file2</filename> both changing >- <filename><makevar>WRKSRC</makevar>/foobar.c</filename>).</para> >+ <filename><makevar>WRKSRC</makevar>/foobar.c</filename>). >+ Note that if the path of a patched file contains an underscore >+ (<literal>_</literal>) character, the patch needs to have two >+ underscores instead in its name. For example, to patch a file >+ named <filename>src/freeglut_joystick.c</filename>, the >+ corresponding patch should be named >+ <filename>patch-src-freeglut__joystick.c</filename>.</para> > > <para>Please only use characters <literal>[-+._a-zA-Z0-9]</literal> for > naming your patches. Do not use any other characters besides them. >@@ -735,6 +741,14 @@ > > <programlisting>USE_DOS2UNIX= yes > DOS2UNIX_REGEX= .*\.(c|cpp|h)</programlisting> >+ >+ <para>If you want to create a patch file based off of an >+ existing file, you can copy it with an >+ <filename>.orig</filename> extension, and then modify the >+ original one. Run <maketarget>makepatch</maketarget>, and >+ this will write out an appropriate patch file to the <filename >+ class="directory">files</filename> directory of the >+ port.</para> > </sect1> > > <sect1 id="slow-configure">
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 147268
:
106627
| 106628