#5568 noarch packages require arch specific packages
Closed: Fixed None Opened 8 years ago 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.

master:

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

ipa-4-3:

  • 84bcdf2 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

7 years ago

Login to comment on this ticket.

Metadata