From 25e1833893782c4ec1e78c178ce556fa87042fc7 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 4 Dec 2021 05:08:06 +0000 Subject: [PATCH 1/2] [Build]: fix libc-bin core dump issue --- sonic-slave-bullseye/Dockerfile.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sonic-slave-bullseye/Dockerfile.j2 b/sonic-slave-bullseye/Dockerfile.j2 index 8ef31c040560..1510d1973701 100644 --- a/sonic-slave-bullseye/Dockerfile.j2 +++ b/sonic-slave-bullseye/Dockerfile.j2 @@ -358,6 +358,9 @@ RUN apt-get -y build-dep openssh # Build fix for ARM64 and ARMHF /etc/debian_version {%- if CONFIGURED_ARCH == "armhf" or CONFIGURED_ARCH == "arm64" %} +RUN mv /var/lib/dpkg/info/libc-bin.* /tmp/ +RUN dpkg --remove --force-remove-reinstreq libc-bin || true +RUN dpkg --purge libc-bin || true RUN apt upgrade -y base-files {%- endif %} From 76879c30565683eccb2da611371cea23ea795bce Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 5 Dec 2021 05:02:55 +0000 Subject: [PATCH 2/2] Not upgrade the package libc-bin --- sonic-slave-bullseye/Dockerfile.j2 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sonic-slave-bullseye/Dockerfile.j2 b/sonic-slave-bullseye/Dockerfile.j2 index 1510d1973701..b3bb4168bd50 100644 --- a/sonic-slave-bullseye/Dockerfile.j2 +++ b/sonic-slave-bullseye/Dockerfile.j2 @@ -358,10 +358,7 @@ RUN apt-get -y build-dep openssh # Build fix for ARM64 and ARMHF /etc/debian_version {%- if CONFIGURED_ARCH == "armhf" or CONFIGURED_ARCH == "arm64" %} -RUN mv /var/lib/dpkg/info/libc-bin.* /tmp/ -RUN dpkg --remove --force-remove-reinstreq libc-bin || true -RUN dpkg --purge libc-bin || true -RUN apt upgrade -y base-files +RUN apt upgrade -y base-files libc-bin=$(dpkg-query -W -f '${Version}' libc-bin) {%- endif %} # Build fix for ARMHF bullseye libsairedis