if we have foo.patch and a dir called source in our current directory we do this:
$ cd source $ patch -p0 < ../foo.patch if this fails you can try -p1 or omitting the -p completely. If it still fails you may have a bad patch or one meant for a different version of the source.
