>> Can you stat these files using native tools (to bypass qemu-user, m68k >> libc, etc) and confirm their presence? > > The interesting part is that "cp -a foo/* bar/" of these files works on > the command line. What does not work is when this happens inside > debian/rules. It's related to dash as well since GNU Make (which is what runs debian/rules) uses /bin/sh which is pointing to dash:
(sid-m68k-sbuild)root@epyc:/build/hp2xx-j13jUj/hp2xx-3.4.4# dash \u@\h:\w$ cp -a /build/hp2xx-j13jUj/hp2xx-3.4.4/hp-tests/* /build/hp2xx-j13jUj/hp2xx-3.4.4/debian/hp2xx/usr/share/doc/hp2xx/hp-tests/ /bin/cp: cannot stat '/build/hp2xx-j13jUj/hp2xx-3.4.4/hp-tests/*': No such file or directory \u@\h:\w$ (sid-m68k-sbuild)root@epyc:/build/hp2xx-j13jUj/hp2xx-3.4.4# dpkg -i /tmp/libc6_2.27-8_m68k.deb /tmp/libc-bin_2.27-8_m68k.deb /tmp/libc-dev-bin_2.27-8_m68k.deb /tmp/multiarch-support_2.27-8_m68k.deb /tmp/libc6-dev_2.27-8_m68k.deb dpkg: warning: downgrading libc6:m68k from 2.28-2 to 2.27-8 (Reading database ... 47706 files and directories currently installed.) Preparing to unpack /tmp/libc6_2.27-8_m68k.deb ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline Unpacking libc6:m68k (2.27-8) over (2.28-2) ... dpkg: warning: downgrading libc-bin from 2.28-2 to 2.27-8 Preparing to unpack /tmp/libc-bin_2.27-8_m68k.deb ... Unpacking libc-bin (2.27-8) over (2.28-2) ... dpkg: warning: downgrading libc-dev-bin from 2.28-2 to 2.27-8 Preparing to unpack .../libc-dev-bin_2.27-8_m68k.deb ... Unpacking libc-dev-bin (2.27-8) over (2.28-2) ... dpkg: warning: downgrading multiarch-support from 2.28-2 to 2.27-8 Preparing to unpack .../multiarch-support_2.27-8_m68k.deb ... Unpacking multiarch-support (2.27-8) over (2.28-2) ... dpkg: warning: downgrading libc6-dev:m68k from 2.28-2 to 2.27-8 Preparing to unpack /tmp/libc6-dev_2.27-8_m68k.deb ... Unpacking libc6-dev:m68k (2.27-8) over (2.28-2) ... Setting up libc6:m68k (2.27-8) ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline Setting up libc-bin (2.27-8) ... Setting up libc-dev-bin (2.27-8) ... Setting up multiarch-support (2.27-8) ... Setting up libc6-dev:m68k (2.27-8) ... Processing triggers for man-db (2.8.4-3) ... Not building database; man-db/auto-update is not 'true'. (sid-m68k-sbuild)root@epyc:/build/hp2xx-j13jUj/hp2xx-3.4.4# dash \u@\h:\w$ cp -a /build/hp2xx-j13jUj/hp2xx-3.4.4/hp-tests/* /build/hp2xx-j13jUj/hp2xx-3.4.4/debian/hp2xx/usr/share/doc/hp2xx/hp-tests/ \u@\h:\w$ Maybe dash needs a rebuild on m68k. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913