[129849] trunk/doc-new/guide/xml/portfiledev.xml

raimue at macports.org raimue at macports.org
Sun Dec 21 07:40:37 PST 2014


Revision: 129849
          https://trac.macports.org/changeset/129849
Author:   raimue at macports.org
Date:     2014-12-21 07:40:37 -0800 (Sun, 21 Dec 2014)
Log Message:
-----------
guide: clarify section on patch file names

Using the target path is not a strict requirement for patch file names in
current practice.

Modified Paths:
--------------
    trunk/doc-new/guide/xml/portfiledev.xml

Modified: trunk/doc-new/guide/xml/portfiledev.xml
===================================================================
--- trunk/doc-new/guide/xml/portfiledev.xml	2014-12-21 15:40:06 UTC (rev 129848)
+++ trunk/doc-new/guide/xml/portfiledev.xml	2014-12-21 15:40:37 UTC (rev 129849)
@@ -576,12 +576,13 @@
       author so the modifications may be included in the next version of the
       application.</para>
 
-      <para>Generally speaking, you should create one patch file for each file
-      to be patched. Patchfile filenames should uniquely distinguish the file
-      and generally be of the form
-      <filename>patch-</filename><replaceable>&lt;directory&gt;</replaceable>-<replaceable>&lt;filename&gt;.diff</replaceable>,
-      as shown in this example:
-      <filename>patch-src-Makefile.in.diff</filename>.</para>
+      <para>Generally speaking, you should create one patch file for each
+      logical change that needs to be applied. Patchfile filenames should
+      uniquely distinguish the file and generally be of the form
+      <filename>patch-</filename><replaceable>&lt;identifier&gt;</replaceable><filename>.diff</filename>,
+      where the <replaceable>identifier</replaceable> is a hint of what the
+      patch does. For example, this can be the filename of the patched file as in
+      <filename>patch-</filename><replaceable>src-Makefile.in</replaceable><filename>.diff</filename>.</para>
 
       <para>You may use patch files that patch multiple files under these
       conditions:</para>
@@ -593,9 +594,9 @@
 
         <listitem>
           <para>If fixing a particular problem or bug requires changes in
-          multiple files -in those cases the patch filename should reference
+          multiple files&mdash;in those cases the patch filename should reference
           the problem or bug, for example:
-          <filename>patch-</filename><replaceable>&lt;destroot_variable_fix&gt;.diff</replaceable></para>
+          <filename>patch-</filename><replaceable>destdir-variable-fix</replaceable><filename>.diff</filename></para>
         </listitem>
       </itemizedlist>
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141221/3cf6fd9d/attachment-0001.html>


More information about the macports-changes mailing list