Files
xen/automation/build/opensuse/tumbleweed-x86_64.dockerfile
Andrew Cooper fdc2023945 CI: Use pipefail in scripts/build
Marek noticed that some builds were failing with:

  + cd dist/install
  + find
  + cpio -R 0:0 -o -H newc
  ./automation/scripts/build: line 111: cpio: command not found
  + gzip

but succeeding overall, and producing a zero length xen-tools.cpio.gz as an
artefact.

In fact, it's all of:

  archlinux:current
  debian:12-x86_32
  fedora:41
  opensuse:tumbleweed
  ubuntu (all versions)

Add cpio into all of these containers, including opensuse leap for good
measure, and use pipefail in the build script.

Fixes: 4611ae6fb8 ("CI: save toolstack artifact as cpio.gz")
Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Denis Mukhin <dmukhin@ford.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
2025-09-13 01:02:28 +01:00

78 lines
1.4 KiB
Docker

# syntax=docker/dockerfile:1
FROM --platform=linux/amd64 opensuse/tumbleweed
LABEL maintainer.name="The Xen Project"
LABEL maintainer.email="xen-devel@lists.xenproject.org"
ENV XEN_TARGET_ARCH=x86_64
RUN <<EOF
#!/bin/bash
set -e
useradd --create-home user
zypper refresh
zypper dist-upgrade -y --no-recommends
DEPS=(
# Xen
bison
checkpolicy
clang
diffutils
findutils
flex
gawk
gcc
make
python3
# Tools (general)
cpio
git-core
gzip
patch
perl
pkg-config
wget
# libxenguest dombuilder
'pkgconfig(bzip2)'
'pkgconfig(libzstd)'
'pkgconfig(lzo2)'
'pkgconfig(liblzma)'
'pkgconfig(zlib)'
# libacpi
acpica
# libxl
'pkgconfig(uuid)'
'pkgconfig(yajl)'
# Header Check
gcc-c++
# xentop
'pkgconfig(ncurses)'
# Python bindings
python3-devel
python3-setuptools
# Ocaml bindings/oxenstored
ocaml
ocaml-findlib
# Stubdom (download/extract)
bzip2
tar
# Qemu build
meson
ninja
'pkgconfig(glib-2.0)'
'pkgconfig(pixman-1)'
python3-packaging
)
zypper install -y --no-recommends "${DEPS[@]}"
zypper clean -a
EOF
USER user
WORKDIR /build