#388 Add ExcludeArch i686 to fix build issues with ansible-core
Merged 5 months ago by rmeggins. Opened 5 months ago by rmeggins.
rpms/ rmeggins/linux-system-roles exclude-arch-i686  into  rawhide

file modified
+8 -1
@@ -19,7 +19,7 @@ 

  Url: https://github.com/linux-system-roles

  Summary: Set of interfaces for unified system management

  Version: 1.67.0

- Release: 1%{?dist}

+ Release: 2%{?dist}

  

  License: GPLv3+ and MIT and BSD and Python

  %global _pkglicensedir %{_licensedir}/%{name}
@@ -221,6 +221,10 @@ 

  Source995: CHANGELOG.md

  

  BuildArch: noarch

+ # there is no ansible on i686, so when we get a builder that uses

+ # this arch, the build fails with

+ # No matching package to install: 'ansible-core >= 2.11.0'

+ ExcludeArch: i686

  

  # Requirements for galaxy_transform.py

  BuildRequires: python3
@@ -664,6 +668,9 @@ 

  %endif

  

  %changelog

+ * Thu Jan  18 2024 Rich Megginson <rmeggins@redhat.com> - 1.67.0-2

+ - Add ExcludeArch i686 to fix build issues with ansible-core

+ 

  * Thu Jan  18 2024 Packit <hello@packit.dev> - 1.67.0-1

  - Update to upstream version 1.67.0

  

Because system roles is a noarch package, it can be built by a builder of any arch. When the system roles package is assigned a builder which uses i686, you get the following error:

DEBUG util.py:461:  No matching package to install: 'ansible-core >= 2.11.0'
DEBUG util.py:461:  Not all dependencies satisfied
DEBUG util.py:461:  Error: Some packages could not be found.
DEBUG util.py:610:  Child return code was: 1

because there is no ansible-core on i686. The solution is to exclude i686.

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/f8f2be714ad1441dbf0d55d861ebd1fc

Pull-Request has been merged by rmeggins

5 months ago
Metadata