Skip to content

arch inspection incorrectly requires "noarch" in ExclusiveArch for BuildArch: noarch packages #292

Description

@dsoumis

When a package uses BuildArch: noarch combined with ExclusiveArch: %{java_arches} (which expands to aarch64 ppc64le s390x x86_64 riscv64), the arch inspection reports:

expected ExclusiveArch "aarch64 ppc64le s390x x86_64 riscv64 noarch" but was "aarch64 ppc64le s390x x86_64 riscv64"

This appears to require noarch to be explicitly listed in ExclusiveArch. However, RPM itself no longer requires this, since it was fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1298668, which allows noarch packages to build even when noarch is not in ExclusiveArch.

The arch inspection should not flag this as an error when the package already has BuildArch: noarch.

Package: tomcat (Fedora rawhide)
Spec excerpt:
BuildArch: noarch
ExclusiveArch: %{java_arches}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions