Re: [PATCH] polystrap-binfmt for preparing the build host

Johannes Schauer <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <20110630130916.GA32369@hoothoot>
Hi,

On Wed, Jun 29, 2011 at 10:46:57PM +0200, Yann Dirson wrote:
> * working on arm and armel targets on the same host
> * targetting squeeze and wheezy on the same host
> * developpers with no root access to the build host
> * experimenting with changes to the -L tree used qemu, without
>   simultaneously breaking builds 
> 
> To put it short, /etc/qemu-binfmt/* solve a per-user problem in a
> system-wide manner.  This is bad in itself.
An idea of mine to solve all those issues is, if qemu-user-static would
interpret an environment variable containing the elf interpreter prefix
that is normally given with -L.

I opened a wishlist bug for qemu here: 

If this is implemented in qemu, one would do something like this:

export QEMU_LD_PREFIX=/tmp/debian-sid-armel/
fakeroot fakechroot chroot /tmp/debian-sid-armel/ dpkg --configure -a

and by that one would no longer need /etc/qemu-binfmt/, would also
always have the fitting shared libraries for each built, would need no
root access to the build host and so on - probably targets all the
issues you have correctly listed above.

what do you think?

cheers, josch
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.