Error trying to patch source code
I'm running spamassassin and want to install the fuzzyocr module for it. One of the dependencies of fuzzyocr is 'giflib' but according to the fuzzyocr page, it needs to be patched before I install it, with a patch which they supply on the fuzzyocr download page. I've tried to install the patch and get the following error. I'm wondering if anyone can tell me what I'm doing wrong please?
Code:
[root@s1 giflib-4.1.6]# patch --ignore-whitespace --input=/root/downloads/giftext-segfault.patch To find the file to patch, I just looked through the files to find one called giftext.c or giftext.c.orig. I found giftext.c a directory lower, so specified that. What did I do wrong please? Regards, Peter |
Perhaps you should have used the -p or --strip option?
|
Try either -Np1 or -Np0 instead. I find these normally work.
Looks like: Code:
patch -Np1 /path/to/patch |
Quote:
Code:
[root@s1 giflib-4.1.6]# patch -Np1 < /root/downloads/giftext-segfault.patch peter |
All times are GMT -5. The time now is 10:40 PM. |