[Xymon] New spec file (beta test request) (was RE: Xymon 4.3.0 - Build RPMs)

Ralph Mitchell ralphmitchell at gmail.com
Tue Mar 22 20:48:17 CET 2011


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


On Fri, Mar 18, 2011 at 2:31 PM, Cleaver, Japheth <jcleaver at soe.sony.com>wrote:

> > -----Original Message-----
> > From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
> Of Tom Georgoulias
> > Sent: Friday, March 18, 2011 5:38 AM
> > To: xymon at xymon.com
> > Subject: Re: [Xymon] Xymon 4.3.0 - Build RPMs
> >
> > I think we should work towards creating a new spec file that will
> > produce a SRPM and RPMs that build cleanly in any arch, in any Redhat
> > flavored environment.
> >
> > Tom
>
> Along those lines... :)
>
> I've got an updated 4.3.0 .spec (with patches) for an RPM I've been using
> for a while now. Since this is the first post-rename release, I'd appreciate
> if others could take a look at it, rebuild, poke and prod, etc... It was
> based originally off the released spec file a while back, but has a lot of
> changes. In addition to heavy FHS mods, it has replacement init scripts that
> bypass xymon.sh/runclient.sh.
>
> I've built it internally on from RH 7, 8, and 9, and CentOS 3, 4, and 5
> (i386 and x86_64), but there may be other places it doesn't build -- if so,
> let me know. (If anyone can test on RHEL6 and a recent Fedora I'd appreciate
> it.)
>
> I've done basic sanity checks on the resulting systems, but haven't run
> them through really intensive testing. If anyone notices any problems that
> result from the pathname mods, let me know too.
>
> (Upgrade note: There are too many issues on the server  side to safely
> upgrade from 4.2.0 by package IMHO, but the client-side should include a
> variable rename in /etc/sysconfig/xymon-client in a %post scriptlet.)
>
> -jc
>
>
> spec: http://terabithia.org/rpms/xymon.spec
> SRPM: http://terabithia.org/rpms/xymon-4.3.0-0.956.src.rpm
>
> CentOS5-i386 RPMS:
>  http://terabithia.org/rpms/xymon-4.3.0-0.956.i386.rpm
>  http://terabithia.org/rpms/xymon-client-4.3.0-0.956.i386.rpm
>
> Note: The SRPM builds two superfluous binary packages as well -- you can
> ignore those unless you need them.
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110322/7ab53eb5/attachment.html>


More information about the Xymon mailing list