dpkg-cross and qemu

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

dpkg-cross and qemu

Michael Tokarev
Hello.

We in qemu have a bugreport open for a long time, #356309,
which asks qemu to to set default interpreter prefix in qemu
to the same value used by dpkg-cross.

I'm not really sure what this stuff is used for to start with,
and if this change is still relevant.

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.

Thanks,

/mjt


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]
Archive: https://lists.debian.org/5457B877.4090005@...

Reply | Threaded
Open this post in threaded view
|

Re: dpkg-cross and qemu

Johannes Schauer
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


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]
Archive: https://lists.debian.org/20141104062725.13657.48291@hoothoot

Reply | Threaded
Open this post in threaded view
|

Re: Bug#356309: dpkg-cross and qemu

Michael Tokarev
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


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]
Archive: https://lists.debian.org/5461B6EA.5020607@...