[buildd-tools-devel] Bug#604268: Bug#604268: Bug#604268: Bug#604268: Bug#604268: Bug#604268: QEMU linux-user support
Roger Leigh
rleigh at codelibre.net
Wed Jul 27 19:18:05 UTC 2011
On Wed, Jul 27, 2011 at 08:01:13PM +0200, Julian Andres Klode wrote:
> On Tue, Jun 14, 2011 at 01:25:42PM +0200, Julian Andres Klode wrote:
> > On Tue, Jan 25, 2011 at 03:44:29PM +0100, Loïc Minier wrote:
> > > On Mon, Jan 24, 2011, Loïc Minier wrote:
> > > > While we could try parsing binfmt-support's format or binfmt_misc's
> > > > format, I think the best thing here would be to check with the
> > > > binfmt-support maintainer. I wonder whether binfmt-support is
> > > > Debian/Ubuntu specific. If it is, then poking the kernel format or
> > > > trying to run a binary might be best. If it's also used on other
> > > > distros, perhaps we can get some command which tells us what the
> > > > interpreter is for a specific binary. If that makes sense to you, I
> > > > can poke Colin about it, and perhaps open a bug report for the
> > > > binfmt-support changes.
> > >
> > > I've asked Colin about this, and he implemented support for that in
> > > trunk! :-) (I tested it, there was an issue in the original version
> > > but r109 fixed it)
> > >
> > > (bzr+ssh://bzr.debian.org/bzr/binfmt-support/trunk or
> > > http://bzr.debian.org/binfmt-support/trunk)
> > >
> > > % sudo apt-get build-dep binfmt-support
> > > % ./configure && make
> > > % src/update-binfmts --find $chroot/bin/true
> > > /usr/bin/qemu-arm-static
> > >
> > > Note that the --find might return multiple interpreters; in this case,
> > > the kernel tries them one by one.
> > >
> > > Perhaps we should do something like find the first static interpreter,
> > > or always copy the first interpreter and warn if there is more than
> > > one?
> > >
> > Attaching my solution for this.
> >
> Updated as per IRC comments. Changes since v1:
>
> * Run in setup-recover as well
> * Reindent in accordance to other schroot scripts
> * Simply touch the emulator if it does not exist yet instead of
> trying to write a script there.
Many thanks. I've added this to git on the master and schroot-1.4
branches in the contrib/setup.d directory for additional setup
scripts (it won't be used by default at the moment, I'm afraid).
Once we have a multiarchified qemu and we can properly update it
in the chroot, as well as only enabling it when required, we can
have it run by default.
Thanks again,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110727/8109611f/attachment.pgp>
More information about the Buildd-tools-devel
mailing list