在el6机器中,我得到了如下错误:
Patch #4 (test.patch):
+ /bin/cat /path/to/test.patch
+ /usr/bin/patch -s -p0 --fuzz=0
1 out of 4 hunks FAILED -- saving rejects to file ***
1 out of 1 hunk FAILED -- saving rejects to file ***
error: Bad exit status from /var/tmp/rpm-tmp.YeRtKr (%prep)但是,我可以使用逗号应用修补程序文件,如下所示:
/usr/bin/patch -s -p0 < /path/to/test.patch。
我注意到rpm默认设置--fuzz=0。有没有办法让rpm不设置--fuzz=0选项?
发布于 2014-09-15 21:50:56
请确保修补程序与上下文完全匹配。默认的"fuzz“值是"0",要求匹配是准确的。您可以通过添加
%global _default_patch_fuzz 2来恢复到Fedora中较早版本的RPM中的值,但通常建议避免这样做。
https://stackoverflow.com/questions/24951960
复制相似问题