i386 package building on an amd64 system

Maxim Sobolev sobomax at FreeBSD.org
Tue Sep 18 09:42:40 PDT 2007


Dmitry Morozovsky wrote:
> On Mon, 17 Sep 2007, Maxim Sobolev wrote:
> 
> MS> > possibly stupid question: it there a way to fool jail (real, not
> MS> > "tinderbox" one) that it's working under i386 kernel? This would be
> MS> > extremely useful for local package building.
> MS> > 
> MS> > Quick googling does not reveal anything, or did I miss something obvious?
> MS> > 
> MS> > Thanks in advance.
> MS> 
> MS> Works here like a charm. The only thing is that you need to set UNAME_p=i386
> MS> UNAME_m=i386 and CPUTYPE=i686 variables in the chroot/jail.
> 
> I know aboot uname tricks ;-)
> 
> What about sysctls revealing amd64 system internals? Did you compare packages 
> built by this jailed system with native?

Any package that uses some sysctls from build machine to somehow alter 
build process should be considered b0rken.

-Maxim


More information about the freebsd-current mailing list