[buildd-tools-devel] Bug#604268: Bug#604268: Bug#604268: Bug#604268: Bug#604268: QEMU linux-user support

Loïc Minier lool at dooz.org
Tue Jan 25 14:44:29 UTC 2011


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?

   Cheers,
-- 
Loïc Minier





More information about the Buildd-tools-devel mailing list