
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.miscdebris.net/plplot_wiki/index.php?action=history&amp;feed=atom&amp;title=Apply_a_patch</id>
		<title>Apply a patch - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.miscdebris.net/plplot_wiki/index.php?action=history&amp;feed=atom&amp;title=Apply_a_patch"/>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Apply_a_patch&amp;action=history"/>
		<updated>2026-05-16T02:47:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.4</generator>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Apply_a_patch&amp;diff=2180&amp;oldid=prev</id>
		<title>Smekal at 19:02, 24 August 2009</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Apply_a_patch&amp;diff=2180&amp;oldid=prev"/>
				<updated>2009-08-24T19:02:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&#039;diff diff-contentalign-left&#039;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:02, 24 August 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;actually patching cairo.c)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;actually patching cairo.c)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;software@raven&amp;gt; patch --dry-run -p1 \&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;software@raven&amp;gt; patch --dry-run -p1 \&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt; /home/irwin/cairo-xcairo-offscreen-rendering-v2.patch&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&amp;lt; /home/irwin/cairo-xcairo-offscreen-rendering-v2.patch&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;patching file drivers/cairo.c&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;patching file drivers/cairo.c&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The lack of further messages after the &amp;quot;patching file&amp;quot; message indicates the&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The lack of further messages after the &amp;quot;patching file&amp;quot; message indicates the&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Smekal</name></author>	</entry>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Apply_a_patch&amp;diff=2179&amp;oldid=prev</id>
		<title>Smekal: Created page with &#039;The key elements to pay attention to with the patch application are to make sure you are in the proper directory within the source tree, and the --dry-run and -p options for patc…&#039;</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Apply_a_patch&amp;diff=2179&amp;oldid=prev"/>
				<updated>2009-08-24T18:59:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;The key elements to pay attention to with the patch application are to make sure you are in the proper directory within the source tree, and the --dry-run and -p options for patc…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The key elements to pay attention to with the patch application are to make&lt;br /&gt;
sure you are in the proper directory within the source tree, and the&lt;br /&gt;
--dry-run and -p options for patch such as -p0, -p1, etc.  Basically, the&lt;br /&gt;
number after the -p option is the number of subdirectory prefixes to strip&lt;br /&gt;
off the file names in the patch. Hez&amp;#039;s current patch has file names&lt;br /&gt;
a/drivers/cairo.c and b/drivers/cairo.c so you apply -p1 to strip off just&lt;br /&gt;
the a/ and b/ from the names and patch will find drivers/cairo.c to patch&lt;br /&gt;
_IF_ you are in the top-level of the source tree. However, if you are in the&lt;br /&gt;
drivers subdirectory of the source tree, then you have to use -p2 to strip&lt;br /&gt;
off a/drivers/ and b/drivers from the cairo.c name. Hope that makes sense.&lt;br /&gt;
The --dry-run option lets you know (a) whether the files to be patched can&lt;br /&gt;
be found (i.e., whether you are in a directory that is consistent with the&lt;br /&gt;
-p option you have used), and (b) whether the patch applies cleanly to those&lt;br /&gt;
files (without actually applying the patch).  In any case just remember that&lt;br /&gt;
--dry-run gives you a chance to experiment with different -p numbers until&lt;br /&gt;
you discover the correct one for the directory that you are in.&lt;br /&gt;
&lt;br /&gt;
Here is how I discovered that Hez&amp;#039;s patch would apply cleanly (without&lt;br /&gt;
actually patching cairo.c)&lt;br /&gt;
&lt;br /&gt;
software@raven&amp;gt; patch --dry-run -p1 \&lt;br /&gt;
&amp;lt; /home/irwin/cairo-xcairo-offscreen-rendering-v2.patch&lt;br /&gt;
patching file drivers/cairo.c&lt;br /&gt;
&lt;br /&gt;
The lack of further messages after the &amp;quot;patching file&amp;quot; message indicates the&lt;br /&gt;
file was found and the patch would apply cleanly.  Remove the --dry-run&lt;br /&gt;
option when you actually are ready to apply the patch.  After you apply the&lt;br /&gt;
patch and evaluate it, you might want to remove it again from your source&lt;br /&gt;
tree . For that, you use the --reverse option of patch (which reverses the&lt;br /&gt;
effect of the patch).  Of course, again, you would first want to use the&lt;br /&gt;
--dry-run and --reverse options combined to make sure you are in the right&lt;br /&gt;
directory with a consistent -p number used before you remove the --dry-run&lt;br /&gt;
option.&lt;/div&gt;</summary>
		<author><name>Smekal</name></author>	</entry>

	</feed>