From 28089b4774ba5bbfd2f3c06c04a907f9f636bec6 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Mon, 16 Nov 2026 18:49:16 +0200 Subject: [PATCH] docker: preserve OpenCSD copyright for perf runtime The Debian base image excludes /usr/share/doc/*, so the perf runtime staging step fails when copying the OpenCSD copyright notice. Include the libopencsd1 documentation directory and its copyright file before installing the perf dependencies. Both paths are required for dpkg to unpack the notice while the documentation exclusion is active. Signed-off-by: Denys Fedoryshchenko --- config/docker/fragment/perf.jinja2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/docker/fragment/perf.jinja2 b/config/docker/fragment/perf.jinja2 index 69485ebf73..f6d16e6aee 100644 --- a/config/docker/fragment/perf.jinja2 +++ b/config/docker/fragment/perf.jinja2 @@ -4,7 +4,11 @@ RUN dpkg --add-architecture {{ sub_arch }} {%- endif %} # clang and llvm are host tools for BPF skeletons; libraries target the build arch. -RUN apt-get update && apt-get install --no-install-recommends -y \ +# Keep the runtime bundle's copyright notice despite the base doc exclusions. +RUN printf '%s\n' 'path-include=/usr/share/doc/libopencsd1' \ + 'path-include=/usr/share/doc/libopencsd1/copyright' \ + >> /etc/dpkg/dpkg.cfg.d/excludes && \ + apt-get update && apt-get install --no-install-recommends -y \ clang \ dpkg-dev \ libc6-dev{{ pkgarch }} \