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

Re: Bug#356309: dpkg-cross and qemu



Control: tag -1 - patch + wontfix

04.11.2014 09:27, Johannes Schauer wrote:
> 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.

Aha.  That makes good sense.

> 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.

Yeah.  So it looks like this #356309 can be closed now.   Tagging as `wontfix'
for now, will close if no further comments will follow.

Thank you very much for the information!

/mjt


Reply to: