From 2d01a8e4cf1be63c704b4a87fd2c7d9cbc66899c Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Thu, 14 Nov 2024 16:23:07 +0100 Subject: [PATCH] Drop support for F39 in Dockerfile Assuming all our devs are already at least on F40 on their workstations, just finally drop the gdb-headless workaround. The original bug (#2310156) was fixed in both F40 and 41. This also simplifies the special-casing for "rpm -e" a bit. --- tests/Dockerfile.fedora | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/tests/Dockerfile.fedora b/tests/Dockerfile.fedora index dc12be49ee..64379dcab3 100644 --- a/tests/Dockerfile.fedora +++ b/tests/Dockerfile.fedora @@ -1,4 +1,4 @@ -# Supported Fedora releases: 39 40 41 +# Supported Fedora releases: 40 41 FROM registry.fedoraproject.org/fedora:40 AS base MAINTAINER rpm-maint@lists.rpm.org @@ -47,12 +47,14 @@ RUN dnf -y install \ tar unzip gzip bzip2 cpio xz p7zip \ pkgconfig \ /usr/bin/systemd-sysusers \ + gdb-headless \ dwz \ fsverity-utils fsverity-utils-devel \ pandoc \ sequoia-sq \ libasan \ - libubsan + libubsan \ + && dnf clean all RUN echo "%_dbpath $(rpm --eval '%_dbpath')" > /root/.rpmmacros @@ -61,17 +63,14 @@ RUN echo "%_dbpath $(rpm --eval '%_dbpath')" > /root/.rpmmacros RUN ln -sf $(rpm --eval '%{_target_platform}%{?_gnu}')-pkg-config \ /usr/bin/pkg-config -# F40 and older (no dnf5) require special handling -RUN if which dnf5; then \ - dnf -y install gdb-headless; \ - dnf clean all; \ - else \ - dnf -y install "gdb-headless < 15"; \ - dnf clean all; \ - rpm -e --nodeps --nodb rpm-sign-libs python3-rpm; \ - fi - -RUN rpm -e --nodeps --nodb \ +# Self-destruct stock rpm +RUN if ! which dnf5; then \ + # Fedora 40 \ + rpm -e --nodeps --nodb \ + rpm-sign-libs \ + python3-rpm; \ + fi; \ + rpm -e --nodeps --nodb \ rpm \ rpm-libs \ rpm-build-libs