[Top][All Lists]

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

Re: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always repo

From: John Paul Adrian Glaubitz
Subject: Re: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports absolute path
Date: Tue, 09 Jul 2019 15:09:35 -0000

On 7/9/19 4:01 PM, Laurent Vivier wrote:
> What is the content of:
> /etc/binfmt.d/qemu-m68k.conf
> /proc/sys/fs/binfmt_misc/qemu-m68k

root@nofan:~> cat /etc/binfmt.d/qemu-m68k.conf
root@nofan:~> cat /proc/sys/fs/binfmt_misc/qemu-m68k
interpreter /usr/bin/qemu-m68k-static
flags: OCF
offset 0
magic 7f454c4601020100000000000000000000020004
mask ffffffffffffff00fffffffffffffffffffeffff

> what is the result of "file sid-m68k-sbuild/usr/bin/qemu-m68k-static"?
> Bonus: if you don't want to copy qemu-m68k-static into the chroot, you
> can use "--persistent" with qemu-binfmt-conf.sh.
I'm doing that and I don't have a copy of qemu in the chroot.

But I think I forgot to pass --persistent to the script while testing.


 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - address@hidden
`. `'   Freie Universitaet Berlin - address@hidden
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  qemu-user: $0 incorrectly always reports absolute path

Status in QEMU:

Bug description:
  We just ran into an issue with the Perl package on Debian/m68k when
  being built with qemu-user [1].

  The problem can be boiled down to qemu-user always reporting absolute
  paths for the shell variable $0 no matter on how the command was

  A simple reproducer is this:

  On normal system (no emulation):

  root@nofan:~> sh -c 'echo $0'

  On qemu-user:

  (sid-m68k-sbuild)root@nofan:/# sh -c 'echo $0'

  > [1] https://lists.debian.org/debian-68k/2019/07/msg00007.html

To manage notifications about this bug go to:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]