Xen build doesn't fail when required tools are missing
So I was playing with rebuilding the OpenSUSE Tumbleweed container from scratch. (I've ~halfed it's size by correcting the dependencies).
When diffutils is missing (package containing the cmp utility), a build of Xen proceeds as:
make: Entering directory '/build/xen'
make: hostname: No such file or directory
UPD include/xen/compile.h
Xen 4.19-rc/bin/sh: line 1: cmp: command not found
UPD include/compat/.xlat/xen.lst/bin/sh: line 1: cmp: command not found
UPD include/compat/.xlat/arch-x86/pmu.lst/bin/sh: line 1: cmp: command not found/bin/sh: line 1: cmp: command not found
without failing.
I assert this is a bad thing and we should see about fixing it.
A separate problem is that none of our docs mention diffutils, and OpenSUSE is the only distro I've found where they're not pulled in transitively. However, I'm planning a large rewrite to README when I've finished the Gitlab CI cleanup.
~Andrew
Bah - correcting Anthony's email (again).
(I clearly need to purge my address book more thoroughly.)
Quoted 27 lines · Andrew Cooper
So I was playing with rebuilding the OpenSUSE Tumbleweed container from scratch. (I've ~halfed it's size by correcting the dependencies).
When diffutils is missing (package containing the
cmputility), a build of Xen proceeds as:make: Entering directory '/build/xen'
make: hostname: No such file or directory
UPDinclude/xen/compile.h
Xen 4.19-rc/bin/sh: line 1: cmp: command not found
UPDinclude/compat/.xlat/xen.lst/bin/sh: line 1: cmp: command not found
UPDinclude/compat/.xlat/arch-x86/pmu.lst/bin/sh: line 1: cmp: command not found/bin/sh: line 1: cmp: command not foundwithout failing.
I assert this is a bad thing and we should see about fixing it.
A separate problem is that none of our docs mention diffutils, and OpenSUSE is the only distro I've found where they're not pulled in transitively. However, I'm planning a large rewrite to README when I've finished the Gitlab CI cleanup.
~Andrew
Quoted 17 lines · Andrew Cooper
So I was playing with rebuilding the OpenSUSE Tumbleweed container from scratch. (I've ~halfed it's size by correcting the dependencies).
When diffutils is missing (package containing the
cmputility), a build of Xen proceeds as:make: Entering directory '/build/xen'
make: hostname: No such file or directory
UPDinclude/xen/compile.h
Xen 4.19-rc/bin/sh: line 1: cmp: command not found
UPDinclude/compat/.xlat/xen.lst/bin/sh: line 1: cmp: command not found
UPDinclude/compat/.xlat/arch-x86/pmu.lst/bin/sh: line 1: cmp: command not found/bin/sh: line 1: cmp: command not found
Quoted 1 line
without failing.
Build-wise that's correct behavior: "cmp" missing means the filechk rule will update the file, even if in reality it may not need updating. The resulting build therefore is going to be correct. The error messages may be irritating, yet if we silenced them you wouldn't have noticed the missing tool.
Jan