[buildd-tools-devel] Bug#610689: Bug#610689: sbuild: cross support

Loïc Minier lool at dooz.org
Sat Jan 22 22:57:35 UTC 2011


On Sat, Jan 22, 2011, Roger Leigh wrote:
>                                                      Is this how qemu
> works?  Would it return m68k on amd64 in an m68k chroot with qemu?

 Yup; dpkg --print-architecture seems to return the architecture dpkg
 was built for, so an armel dpkg would return armel (it would happen to
 run thanks to qemu).  dpkg-architecture runs "gcc -dumpmachine", so
 would run the chroot's gcc to guess the architecture so same story:
 gcc_armel would return an ARM triplet, but if you pass -a<arch> it
 shouldn't matter.  uname() is intercepted by qemu at least on ARM
 (don't know about other arches), so will return armv7l or something
 similar depending on the CPU you're actually emulating.

-- 
Loïc Minier





More information about the Buildd-tools-devel mailing list