Re: dpkg-cross and qemu

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

Quoting Michael Tokarev (2014-11-03 18:16:39)
> Anyone know if current interp-prefix is actually used by someone in Debian?
> It is set to /etc/qemu-binfmt/%M but this directory does not exist.  I'm
> asking because if we're to change the prefix to the one used by dpkg-cross,
> we'll have to migrate existing /etc/qemu-binfmt/ directory to a new location,
> which will be really troublesome.

maybe this is a long shot but the solution I created to a similar problem with
qemu-user might be able to help you as well. Please see #632192 about it.

Essentially, I wanted to have qemu-user be run automatically on foreign arch
binaries using the linux binfmt mechanism. This requires that one is able to
set the prefix via other means than the -L option because one would not call
qemu-user directly anymore. Thus, I wrote a patch to accept an environment
variable containing the prefix path. Upstream accepted that patch in commit
fc9c5412 in 2011.

So now you can just export QEMU_LD_PREFIX and set it to whatever you want like
for example to /usr/powerpc-linux-gnu as you expressed in #356309.

Hope this helps!

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.