On Thu, 2020-12-10 at 10:19 +0000, Michael Tokarev wrote:

>    * do not install dropped ppc64abi32 binfmt for qemu-user[-static]
>      (Closes: #977015)

I think you also need to disable and remove it from binfmts, probably
in the preinst, so that the warning about the interpreter executable is
doesn't happen when the earlier version is still installed.

https://www.debian.org/doc/debian-policy/ap-flowcharts.html

   $ apt upgrade
   ...
   Preparing to unpack .../qemu-user-static-dbgsym_1%3a5.2+dfsg-2_amd64.deb ...
   Unpacking qemu-user-static-dbgsym (1:5.2+dfsg-2) over (1:5.2+dfsg-1) ...
   Preparing to unpack .../qemu-user-static_1%3a5.2+dfsg-2_amd64.deb ...
   Unpacking qemu-user-static (1:5.2+dfsg-2) over (1:5.2+dfsg-1) ...
   Setting up qemu-user-static (1:5.2+dfsg-2) ...
   Setting up qemu-user-static-dbgsym (1:5.2+dfsg-2) ...
   Processing triggers for man-db (2.9.3-2) ...
   
   $ adequate qemu-user-static
   qemu-user-static: broken-binfmt-interpreter qemu-ppc64abi32 => 
/usr/bin/qemu-ppc64abi32-static (No such file or directory)
   
   $ ls -l /usr/share/binfmts/qemu-ppc64abi32
   ls: cannot access '/usr/share/binfmts/qemu-ppc64abi32': No such file or 
directory
   
   $ sudo update-binfmts --display qemu-ppc64abi32
   qemu-ppc64abi32 (disabled):
        package = qemu-user-static
           type = magic
         offset = 0
          magic = 
\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15
           mask = 
\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff
    interpreter = /usr/bin/qemu-ppc64abi32-static
       detector = 
   
   $ ls -l /usr/bin/qemu-ppc64abi32-static
   ls: cannot access '/usr/bin/qemu-ppc64abi32-static': No such file or 
directory

   $ sudo update-binfmts --package qemu-user-static --remove qemu-ppc64abi32 
/usr/bin/qemu-ppc64abi32-static
   update-binfmts: warning: no executable /usr/bin/qemu-ppc64abi32-static 
found, but continuing anyway as you request
   
   $ adequate qemu-user-static

   $ sudo update-binfmts --display qemu-ppc64abi32
   update-binfmts: warning: qemu-ppc64abi32 not in database of installed binary 
formats.
   update-binfmts: exiting due to previous errors

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to