I'm working on enabling x64 host build workers to build i686 RPMs, now that AWS EC2 (which we use to run build workers) is deprecating i386 nodes like m1.medium in favour of x64-only instance types like m3.medium.

I could roll a custom AMI that runs a 32-bit userpsace on a 64-bit kernel, but this seems like a good opportunity to switch to using multiarch for builds.

I currently install the core dev tools and package build dependencies with

yum install yum-utils
yum groupinstall "Development Tools"
yum-builddep postgresql

... but I can't figure out how to do the multiarch equivalent. For individual packages you just:

yum install glibc-devel.i686

for example, but this won't work for groupinstall or builddep.


  • BTW, multilib_policy=all per this answer works for "groupinstall" but not yum-builddep. – Craig Ringer Jul 25 '14 at 6:48
  • 1
    Why aren't you using koji, or at least mock? It sounds like you tried to reinvent the wheel. – Michael Hampton Jul 25 '14 at 13:41
  • @MichaelHampton We're building packages for many different distros, and running a lot of tests as well as doing packaging. Distro-specific tools are great when you're building lots of packages for that distro / package format. Much less so when you're doing cross-distro releases of a few packages. As for mock: I was completely unaware of it. It looks very useful. – Craig Ringer Jul 25 '14 at 14:23
  • They will handle at least RHEL/CentOS and Fedora. If you're trying to build for SuSE, no guarantees. – Michael Hampton Jul 25 '14 at 14:27
  • @MichaelHampton I'll check it out. SuSE isn't a target of interest. It won't help us with the package building for Debian/Ubuntu, OS X, Windows, etc (which is why I've been using Jenkins to control jobs) and doesn't seem to support EC2 dynamic build worker provisioning etc - but mock looks useful, at least. – Craig Ringer Jul 25 '14 at 14:49

As you mentioned in your comment, you can use multilib_policy=all for groupinstall, and use setarch command for yum-builddep like this:

setarch i686 yum-builddep postgresql
  • Ah, that's the trick. Thankyou. – Craig Ringer Jul 25 '14 at 7:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.