From 955c47d5bfdffbb9e89f1f8a967cff4a7d0f74e8 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Thu, 19 Jun 2025 16:52:15 +0200 Subject: [PATCH] config: docker: base: host-tools: add gcovr `gcovr` is needed to post-process coverage data. However, the version available in Debian Bookworm is old and lacks features we need, such as generating `lcov`-compatible tracefiles. Install it using `pip` as a temporary workaround. Signed-off-by: Arnaud Ferraris --- config/docker/base/host-tools.jinja2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/docker/base/host-tools.jinja2 b/config/docker/base/host-tools.jinja2 index b3c06b28d9..cf1f3335a6 100644 --- a/config/docker/base/host-tools.jinja2 +++ b/config/docker/base/host-tools.jinja2 @@ -95,6 +95,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ # Install dtschema for dtbs_check RUN pip3 install dtschema --break-system-packages +# Install gcovr from pip as bookworm's version is too old +# FIXME: revert to installing with apt after switching to trixie +RUN pip3 install gcovr --break-system-packages + # Download and build pahole v1.28 RUN wget -c https://web.git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-1.29.tar.gz && \ tar -xzf pahole-1.29.tar.gz && \