Source: golang-1.9
Version: 1.9.1-2
Severity: wishlist

Hi,

The patches to change the mips architecture names in gccgo to the ones
used by golang have now been backported into gcc-7 and are available
right now in unstable. I don't think there is anything stopping golang
from being built on mips64el anymore.

On mips and mipsel, the kernel waitid bug affecting gccgo (#867358) is
still not fixed on the buildds. Unfortunately it missed the most recent
stretch point release so it probably won't be fixed for a few months.
golang-1.9 can still be enabled on these architectures, but it might
take a few attempts to get it to build. On a kernel with the fix
applied, golang does build.

I've attached the patch I used to build golang-1.9.

Thanks,
James
diff -Nru golang-1.9-1.9.1/debian/control.in golang-1.9-1.9.1/debian/control.in
--- golang-1.9-1.9.1/debian/control.in	2017-10-09 17:03:49.000000000 +0100
+++ golang-1.9-1.9.1/debian/control.in	2017-10-25 13:30:54.000000000 +0100
@@ -15,7 +15,7 @@
 Homepage: https://golang.org
 
 Package: golang-X.Y-go
-Architecture: amd64 arm64 armel armhf i386 ppc64 ppc64el s390x
+Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el s390x
 Depends: golang-X.Y-src (>= ${source:Version}),
          ${misc:Depends},
          ${perl:Depends},
@@ -39,7 +39,7 @@
  pre-compile the standard library inside GOROOT for cross-compilation to work.
 
 Package: golang-X.Y-src
-Architecture: amd64 arm64 armel armhf i386 ppc64 ppc64el s390x
+Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64 ppc64el 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
diff -Nru golang-1.9-1.9.1/debian/helpers/goenv.sh golang-1.9-1.9.1/debian/helpers/goenv.sh
--- golang-1.9-1.9.1/debian/helpers/goenv.sh	2017-10-09 17:03:49.000000000 +0100
+++ golang-1.9-1.9.1/debian/helpers/goenv.sh	2017-10-25 13:30:54.000000000 +0100
@@ -11,10 +11,11 @@
 
 __goarch__deb_arch_cpu() {
 	case "$1" in
-		amd64|arm|arm64|ppc64|s390x) echo "$1" ;;
+		amd64|arm|arm64|mips|ppc64|s390x) echo "$1" ;;
 		i386) echo 386 ;;
-		ppc64el) echo ppc64le ;;
 		mips64el) echo mips64le ;;
+		mipsel) echo mipsle ;;
+		ppc64el) echo ppc64le ;;
 		*) echo >&2 "error: unrecongized DEB_*_ARCH_CPU: $1"; exit 1 ;;
 	esac
 }

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to