Created attachment 1666196 [details] macros-glibc.patch Relevant Fedora devel thread: Cross-arch dependencies for plugins (NSS and others) https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/3HZSIWSPEEC6KL6OBWSIPPYHU3CUL5YK/ I want to put this into a macro so that we can easily make adjustments if there are other situations similar to x86-64 vs x86-32. I'm attaching a patch that seems to get the job done. Its use looks like this in the glibc spec file: %package -n nss_db Summary: Name Service Switch (NSS) module using hash-indexed files Requires: %{name}%{_isa} = %{version}-%{release} %{_glibc_nss_dependencies nss_db}
CCing Michal Zidek as the SSSD maintainer since this will apply to the sssd-nss subpackage.
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33.
I assume package maintainers will write the dependencies manually into their spec files.
I have to wonder why you didn't just commit this if you think it would be useful. As far as I can tell you are one of the maintainers of the redhat-rpm-config package. The only comment I'd make is that if this isn't some internal thing that other macros depend upon but instead something you expect packagers to use directly, the macro name shouldn't be prefixed with an underscore.