Source:  g10k
Version:  0.9.9-2
Severity: serious
Tags: FTBFS, patch

Dear g10k maintainer,
The package g10k build failed on most arch.The crucial buildd log below:
```

dh_auto_build -- -race -ldflags "-X main.buildversion=0.9.9 -X
main.buildtime=1739129287"
        cd obj-riscv64-linux-gnu && go install -trimpath -v -p 4 -race
-ldflags "-X main.buildversion=0.9.9 -X main.buildtime=1739129287"
github.com/xorpaul/g10k
-race is not supported on linux/riscv64
dh_auto_build: error: cd obj-riscv64-linux-gnu && go install -trimpath
-v -p 4 -race -ldflags "-X main.buildversion=0.9.9 -X
main.buildtime=1739129287" github.com/xorpaul/g10k returned exit code
2
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/g10k-0.9.9'
make: *** [debian/rules:25: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned
exit status 2

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=g10k&arch=riscv64&ver=0.9.9-2&stamp=1739167351&raw=0
My solution to this issue:
  This issue arises because the "-race" flag is only supported on amd64,
arm64, ppc64el, and s390x. Therefore, my solution is to remove the "-race"
flag on unsupported architectures.  The debpatch is in the attachment. I
have tested that locally,and it works well.Please let me know whether this
solution can be accepted.
Gui-Yue
Best  Regards

Attachment: fix_-race_issue.patch
Description: Binary data

Reply via email to