LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Understand Linux Patches (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-understand-linux-patches-698757/)

sbc 01-21-2009 12:06 AM

How to Understand Linux Patches
 
Hi,
I am studying linux patches for applying them to my system.In patch there are many lines like :-
Only in linux-2.6.10/crypto: api.o
Only in linux-2.6.10/crypto: .api.o.cmd

I don't understand what "Only in" means here and also what are .cmd files . I searched on google but didn't find meaning .
Can any one provide links to understand these things ?


--sbc

Quigi 01-21-2009 08:31 PM

Disclaimer: I've never studied a patch like you did.

The "Only in" looks like output from "diff -r" ( :study: man diff). It does a recursive diff across two directories, say A and B. If both contain a plain file with the same name, say c, diff shows differences between A/c and B/c. If a file d only exists in one of the directories, diff reports, e.g., "Only in A: d".

A basic patch is typically produced by "diff" (i.e., it's saved output from "diff") and applied by "patch". This is very basic, and I don't think it would handle addition of new files (one case where you'd get "Only in") properly. I'm sure that Linux patches have much better ways for applying them, both more sophisticated and easier to use.


All times are GMT -5. The time now is 11:36 AM.