Something weird is going on.

When I try the following:

cd SOURCES
tar xjvf clamav-0.96.3.tar.bz2
bunzip2 clamav-0.96.0.patch.bz2
cd clamav-0.96.3
patch -p1 <../clamav-0.96.0.patch

I get some warnings about offsets / fuzz, but it is alright.

Now, if I use the command options that show up for you (forcing fuzz to be 0):

/usr/bin/patch -s -p1 --fuzz=0 <../clamav-0.96.0.patch

I get the same error message.



Then I wondered why on Centos, it does not use these options and searched fro 
them in the SOURCE folder:

grep -R -l -i 'fuzz=0' *

No file contains that.

Now, this looks like there is some ENV variable set on your system that adds 
parameters to patch by default that does not exist on other systems.

After some google, I found that indeed 'fuzz=0' is indeed part of the default 
rpmbuild environment on Fedora.
Now, there are two possible solutions for it, we could re-base the patch (e.g. 
make sure no fuzz occurs) and repackage the thing, OR you could try adding

%define _default_patch_fuzz 2

to the spec file and see if that helps!

I'll work on the no-fuzz package in the meantime - perhaps Jake can put that on 
the server...

Martin

--
Martin Waschbüsch
IT-Dienstleistungen
Lautensackstr. 16
80687 München

Telefon: +49 89 57005708
Fax: +49 89 57868023
Mobil: +49 170 2189794
mar...@waschbuesch.de
http://martin.waschbuesch.de

Am 06.10.2010 um 19:12 schrieb petrus:

> The contents off clamd.conf.rej
> 
> --- etc/clamd.conf      2010-03-31 08:17:12.000000000 -0400
> +++ etc/clamd.conf      2010-04-09 01:34:54.000000000 -0400
> @@ -49,7 +49,7 @@
> 
>  # Enable verbose logging.
>  # Default: no
> -#LogVerbose yes
> +LogVerbose yes
> 
>  # This option allows you to save a process identifier of the listening
>  # daemon (main thread).
> 
> 
> 
> 
> On Wed, Oct 6, 2010 at 6:38 PM, Eric Shubert <e...@shubes.net> wrote:
> petrus wrote:
> qtp-whatami returns
> qtp-whatami v0.3.6
> DISTRO=Fedora
> OSVER=11
> QTARCH=i686
> QTKERN=2.6.30.10-105.2.23.fc11.i586
> BUILD_DIST=fedora_11
> BUILD_DIR=/root/rpmbuild
> This machine's OS is supported and has been tested
> 
> so using fedora_11, still produces the same error.
> Patch #0 (clamav-0.96.0.patch.bz2):
> + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/clamav-0.96.0.patch.bz2
> + /usr/bin/patch -s -p1 --fuzz=0
> 1 out of 8 hunks FAILED -- saving rejects to file etc/clamd.conf.rej
> error: Bad exit status from /var/tmp/rpm-tmp.djCRZE (%prep)
> 
> 
> RPM build errors:
>    Bad exit status from /var/tmp/rpm-tmp.djCRZE (%prep)
> 
> So we need to find out why that patch is failing on fedora.
> 
> 
> -- 
> -Eric 'shubes'
> 
> 
> ---------------------------------------------------------------------------------
> Qmailtoaster is sponsored by Vickers Consulting Group 
> (www.vickersconsulting.com)
>   Vickers Consulting Group offers Qmailtoaster support and installations.
>     If you need professional help with your setup, contact them today!
> ---------------------------------------------------------------------------------
>    Please visit qmailtoaster.com for the latest news, updates, and packages.
>         To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
>    For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
> 
> 
> 


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
    Vickers Consulting Group offers Qmailtoaster support and installations.
      If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
     Please visit qmailtoaster.com for the latest news, updates, and packages.

      To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
     For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to