From 27f4ad1f537a9bbbd42af272bed78e7856c9294d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 23 Mar 2025 10:23:40 +0100 Subject: [PATCH] build: rpm: build with almalinux:8 image instead of fedora:latest, fixing `make rpm-build` (#879) The `make rpm-build` started failing with ``` find-debuginfo: starting Extracting debug info from 1 files *** ERROR: No build ID note found in /build/src/artifacts/rpmbuild/BUILD/zrepl-v0.6.1.47.gbae2bd2-build/BUILDROOT/usr/bin/zrepl error: Bad exit status from /var/tmp/rpm-tmp.bYHLzG (%install) ``` This must be a change in Fedora (prob new Fedora major release). Seize the opportunity to 1. stop building from `:latest`, and 2. build with an LTS RPM distro to improve zrepl RPM compatibility (no problems so far AFAIK but this seems sensible) --- packaging/rpm/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/rpm/Dockerfile b/packaging/rpm/Dockerfile index 6790636..69f85e2 100644 --- a/packaging/rpm/Dockerfile +++ b/packaging/rpm/Dockerfile @@ -1,4 +1,4 @@ -FROM fedora:latest +FROM almalinux:8 RUN dnf install -y git make bash rpm-build 'dnf-command(builddep)' ADD packaging/rpm/zrepl.spec /tmp/zrepl.spec