[Xymon] New spec file (beta test request) (was RE: Xymon 4.3.0 - Build RPMs)
Cleaver, Japheth
jcleaver at soe.sony.com
Thu Mar 24 07:09:05 CET 2011
> ________________________________________
> From: Ralph Mitchell [mailto:ralphmitchell at gmail.com]
> Sent: Tuesday, March 22, 2011 12:48 PM
> To: Cleaver, Japheth
> Cc: xymon at xymon.com
> Subject: Re: [Xymon] New spec file (beta test request) (was RE: Xymon 4.3.0 - Build RPMs)
>
> On Fedora 14 I get:
>
> Patch #53 (xymon430.client_uses_sysconfig.patch):
> + /usr/bin/patch -s -p0 -b --suffix .client_uses_sysconfig.patch --fuzz=0
> + /bin/cat /root/rpmbuild/SOURCES/xymon430.client_uses_sysconfig.patch
> 1 out of 1 hunk FAILED -- saving rejects to file client/xymonclient.cfg.DIST.rej
> error: Bad exit status from /var/tmp/rpm-tmp.bSi2vb (%prep)
>
> With patch 53 commented out in the spec file, it goes a little further, then I get:
>
> Patch #102 (xymon430.pagegen.summariesonnongreen):
> + /usr/bin/patch -s -p0 -b --suffix .pagegen.summariesonnongreen --fuzz=0
> + /bin/cat /root/rpmbuild/SOURCES/xymon430.pagegen.summariesonnongreen
> 1 out of 1 hunk FAILED -- saving rejects to file xymongen/pagegen.c.rej
> error: Bad exit status from /var/tmp/rpm-tmp.NGwGru (%prep)
>
> Then patch 54 fails:
>
> Patch #54 (xymon430.Makefile-initdvars.patch):
> + /bin/cat /root/rpmbuild/SOURCES/xymon430.Makefile-initdvars.patch
> + /usr/bin/patch -s -p0 -b --suffix .initdvars --fuzz=0
> 1 out of 1 hunk FAILED -- saving rejects to file client/Makefile.rej
> error: Bad exit status from /var/tmp/rpm-tmp.UH0Ona (%prep)
>
> BTW, I also saw that gcc-c++ is a dependency, but I have previously built xymon-4.3.0 from the source tar without having gcc-c++ installed.
>
> Anyway, with those three patches commented out in the SPEC file, it did at least build, all the way to here:
>
> + install -d /root/rpmbuild/BUILDROOT/xymon-4.3.0-0.956.fc14.x86_64/etc/rc.d/init.d
> + install -m 755 rpm/xymon-init.d /root/rpmbuild/BUILDROOT/xymon-4.3.0-0.956.fc14.x86_64/etc/rc.d/init.d/xymon
> install: cannot stat `rpm/xymon-init.d': No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.vxmhpk (%install)
>
> I guess that's a result of patch54 not being applied. I poke at it some more later.
>
> Ralph Mitchell
>
Thanks for the bug reports. It appears as though recent versions of Fedora have a stricter macro in use when applying %patch'es. Looks like some of those patches were succeeding only due to relaxed fuzziness factors.
Anyway, I've got a new SRPM rebuilding cleanly on clean F14 boxes. Can you try it and let me know if you've got any add'l problems?
http://terabithia.org/rpms/xymon-4.3.0-0.958.src.rpm
I've also posted the .spec file and the two init.d scripts (one for client, one for server) in that directory if anyone else would like to comment!
Regards,
-jc
More information about the Xymon
mailing list