How to build i386 rpms on x86_64?

Todd Zullinger tmz at pobox.com
Fri Nov 16 19:51:58 UTC 2007


Joe Christy wrote:
> 	I'm sure that this must have been discussed before, probably ad
> nauseum, but I can't seem to find the right search terms to google it
> successfully.
> 
> 	I would like to replace the freetype packages on my F8 x86_64 machine
> with ones where the bytecode interpreter is enabled. I see that the
> freetype spec file has a toggle for that and sure enough,

An alternative is to use the Livna freetype-freeworld package.

> rpmbuild --sign -ba --with bytecode_interpreter --with
> subpixel_rendering freetype.spec
> 
> builds me the x86_64 rpms I need for the x86_64 libraries I need.
> 
> 	Alas, for reasons of my own, I need to run the 32-bit firefox, so I
> need the i386 libraries as well, but
[...]
> 	Can someone please point me to the appropraite place to learn how to
> build i386 rpms on x86_64?

Sorry to not have any link handy, but AFAIK, you can use mock to help
out here.  setarch i386 mock -r fedora-8-i386 rebuild freetype*.src.rpm

(Where the freetype srpm has the bytecode_interpreter and
subpixel_rendering flags already set to the values you want.)

You need to add the user building the packages to the mock group
first.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No one gets too old to learn a new way of being stupid.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071116/ab79d2ad/attachment-0001.sig>


More information about the fedora-list mailing list