Dear,

I have a suggestion to page

http://fedoraproject.org/wiki/Docs/CustomKernel

related to patch creation for Fedora 15.

First, on preparing the directory structure:

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
+cp -a ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig
~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.new
+
+cd ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver
+ln -s ../kernel-2.6.$ver$fedver.orig/linux-2.6.$ver.$arch/ a
+ln -s ../kernel-2.6.$ver$fedver.new/linux-2.6.$ver.$arch/ b

Then on patch creation itself:

-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
+cd ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver
+diff -Naurp a b > ../../SOURCES/linux-2.6-my-new-patch.patch


The procedure for patch creation that is on the page did not work for Fedora
15, and I noticed that all patch files uses directory "a" for original code,
and directory "b" for new code.

Regards,

Peter


-- 
Peter Senna Tschudin
[email protected]
gpg id: 48274C36
-- 
websites mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/websites

Reply via email to