I recently finished packaging the dependencies for golang-modernc-sqlite, and so I am trying to build golang-modernc-sqlite using "fedpkg build". I received an error that I am not familiar with:
107041465 build (rawhide, /rpms/golang-modernc-sqlite.git:4e124a5404385a63af99570ce90cbaa7bdf4c722): open (buildvm-x86-08.iad2.fedoraproject.org) -> FAILED: BuildError: The following noarch package built differently on different architectures:
[...]
When I have seen this elsewhere it is because some code is not really 'noarch' but does something different on a particular architecture. In this case, it looks like there is a filter which removes a large amount of 'published' code if the go package is compiled on a ppc(64le). Basically something decided 'didn't need to ship all those x86_64/s390/arm(64) go packages' and filtered them out from the install. Thus when koji compares the noarch to make sure they are really the same.. it finds that no one arch isn't.
Adding internal/libc2/capi_linux_ppc64le.go seems to fix the problem. All of the capi_linux_*.go files have the same contents, so I just created another.
Thank you!
See also:
https://gitlab.com/cznic/sqlite/-/merge_requests/62 https://koji.fedoraproject.org/koji/buildinfo?buildID=2301229