-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremy Hallum wrote:
| I'd like to be able to cross build i386/i686 RPMS on my x86_64 RHEL5.1
| box.  I note in the rpm docs that you can put multiple archs in the
| BuildArch: field in the .spec file, but when I try to rpmbuild an
| i386/i686 rpm it says No compatible Architectures.  What package am I
| missing to allow this?
|
| Thanks for any help you can give.

Its actually generally as simple as:

setarch i386 rpmbuild --rebuild --target i{3,6}86 foo.src.rpm

Just need to have all the required 32-bit build-deps installed. No
mumbo-jumbo with any --define's necessary, its all taken care of
automagically by the setarch and --target bits. The only caveat is that
32-bit kernel builds on a 64-bit system still tend to get screwed up.

Personally, I prefer leaving my x86_64 systems purely x86_64, and build
any i{3,6}86 bits in mock. Can even use a box running x86_64 Fedora to
build an i386 RHEL5 package that way.

- --
Jarod Wilson
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFHzxBetO+bni+75QMRAtbVAKCf2zUEEdwBLQWyDATqZRGFO4fxjQCglfp1
QuKjle2nQzMwLJQP0uKC5+Y=
=ryuk
-----END PGP SIGNATURE-----

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to