Page 1 of 1

How to install a .patch

Posted: Wed Jun 26, 2013 9:15 pm
by iStefffff
Hi everyone,

I just have a simple question.
What do I do with a .patch file?
How do I get it to work.

I read lots of forum posts but everything I found is a not very helpful "patch .p0 < "patchname.txt" command...
But I have no idea what I have to do with that. Well, I know that it has to be done on the terminal (Mac) but I don't get it to work.
And I dont have a .txt file but a .patch file.

Could anyone help my please. I'm freaking out. All I found is a not working link:

I want to install this patch: ... group_id=9
Or is any blender version out there that has this patch pre-installed?

Posted: Thu Jun 27, 2013 4:48 pm
by stiv
See the bit on How do I Apply Patches? here: ... ss/Patches

* a patch file is a text file. the file extension (.txt .patch .whatever) does not matter to patch

* Note the syntax:
patch -p0 < mypatch.txt

That is patch dash-p-zero. The -p controls how much of the path in the filenames gets stripped off. This can be important depending on what folder you try to apply the patch from.

Generally, you want to do this in the blender root directory.
Try -p0 first, if it fails, try -p1.

* if something goes wrong (like not finding the files to patch) you rerun the command with the -R flag to reverse everything and get back to your starting point.

Posted: Fri Jun 28, 2013 7:26 pm
by iStefffff
Thank you very much. You explained it very good.

Helped me a lot :)

I hope I'll get this to work.