#5568 noarch packages require arch specific packages
Closed: Fixed Opened by pvoborni.

E.g.

%package -n python3-ipatests
Summary: IPA tests and test tools
BuildArch: noarch
%{?python_provide:%python_provide python3-ipatests}
Requires: %{name}-client-common = %{version}-%{release}
Requires: python3-ipalib%{?_isa} = %{version}-%{release}

Noarch packages can't require arch-specific packages because then the package is different on various arches. And then fedora build system(Koji) rejects it.


How exactly are the packages different and what is the error message from Koji? Isn't it a bug in Koji?

Looking at

https://fedoraproject.org/wiki/Packaging:Guidelines#Noarch_with_unported_dependencies

dependency on arch packages is a valid use-case.

When package is build on multiple arches, the ouput package then requires other arch-specific package where the arch equals to arch of the build. I.e. the output package vary - is arch specific.

see also: https://bugzilla.redhat.com/show_bug.cgi?id=1290900

master:

  • 3aef54d0c2b5a6fcb305e71530a850fedbb84cf8 spec: do not require arch specific ipalib package from noarch packages

ipa-4-3:

  • 84bcdf27600e5eee10d230c7ea96b10aa064ff90 spec: do not require arch specific ipalib package from noarch packages

Metadata Update from @pvoborni:
- Issue assigned to pvoborni
- Issue set to the milestone: FreeIPA 4.3.1

Metadata