gofed / go-macros

Rpm mechanics for Go packaging
4 stars 7 forks source link

-devel subpackage builds differently on different arches #56

Closed decathorpe closed 5 years ago

decathorpe commented 6 years ago

I'm getting the following error for koji scratch builds:

29084644 build (rawhide, golang-github-cznic-ql-1.2.0-1.fc30.src.rpm): open (buildvm-armv7-07.arm.fedoraproject.org) -> FAILED: BuildError: The following noarch package built differently on different architectures: golang-github-cznic-ql-devel-1.2.0-1.fc30.noarch.rpm
rpmdiff output was:
error: cannot open Packages index using db5 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages database in /var/lib/rpm
removed     /usr/share/gocode/src/github.com/cznic/ql/vendored/github.com/camlistore/go4/lock/lock_linux_amd64.go
  0 free  0 open  6 done  1 failed
decathorpe commented 6 years ago

The .spec file is available here: https://gist.github.com/decathorpe/c4f6d7b6764b1c38685a83be79b82675

decathorpe commented 6 years ago

I've removed BuildArch: noarch from the -devel sub-package as a workaround, but that shouldn't be necessary.

nim-nim commented 5 years ago

Well that basically means golist output is arch-specific, and we should not create go devel packages as noarch.

I will remove the default noarch mode in the next iteration of Go macros

decathorpe commented 5 years ago

Well, the output is arch-specific iff there are arch-specifc files present, such as *._amd64.go - they will only be present in the - for example - x86_64 variant of the -devel subpackage.

nim-nim commented 5 years ago

issue migrated to https://pagure.io/golist/issue/2