Hello Jake, I added '%define _default_patch_fuzz 2' to 'clamav-toaster.spec'
%define name clamav %define _default_patch_fuzz 2 It is compiled successfully. Thank you very much. Kevin 于 2010年11月16日 15:43, Jake Vickers 写道: > On 11/16/2010 12:38 AM, Kevin Qiu wrote: >> Hello list, >> >> rpmbuild --rebuild --with fedora_1164 clamav-toaster-0.96.4-1.3.39.src.rpm >> Installing clamav-toaster-0.96.4-1.3.39.src.rpm >> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wPKpMv >> + umask 022 >> + cd /root/rpmbuild/BUILD >> + LANG=C >> + export LANG >> + unset DISPLAY >> + cd /root/rpmbuild/BUILD >> + rm -rf clamav-0.96.4 >> + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/clamav-0.96.4.tar.bz2 >> + /bin/tar -xf - >> + STATUS=0 >> + '[' 0 -ne 0 ']' >> + cd clamav-0.96.4 >> + /bin/chmod -Rf a+rX,u+w,g-w,o-w . >> + echo 'Patch #0 (clamav-0.96.0.patch.bz2):' >> Patch #0 (clamav-0.96.0.patch.bz2): >> + /usr/bin/patch -s -p1 --fuzz=0 >> + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/clamav-0.96.0.patch.bz2 >> 1 out of 8 hunks FAILED -- saving rejects to file etc/clamd.conf.rej >> error: Bad exit status from /var/tmp/rpm-tmp.wPKpMv (%prep) >> >> >> RPM build errors: >> Bad exit status from /var/tmp/rpm-tmp.wPKpMv (%prep) > > Hmm. I thought I rediff'ed the patch in the new packages. I will > double check this over the weekend. > We discussed this a while back with some fixes: > http://www.mail-archive.com/[email protected]/msg29412.html >
