Source: zabbix Version: 1:6.0.7+dfsg-3 Severity: serious Tags: ftbfs patch Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: i...@hack3r.moe
Dear maintainer, I am currently porting packages on riscv64 platform. zabbix failed to build on riscv64 as shown below: ``` zabbix.com/plugins/system/uname zabbix.com/plugins/system/uptime \# zabbix.com/plugins/system/uname plugins/system/uname/uname_linux.go:39:40: undefined: arrayToString plugins/system/uname/uname_linux.go:40:3: undefined: arrayToString plugins/system/uname/uname_linux.go:67:14: undefined: arrayToString plugins/system/uname/uname_linux.go:69:14: undefined: arrayToString plugins/system/uname/uname_linux.go:102:9: undefined: arrayToString zabbix.com/plugins/system/users github.com/godbus/dbus ``` Full buildd log: https://buildd.debian.org/status/fetch.php?pkg=zabbix&arch=riscv64&ver=1%3A6.0.7%2Bdfsg-3&stamp=1660592177&raw=0 There is an unmerged upstream patch [1] that fixes FTBFS on riscv64. Tested on my QEMU riscv64 sbuild and builds fine. Can you apply it to Debian package? Please let me know if I missed anything. Best regards, Eric [1]: https://support.zabbix.com/browse/ZBX-20469
Last-Update: 2022-09-06 Bug-Upstream: https://support.zabbix.com/browse/ZBX-20469 Description: Fix build on riscv64 --- a/src/go/plugins/system/uname/uname_uint8.go +++ b/src/go/plugins/system/uname/uname_uint8.go @@ -1,5 +1,5 @@ -//go:build (linux && arm) || (linux && ppc64le) || (linux && s390x) -// +build linux,arm linux,ppc64le linux,s390x +//go:build (linux && arm) || (linux && ppc64le) || (linux && s390x) || (linux && riscv64) +// +build linux,arm linux,ppc64le linux,s390x,riscv64 linux /* ** Zabbix