Hello, How to patch correctly Wine with a patch? Because, in WineAppDB, i see more method to patch Wine. Which command is correct to patch Wine's sources : patch -p0 < NAME.patch or patch -p1 < NAME.patch Which difference there are into this 2 command? Thanks you for your answers.
Berillions wrote:> Hello, > Which command is correct to patch Wine's sources : > patch -p0 < NAME.patch or patch -p1 < NAME.patch >Usually the second one applies. This is because the original the paths in the diff-file have a prefix to distinguish the original from the patched version (for example the paths begin with a/ and b/). To apply the patch this prefix has to be removed from the path (since you apply the patch directly in the source folder). The number after the -p option defines how many slashes (/) are contained in the prefix that needs to be stripped (say n). The prefix will be stripped to the n-th slash. I hope that helps Yves