From 2f887eec24397a19c354807b70c084390ed2f44d Mon Sep 17 00:00:00 2001 From: "Chase J. Shyu" Date: Tue, 8 Sep 2026 14:53:38 -0500 Subject: [PATCH] ci: use the image's pinned snapshot.debian.org for EOL Debian bases bullseye-security expired on deb.debian.org, and archive.debian.org carries no bullseye at all -- the old rewrite 404'd, and dropping the suite leaves libc6-dev older than the image's installed libc6. Official Debian images ship a commented-out snapshot.debian.org pin from their own build date; use that. One perl pass covers sources.list (buster, bullseye) and deb822 debian.sources (bookworm+). Drop `make clean` from both build steps: the container and checkout are fresh, objects are ndims-suffixed, and it hard-errored on the missing HDF5 headers anyway. Co-Authored-By: Claude Opus 5 --- .github/workflows/omp-gcc-matrix.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/omp-gcc-matrix.yml b/.github/workflows/omp-gcc-matrix.yml index a2041e50..c32c5a19 100644 --- a/.github/workflows/omp-gcc-matrix.yml +++ b/.github/workflows/omp-gcc-matrix.yml @@ -40,23 +40,26 @@ jobs: - name: Fix git safe directory run: git config --global --add safe.directory '*' || true - - name: install boost (archive fallback for EOL Debian bases) + - name: install boost run: | - apt-get update || { \ - sed -i -e 's|deb.debian.org/debian|archive.debian.org/debian|g' \ - -e 's|security.debian.org|archive.debian.org|g' \ - -e '/-updates/d' /etc/apt/sources.list; \ - apt-get -o Acquire::Check-Valid-Until=false update; } + set -eu + if ! apt-get -o Acquire::Retries=3 update; then + grep -rq snapshot.debian.org /etc/apt/ || { echo "no snapshot pin"; exit 1; } + perl -0pi -e 's{^# (http://snapshot\S+)\nURIs: \S+}{URIs: $1}gm; + s{^deb }{#deb }gm; s{^# deb (http://snapshot)}{deb $1}gm' \ + $(ls /etc/apt/sources.list /etc/apt/sources.list.d/*.sources 2>/dev/null) + apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Retries=3 update + fi apt-get install -y --no-install-recommends libboost-program-options-dev - name: g++ version run: g++ --version - name: make 2d openmp - run: make clean ndims=2; make -j4 ndims=2 opt=2 openmp=1 hdf5=0 + run: make -j4 ndims=2 opt=2 openmp=1 hdf5=0 - name: make 3d openmp - run: make clean ndims=3; make -j4 ndims=3 opt=2 openmp=1 hdf5=0 + run: make -j4 ndims=3 opt=2 openmp=1 hdf5=0 thread-count-check: runs-on: ubuntu-latest