Skip to content

contrib/build-env: fix Debian stretch Docker image for EOL mirrors - #1135

Open
gavin-Angry-Birds wants to merge 1 commit into
opencomputeproject:masterfrom
gavin-Angry-Birds:contrib/fix-stretch-docker-build-env
Open

contrib/build-env: fix Debian stretch Docker image for EOL mirrors#1135
gavin-Angry-Birds wants to merge 1 commit into
opencomputeproject:masterfrom
gavin-Angry-Birds:contrib/fix-stretch-docker-build-env

Conversation

@gavin-Angry-Birds

@gavin-Angry-Birds gavin-Angry-Birds commented Jul 31, 2026

Copy link
Copy Markdown

Summary

  • Debian 9 (stretch) is EOL; switch apt to archive.debian.org and disable Valid-Until checks
  • Install missing build dependencies (gettext, autopoint, libelf-dev, locales, gnupg2, monkeysphere, gnu-efi, libfile-slurp-perl)
  • Build efitools v1.9.2 from source (not available via stretch apt)
  • Set UTF-8 locale for the build user (required by the toolchain)

Test plan

  • docker build -t onie-build-env:pr-test . in contrib/build-env succeeds
  • ./onie-encrypt.sh generate-all-keys + make shim + make shim-self-sign
  • make -jN MACHINE=kvm_x86_64 all recovery-iso SHIM_PREBUILT_DIR=.../safe-place
  • Produces onie-recovery-x86_64-kvm_x86_64-r0.iso

@gavin-Angry-Birds

gavin-Angry-Birds commented Jul 31, 2026

Copy link
Copy Markdown
Author

Verified on WSL with the updated Dockerfile: docker image build succeeds, and MACHINE=kvm_x86_64 all recovery-iso produces onie-recovery-x86_64-kvm_x86_64-r0.iso after generating SB keys and self-signing shim.

@gavin-Angry-Birds
gavin-Angry-Birds force-pushed the contrib/fix-stretch-docker-build-env branch from 83bd6e6 to dae6fbb Compare August 2, 2026 13:41
Debian 9 stretch is EOL and official mirrors no longer work.
Point apt at archive.debian.org, install missing build deps
(gettext/autopoint/libelf-dev/locales/gnu-efi/libfile-slurp-perl),
build efitools from source, and set UTF-8 locale required by the
toolchain.

Tested: docker build + make -j4 MACHINE=kvm_x86_64 all recovery-iso

Signed-off-by: gavin-Angry-Birds <gavincodegk@gmail.com>
@gavin-Angry-Birds
gavin-Angry-Birds force-pushed the contrib/fix-stretch-docker-build-env branch from dae6fbb to 54440a8 Compare August 2, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant