Source: golang-1.14 Version: 1.14~beta1-2 Severity: wishlist Tags: patch User: debian-ri...@lists.debian.org Usertags: riscv64
Hi, golang 1.14 will add support for the 64-bit RISC-V architecture, aka riscv64. It has been committed upstream over the last days. On the Debian packaging side, it requires very few changes. See the attached patch. With it and with a git snapshot from today, I have been able to bootstrap golang. Unfortunately bootstrapping it from gcc-go didn't work, one of the go1 process never ends. It's probably a GCC bug. Instead I have followed the process from Carlos Eduardo [1] to bootstrap it from amd64, and then build it natively. All seems to work fine. Would it be possible to include that patch in the next golang-1.14 upload? Thanks, Aurelien [1] https://github.com/carlosedp/riscv-bringup/blob/master/build-golang.md
--- a/debian/control +++ b/debian/control @@ -21,7 +21,7 @@ Rules-Requires-Root: no Package: golang-1.14-go -Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el s390x +Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el riscv64 s390x Depends: golang-1.14-src (>= ${source:Version}), ${misc:Depends}, ${perl:Depends}, @@ -45,7 +45,7 @@ pre-compile the standard library inside GOROOT for cross-compilation to work. Package: golang-1.14-src -Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el s390x +Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el riscv64 s390x Depends: ${misc:Depends}, ${shlibs:Depends} Description: Go programming language - source files The Go programming language is an open source project to make programmers more --- a/debian/control.in +++ b/debian/control.in @@ -17,7 +17,7 @@ Rules-Requires-Root: no Package: golang-X.Y-go -Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el s390x +Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el riscv64 s390x Depends: golang-X.Y-src (>= ${source:Version}), ${misc:Depends}, ${perl:Depends}, @@ -41,7 +41,7 @@ pre-compile the standard library inside GOROOT for cross-compilation to work. Package: golang-X.Y-src -Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el s390x +Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el riscv64 s390x Depends: ${misc:Depends}, ${shlibs:Depends} Description: Go programming language - source files The Go programming language is an open source project to make programmers more --- a/debian/helpers/goenv.sh +++ b/debian/helpers/goenv.sh @@ -11,7 +11,7 @@ __goarch__deb_arch_cpu() { case "$1" in - amd64|arm|arm64|mips|ppc64|s390x) echo "$1" ;; + amd64|arm|arm64|mips|ppc64|riscv64|s390x) echo "$1" ;; i386) echo 386 ;; mips64el) echo mips64le ;; mipsel) echo mipsle ;;