From 128004866d34181dacea7d681d72eb2d249ea964 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 19 Jun 2024 13:41:58 -0400 Subject: [PATCH] Fix compile crash on glib compilation with glib dev install (#34018) * Fix compile crash on glib compilation with glib dev install * Restyle --------- Co-authored-by: Andrei Litvin --- integrations/docker/images/base/chip-build/Dockerfile | 11 ++++++++++- integrations/docker/images/base/chip-build/version | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/integrations/docker/images/base/chip-build/Dockerfile b/integrations/docker/images/base/chip-build/Dockerfile index ebe222b8a7e468..db209a82f20b87 100644 --- a/integrations/docker/images/base/chip-build/Dockerfile +++ b/integrations/docker/images/base/chip-build/Dockerfile @@ -59,7 +59,6 @@ RUN set -x \ libdmalloc-dev \ libgif-dev \ libgirepository-1.0-1 \ - libgirepository1.0-dev \ libglib2.0-dev \ libical-dev \ libjpeg-dev \ @@ -164,6 +163,16 @@ RUN case ${TARGETPLATFORM} in \ ;; \ esac +# Sanitizer compilation fails if this is installed before +# glib recompile. +RUN set -x \ + && apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -fy --fix-missing --no-install-recommends \ + libgirepository1.0-dev \ + && rm -rf /var/lib/apt/lists/ \ + && : # last line + + # Some things that save space # Protoc goes from 108M to 4.6M RUN strip /usr/local/bin/protoc* diff --git a/integrations/docker/images/base/chip-build/version b/integrations/docker/images/base/chip-build/version index 94561c77a986e4..375ee709695659 100644 --- a/integrations/docker/images/base/chip-build/version +++ b/integrations/docker/images/base/chip-build/version @@ -1 +1 @@ -58 : Add libgirepository1.0-dev to the base image, to make build_python.sh work (assume we want this everywhere) +59 : Install order fix for glib with enabled thread sanitizer.