5

I'm running a x86_64 Arch Linux, now I need to build packages for a i386 Arch Linux,

Is that possible? I already checked makepkg (8), it doesn't seem to support manually selection of package architecture.

I'm doing this for a few AUR packages, and I don't really want to, e.g add CLAGS

1

The devtools package provides a few helper scripts to build packages for a different architecture from PKGBUILD files.

  • The makechrootpkg solved the problem. – daisy Jun 27 '13 at 13:40
  • unfortunately, this solution doesn't work on a traditional system, without systemd, because the makechrootpkg script depends on systemd-nspawn – Peter Jun 16 '15 at 20:51
  • Arch Linux always uses systemd, so that shouldn't be a problem. – Wieland Jun 17 '15 at 8:30
3

This thread sounds like what you're looking for.

I'm not that familiar with ArchLinux so I don't understand the specifics but from what I gather it sounds like you can setup a 32-Bit chroot environment on your 64-Bit system, setup a 32-Bit toolchain within it, and build packages in there.

Also this link was referenced and looks to be exactly what you want.

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.