Patches in build visit

From VisItusers.org

Jump to: navigation, search

Here is an example of how to add a patch to build_visit.

[edit] Create the Patch

untar -xzvf ThirdpartyLib.tar.gz
mv ThirdpartyLib ThirdpartyLib.orig
untar -xzvf ThirdpartyLib.tar.gz
# make changes in ThirdpartyLib/
diff -c ThirdpartyLib.orig/  ThirdpartyLib/
# copy diff output text

[edit] Add the Patch to build_visit

Add a function to apply the patch, the meat of the function will contain:

   patch -p0 << \EOF
... paste diff output text ...
EOF

Call the function with the source directory as a sub directory in current working directory (This case works with -p0)

Personal tools