How to install a .patch

User-contributed CVS development builds. Please test and give feedback!

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Wed Jun 26, 2013 9:07 pm

How to install a .patch

Post by iStefffff » Wed Jun 26, 2013 9:15 pm

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?

Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Thu Jun 27, 2013 4:48 pm

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.

Posts: 0
Joined: Wed Jun 26, 2013 9:07 pm

Post by iStefffff » Fri Jun 28, 2013 7:26 pm

Thank you very much. You explained it very good.

Helped me a lot :)

I hope I'll get this to work.

Post Reply