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
This commit is contained in:
Miro Hrončok 2026-01-14 15:41:19 +01:00
parent c4a2c88d00
commit dbde5b7165
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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