<div>Hi,</div>
<div> </div>
<div>I am trying to build fedora 15 kernel (2.6.39) on a fedora 15 machine (2.6.38.8.-25.fc15.i686.PAE). </div>
<div>I am following the document : <a href="http://fedoraproject.org/wiki/Building_a_custom_kernel">http://fedoraproject.org/wiki/Building_a_custom_kernel</a></div>
<div>I made a few changes to the source code (only prink statements) and generated a patch as given in the doc by the name <strong>linux-2.6-my-new-patch.patch</strong>.</div>
<div>I added the following lines to the spec file  at the appropriate places:</div>
<div>  <strong>Patch 20005:  linux-2.6-my-new-patch.patch</strong></div>
<div><strong>  ApplyPatch   linux-2.6-my-new-patch.patch</strong></div>
<div> </div>
<div>But as soon as I build the kernel I get the error : </div>
<div> </div>
<div><strong>ERROR: Patch linux-2.6-my-new-patch.patch not listed as a source patch in spec file</strong></div>
<div><strong>error: Bad exit status from /var/tmp/rpm-tmp/t07KDk (%prep)</strong></div>
<div><strong></strong> </div>
<div><strong>RPM build error: </strong></div>
<div><strong>        Bad exit status from /var/tmp/rpm-tmp/t07KDk (%prep)</strong></div>
<div> </div>
<div> </div>
<div>I am doing everything according to the doc. Please let me know what could have gone wrong.</div>
<div> </div>
<div>Thanks</div>
<div>Vaibhav Jain</div>
<div> </div>
<div>  </div>
<div> </div>