<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Some programs (like VIM) modify file in-place. Some programs (I
think 'perl -pie' may do this) will read the file into memory, and
when it's time to write the file back out, it deletes the original,
and writes the new one. They made a note of this in the wiki
article:<br>
"Using vim on FC14, it treated the hard link as a hard link and thus
the above technique failed. It was necessary to repeat the original
copy used for the .orig directory for the .new directory. Note that
this uses twice the space."<br>
<br>
Perhaps there's a trick to vim to work around it, but I don't know
of any.<br>
<br>
My suggestion would be to hardlink the entire source tree, and then
afterwards delete the destination hard links for the files you want
to modify, and re-copy (normal copy) the original files again.<br>
<br>
-Kai Meyer<br>
<br>
On 09/07/2011 04:16 PM, Vaibhav Jain wrote:
<blockquote
cite="mid:CAKuUYSynsCN34PFGDXJTMHZJexNiXFWLpcBCb+BoVFWC1MGzoA@mail.gmail.com"
type="cite">Hi,<br>
<br>
I am trying to build a custom fedora kernel on a fedora (FC15)
machine by reading the <br>
article: <a moz-do-not-send="true"
href="http://fedoraproject.org/wiki/Building_a_custom_kernel">http://fedoraproject.org/wiki/Building_a_custom_kernel</a><br>
but i am unable to make any progress as my changes are not
getting reflected. <br>
So I have query about the procedure given in the article. The
article asks to first create <br>
hardliks between files in .new and .orig directories and then to
make changes and to .new directory and to<br>
generate a patch by a diff between the .orig and .new directories.
But I am just wondering if the <br>
files in both the directories are hardlinks then how can diff work
because after changing a file in .new directory<br>
the file in .orig directory should also change.<br>
<br>
<pre>cp -r ~/rpmbuild/BUILD/kernel-2.6.$ver.$fedver/linux-2.6.$ver.$arch ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig
cp -al ~/rpmbuild/BUILD/kernel-2.6.$ver.$fedver.orig ~/rpmbuild/BUILD/kernel-2.6.$ver.$fedver.new
cd ~/rpmbuild/BUILD
diff -uNrp kernel-2.6.$ver.$fedver.orig kernel-2.6.$ver.$fedver.new > ../SOURCES/linux-2.6-my-new-patch.patch
</pre>
<br>
<br>
Thanks<br>
Vaibhav Jain<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kernelnewbies mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
</blockquote>
</body>
</html>