On Fedora 14 I get:<div>   </div><div><div>   Patch #53 (xymon430.client_uses_sysconfig.patch):</div><div>   + /usr/bin/patch -s -p0 -b --suffix .client_uses_sysconfig.patch --fuzz=0</div><div>   + /bin/cat /root/rpmbuild/SOURCES/xymon430.client_uses_sysconfig.patch</div>
<div>   1 out of 1 hunk FAILED -- saving rejects to file client/xymonclient.cfg.DIST.rej</div><div>   error: Bad exit status from /var/tmp/rpm-tmp.bSi2vb (%prep)</div><div><br></div><div>With patch 53 commented out in the spec file, it goes a little further, then I get:</div>
<div><br></div><div><div>   Patch #102 (xymon430.pagegen.summariesonnongreen):</div><div>   + /usr/bin/patch -s -p0 -b --suffix .pagegen.summariesonnongreen --fuzz=0</div><div>   + /bin/cat /root/rpmbuild/SOURCES/xymon430.pagegen.summariesonnongreen</div>
<div>   1 out of 1 hunk FAILED -- saving rejects to file xymongen/pagegen.c.rej</div><div>   error: Bad exit status from /var/tmp/rpm-tmp.NGwGru (%prep)</div></div><div><br></div><div>Then patch 54 fails:</div><div><br></div>
<div><div>   Patch #54 (xymon430.Makefile-initdvars.patch):</div><div>   + /bin/cat /root/rpmbuild/SOURCES/xymon430.Makefile-initdvars.patch</div><div>   + /usr/bin/patch -s -p0 -b --suffix .initdvars --fuzz=0</div><div>   1 out of 1 hunk FAILED -- saving rejects to file client/Makefile.rej</div>
<div>   error: Bad exit status from /var/tmp/rpm-tmp.UH0Ona (%prep)</div></div><div><br></div><div>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.</div>
<div><br></div><div>Anyway, with  those three patches commented out in the SPEC file, it did at least build, all the way to here:</div><div><br></div><div><div>   + install -d /root/rpmbuild/BUILDROOT/xymon-4.3.0-0.956.fc14.x86_64/etc/rc.d/init.d</div>
<div>   + 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</div><div>   install: cannot stat `rpm/xymon-init.d': No such file or directory</div><div>   error: Bad exit status from /var/tmp/rpm-tmp.vxmhpk (%install)</div>
</div><div><br></div><div>I guess that's a result of patch54 not being applied.  I poke at it some more later.</div><div><br></div>Ralph Mitchell</div><div><br></div><div><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 2:31 PM, Cleaver, Japheth <span dir="ltr"><<a href="mailto:jcleaver@soe.sony.com">jcleaver@soe.sony.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">> -----Original Message-----<br>
> From: <a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a> [mailto:<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>] On Behalf Of Tom Georgoulias<br>
> Sent: Friday, March 18, 2011 5:38 AM<br>
> To: <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
> Subject: Re: [Xymon] Xymon 4.3.0 - Build RPMs<br>
><br>
> I think we should work towards creating a new spec file that will<br>
> produce a SRPM and RPMs that build cleanly in any arch, in any Redhat<br>
> flavored environment.<br>
><br>
> Tom<br>
<br>
Along those lines... :)<br>
<br>
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 <a href="http://xymon.sh/runclient.sh" target="_blank">xymon.sh/runclient.sh</a>.<br>

<br>
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.)<br>

<br>
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.<br>
<br>
(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.)<br>
<br>
-jc<br>
<br>
<br>
spec: <a href="http://terabithia.org/rpms/xymon.spec" target="_blank">http://terabithia.org/rpms/xymon.spec</a><br>
SRPM: <a href="http://terabithia.org/rpms/xymon-4.3.0-0.956.src.rpm" target="_blank">http://terabithia.org/rpms/xymon-4.3.0-0.956.src.rpm</a><br>
<br>
CentOS5-i386 RPMS:<br>
  <a href="http://terabithia.org/rpms/xymon-4.3.0-0.956.i386.rpm" target="_blank">http://terabithia.org/rpms/xymon-4.3.0-0.956.i386.rpm</a><br>
  <a href="http://terabithia.org/rpms/xymon-client-4.3.0-0.956.i386.rpm" target="_blank">http://terabithia.org/rpms/xymon-client-4.3.0-0.956.i386.rpm</a><br>
<br>
Note: The SRPM builds two superfluous binary packages as well -- you can ignore those unless you need them.<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div><br></div>