Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

share|improve this question
    
Might be useful: stackoverflow.com/questions/4131158/… – slm Jun 27 '13 at 2:36

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer
    
The makechrootpkg solved the problem. – warl0ck 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 at 20:51
    
Arch Linux always uses systemd, so that shouldn't be a problem. – Wieland Jun 17 at 8:30

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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