Hello. Spec file go-rpm-macros.spec has the following: %install <...> install -m 0644 -vp rpm/macros.d/macros.go-* \ %{buildroot}%{rpmmacrodir} <...> %ifarch %{golang_arches} install -m 0644 -vp rpm/macros.d/macros.go-compilers-golang \ %{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-golang %endif %ifarch %{gccgo_arches} install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \ %{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-gcc %endif <...> First all files are copied and then only a part of them is copied, but, if the architectire is inside %gccgo_arches, macros.go-compilers-golang* are still installed. rpm/macros.d/macros.go-compilers-golang-pie and rpm/macros.d/macros.go-compilers-golang-nopie are also installeed, I'm not sure that the author's idea was to install them.
golang* files are alphabetically loaded later than gccgo* and overwrite values from them.
An example fix: https://abf.io/import/go-rpm-macros/commit/3870221a0bee267399c50da87836b224efd4d6b5.patch
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37.
Thanks for the patch. I was checking the current go-rpm-macro and a similar fix was merged recently, so I'll close the bug. Feel free to open it again if the fix doesn't cover it. For the record, the solution was added with the 8b2cbc54 commit.