[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#732551: make --foreign / qemu-user-static easier



On Thu, 2013-12-19 at 14:33 -0400, Joey Hess wrote:
> Ian Campbell wrote:
> > That would get you the foreign binary of qemu-user-static, wouldn't it?
> > 
> > What is needed is to copy /usr/bin/qemu-$ARCH-static from the host
> > environment.
> 
> Yes, but then nothing will upgrade it, which is important since user
> mode qemu often has missing syscalls that get added in newer versions.

True, this is why tools like schroot copy it on each entry (actually, UI
think schroot uses a bind mount, but anyway...)

> deboostrap could arrange for the package to be installed in the chroot,
> using multiarch.

That would be neat I suppose.

Totally out of scope for this bugreport but I wonder how hard it would
be to create a chroot which used the host versions of things like bash
etc but the target versions of things like gcc. I expect any effort
expended on that would be better spent on getting the proper cross
environment stuff working...

Ian.


Reply to: