Tom,
Apologies for the late reply but I just noticed this e-mail looking for other xymon RPM emails!
When I am cross-building RPMs, I have found that Fedora Project's mock is extremely useful. It basically creates a chrooted environment with what you need to build your rpm for the architecture you want. More information can be found here:
http://fedoraproject.org/wiki/Projects/Mock
If you are running into problems of dependencies for 64bit and 32bit this could mitigate those issues.
On a side note, this is the arcane magic that makes FPs Koji build system work.
▸ quoted from Tom Georgoulias
On Mar 8, 2011, at 2:27 PM, Tom Georgoulias wrote:
Has anyone else successfully built i386 RPMs of xymon & xymon-client using an x86_64 build server? I'm running centos 5.5 and using this command: "rpmbuild -bb --target=i386 xymon.spec"
Here's snippet from the beginning of the rpmbuild that shows the use of 64bit:
+ cd xymon-4.3.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ PKGBUILD=1
+ make
MAKE="make" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include -I/usr/include" LDFLAGS="" `pwd`/build/genconfig.sh
and from the end, when the files are being packaged:
<snip>
Provides: config(xymon) = 4.3.0-3
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/bash /bin/sh config(xymon) = 4.3.0-3 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libcrypto.so.6()(64bit) liblber-2.3.so.0()(64bit) libldap-2.3.so.0()(64bit) libm.so.6()(64bit) libpcre.so.0()(64bit) libpng12.so.0()(64bit) librrd.so.2()(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libssl.so.6()(64bit) rtld(GNU_HASH)
Conflicts: xymon-client
I have both glibc-devel install for both archs:
$ rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" glibc
glibc-2.5-49.el5_5.7 x86_64
glibc-2.5-49.el5_5.7 i686
$ rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" glibc-devel
glibc-devel-2.5-49.el5_5.7 x86_64
glibc-devel-2.5-49.el5_5.7 i386
$ rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" libtool
libtool-1.5.22-7.el5_4 x86_64
Any tips are appreciated, as the xymon rpm build process is a little different from most RPMs I've worked with.
Thanks,
Tom
Jason Kincl