From dbde5b7165bc206622805647f8e1888bb61a0a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 14 Jan 2026 15:41:19 +0100 Subject: [PATCH] CI: Install python3-devel specially to avoid a failure The available python3-devel version is lower than what we already have as platform-python. We are testing Python 3.12 here, so the exact version of Python 3.6 does not matter to us. We also avoid a dependency on python3 and let the magic happen. This avoids: Error: Problem 1: package python3-devel-3.6.8-59.el8.x86_64 from @System requires platform-python = 3.6.8-59.el8, but none of the providers can be installed - cannot install both platform-python-3.6.8-71.el8_10.x86_64 from rhel-BaseOS and platform-python-3.6.8-59.el8.x86_64 from @System - cannot install both platform-python-3.6.8-59.el8.x86_64 from rhel-buildroot and platform-python-3.6.8-71.el8_10.x86_64 from rhel-BaseOS - cannot install both platform-python-3.6.8-59.el8.x86_64 from testing-farm-tag-repository-mainline and platform-python-3.6.8-71.el8_10.x86_64 from rhel-BaseOS - cannot install the best update candidate for package python3-devel-3.6.8-59.el8.x86_64 - cannot install the best update candidate for package platform-python-3.6.8-59.el8.x86_64 Problem 2: problem with installed package python3-devel-3.6.8-59.el8.x86_64 - package python3-devel-3.6.8-59.el8.x86_64 from @System requires platform-python-devel(x86-64) = 3.6.8-59.el8, but none of the providers can be installed - package python3-devel-3.6.8-59.el8.x86_64 from rhel-buildroot requires platform-python-devel(x86-64) = 3.6.8-59.el8, but none of the providers can be installed - package python3-devel-3.6.8-59.el8.x86_64 from testing-farm-tag-repository-mainline requires platform-python-devel(x86-64) = 3.6.8-59.el8, but none of the providers can be installed - package python3-devel-3.6.8-72.el8_10.x86_64 from testing-farm-tag-repository-z-stream requires platform-python-devel(x86-64) = 3.6.8-72.el8_10, but none of the providers can be installed - cannot install both platform-python-devel-3.6.8-71.el8_10.x86_64 from rhel-AppStream and platform-python-devel-3.6.8-59.el8.x86_64 from @System - cannot install both platform-python-devel-3.6.8-59.el8.x86_64 from rhel-buildroot and platform-python-devel-3.6.8-71.el8_10.x86_64 from rhel-AppStream - cannot install both platform-python-devel-3.6.8-59.el8.x86_64 from testing-farm-tag-repository-mainline and platform-python-devel-3.6.8-71.el8_10.x86_64 from rhel-AppStream - cannot install both platform-python-devel-3.6.8-72.el8_10.x86_64 from testing-farm-tag-repository-z-stream and platform-python-devel-3.6.8-71.el8_10.x86_64 from rhel-AppStream - cannot install the best update candidate for package platform-python-devel-3.6.8-59.el8.x86_64 --- plan.fmf | 5 +++-- tests/pythontest.spec | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plan.fmf b/plan.fmf index 3e543fc..e2d89c4 100644 --- a/plan.fmf +++ b/plan.fmf @@ -69,12 +69,13 @@ prepare: - python3-rpm-macros - python3.12-rpm-macros - python3.12-pytest - - python3 - - python3-devel - python2 - name: Update packages how: shell script: dnf upgrade -y + - name: Install python3-devel specially to avoid a failure + how: shell + script: dnf install -y python3-devel --nobest --allowerasing - name: rpm_qa order: 100 how: shell diff --git a/tests/pythontest.spec b/tests/pythontest.spec index abe41ac..e72d12b 100644 --- a/tests/pythontest.spec +++ b/tests/pythontest.spec @@ -12,7 +12,6 @@ Release: 0%{?dist} Summary: ... License: MIT BuildRequires: python3-devel -BuildRequires: python3 BuildRequires: python2 BuildRequires: python3.12-devel BuildRequires: python3.12-rpm-macros