Skip to contentSkip to conversation

Xen build doesn't fail when required tools are missing

bug Andrew Cooper 2 participants 3 messages Jul 11, 2024

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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 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

#2 lore raw
In reply to Andrew Cooper
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 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

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