`checkinstall` on Devuan Chimaera (equiv to Debian Bullseye) fails with `FileNotFoundError:`
Host environment
- Operating system: Devuan Chimaera (equiv to Debian Bullseye)
- OS/kernel version: 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux
- Architecture: amd64
- QEMU flavor: qemu-system-x86_64
- QEMU version: tested with source for v6.1.1 and v6.1.0
- QEMU command line:
To produce error:
Attempting to build and install gives error on checkinstall
go get -d github.com/qemu/qemu
cd ${GOPATH}/src/github.com/qemu/qemu
qemu_version=v6.1.1
git checkout ${qemu_version}
./configure --target-list=$(uname -m)-softmmu
make -j $(nproc)
checkinstall
Description of problem
Configure and compile work without errors, but checkinstall
fails with following error.
Installing with make install...
========================= Installation results ===========================
changing dir to build for make "install"...
make[1]: Entering directory '/root/go/src/github.com/qemu/qemu/build'
GIT ui/keycodemapdb meson tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc capstone slirp
[1/20] Generating qemu-version.h with a meson_exe.py custom command
[1/2] Installing files.
Traceback (most recent call last):
File "/root/go/src/github.com/qemu/qemu/meson/mesonbuild/mesonmain.py", line 140, in run
return options.run_func(options)
File "/root/go/src/github.com/qemu/qemu/meson/mesonbuild/minstall.py", line 544, in run
installer.do_install(datafilename)
File "/root/go/src/github.com/qemu/qemu/meson/mesonbuild/minstall.py", line 362, in do_install
self.install_targets(d)
File "/root/go/src/github.com/qemu/qemu/meson/mesonbuild/minstall.py", line 472, in install_targets
file_copied = self.do_copyfile(fname, outname, makedirs=(d.dirmaker, outdir))
File "/root/go/src/github.com/qemu/qemu/meson/mesonbuild/minstall.py", line 277, in do_copyfile
shutil.copystat(from_file, to_file)
File "/usr/lib/python3.9/shutil.py", line 375, in copystat
lookup("utime")(dst, ns=(st.st_atime_ns, st.st_mtime_ns),
FileNotFoundError: [Errno 2] No such file or directory
Installing subdir /root/go/src/github.com/qemu/qemu/qga/run to /usr/local/var/run
Installing trace/trace-events-all to /usr/local/share/qemu
FAILED: meson-install
/usr/bin/python3 /root/go/src/github.com/qemu/qemu/meson/meson.py install --no-rebuild
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:156: run-ninja] Error 1
make[1]: Leaving directory '/root/go/src/github.com/qemu/qemu/build'
make: *** [GNUmakefile:11: install] Error 2
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
Additional information
- All packages from requirements installed.
- command
utime
is available fromatfs
package
I believe error may be related to the from_file
/to_file
in: meson/mesonbuild/minstall.py
line 277.