Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2014 12:42:29 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r44560 - head/en_US.ISO8859-1/books/porters-handbook/makefiles
Message-ID:  <201404151242.s3FCgTQH026020@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat (ports committer)
Date: Tue Apr 15 12:42:29 2014
New Revision: 44560
URL: http://svnweb.freebsd.org/changeset/doc/44560

Log:
  Add a note about the inline strip patch feature.
  
  Sponsored by:	Absolight

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Tue Apr 15 10:08:24 2014	(r44559)
+++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Tue Apr 15 12:42:29 2014	(r44560)
@@ -1973,6 +1973,20 @@ EXTRACT_ONLY=	source.tar.gz</programlist
 	<varname>PATCHDIR</varname> directory&mdash;that directory may
 	not be writable.</para>
 
+      <tip>
+	<para>If there are multiple patches and they need mixed values
+	  for the strip parameter, it can be added alongside the patch
+	  name in <varname>PATCHFILES</varname>, e.g:</para>
+
+	<programlisting>PATCHFILES=	patch1 patch2:-p1</programlisting>
+
+	<para>This does not conflict with <link
+	    linkend="porting-master-sites-n">the master site grouping
+	    feature</link>, the following also works:</para>
+
+	<programlisting>PATCHFILES=	patch2:-p1:source2</programlisting>
+      </tip>
+
       <note>
 	<para>The tarball will have been extracted alongside the
 	  regular source by then, so there is no need to explicitly



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404151242.s3FCgTQH026020>