I have a question about creating a 32-bit chroot build environment on an x86-64 system. I know that mock is usually the best solution for this, but mock is only for SRPMs. I have some programs that work better (or will only work) in 32-bit mode that I can't compile via SRPMs for various reasons (usually that I want the latest CVS/SVN snapshot).
I thought it would be easy to create my own build environment using rpm --root /path/to/buildenv -ivh <list-of-i386-packages>
. True, I was able to get a working development environment this way, but everything I run in this environment still detects that the kernel runs in 64-bit mode. For example, uname -m still returns x86_64 and configure claims the system type is x86_64-unknown-linux-gnu.
Is it possible to fool the programs running in the buildenv completely so that they'll behave exactly as if running on a native i386 system?