From 4cf56ac5884842d1bbd2e3ca5842b6c8781dedce Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Tue, 10 Nov 2026 10:41:32 +0100 Subject: [PATCH] Images upgrade the whole base, not part of it (pacman -Syu) pacman -Sy then installing curl or gdo is a partial upgrade: with openssl 4.1.0 in the repos (November 2026) it pulls the new libssl while the base image's own pacman, libarchive and cryptsetup still want libcrypto.so=3, and refuses. The portal 0.18.2 deploy failed on it. -Syu moves the whole image to what the repos have, which the builder is too. Co-Authored-By: Claude Opus 5.5 --- gdo/Dockerfile | 2 +- portal/Dockerfile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdo/Dockerfile b/gdo/Dockerfile index 0636220..8f6b7d6 100644 --- a/gdo/Dockerfile +++ b/gdo/Dockerfile @@ -25,7 +25,7 @@ RUN pacman-key --init \ 'SigLevel = Required DatabaseOptional' \ 'Server = https://project.uhhm.no/api/packages/bl/arch/$repo/$arch' \ >> /etc/pacman.conf \ - && pacman -Sy --noconfirm --needed ca-certificates gdo \ + && pacman -Syu --noconfirm --needed ca-certificates gdo \ && pacman -Scc --noconfirm \ && rm -rf /var/cache/pacman/pkg/* /var/lib/pacman/sync/* diff --git a/portal/Dockerfile b/portal/Dockerfile index 623c69a..1f84010 100644 --- a/portal/Dockerfile +++ b/portal/Dockerfile @@ -12,7 +12,10 @@ # reason. FROM archlinux:base ARG PORTAL_RELEASE -RUN pacman -Sy --noconfirm --needed ca-certificates curl \ +# -Syu, never -Sy: a partial upgrade pulls a library newer than what the +# base image's own pacman was built against (openssl 4, November 2026) and +# refuses to install. +RUN pacman -Syu --noconfirm --needed ca-certificates curl \ && pacman -Scc --noconfirm \ && rm -rf /var/cache/pacman/pkg/* /var/lib/pacman/sync/* WORKDIR /app