This is a semi-random collection of posts on nearly all things Slackware and Linux-related -- at least as I see it.
Creating a patch . . .
Posted 05-28-2011 at 01:03 PM by Lufbery
Hi all,
I thought I'd share a procedure for making patches that I learned.
Starting with information from a mailing list or newsgroup for a patch, copy the relevant information to a text file and give it a descriptive name with a .patch suffix.
Finally, take a look at the new patch and add any relevant comments:
emacs (or vi, or whatever) file.new.patch
The new patch should work fine at this point and you can go forward with compiling the software.
Regards,
I thought I'd share a procedure for making patches that I learned.
Starting with information from a mailing list or newsgroup for a patch, copy the relevant information to a text file and give it a descriptive name with a .patch suffix.
- tar -xf file.tar.bz2
- mv file file.orig
- tar -xf file.tar.bz2
- cd file
- patch -Np1 ../file.patch # Applies patch from newsgroup or other source with offsets
- cd ..
- diff -Naur file.orig file > file.new.patch #Creates the new patch file without the offsets.
Finally, take a look at the new patch and add any relevant comments:
emacs (or vi, or whatever) file.new.patch
The new patch should work fine at this point and you can go forward with compiling the software.
Regards,
Total Comments 0