How to install a .patch

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

Moderators: jesterKing, stiv

iStefffff
Posts: 2
Joined: Wed Jun 26, 2013 9:07 pm

How to install a .patch

Postby 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: http://mikepan.homeip.net/compileblender


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

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

Postby stiv » Thu Jun 27, 2013 4:48 pm

See the bit on How do I Apply Patches? here:
http://wiki.blender.org/index.php/Dev:D ... 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.

iStefffff
Posts: 2
Joined: Wed Jun 26, 2013 9:07 pm

Postby 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.


Return to “Testing Builds”

Who is online

Users browsing this forum: No registered users and 0 guests