From 19c1c70e1a72ab41779c7c1c8db2e64353110a99 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 20 Sep 2016 10:23:25 +0200 Subject: [PATCH] go: fix gcc6 build of bootstrap_go --- srcpkgs/go/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/go/template b/srcpkgs/go/template index cc65bfd578..dbcca4594d 100644 --- a/srcpkgs/go/template +++ b/srcpkgs/go/template @@ -2,7 +2,7 @@ pkgname=go _bootstrap_version=1.4.2 version=1.7.1 -revision=2 +revision=3 wrksrc=go hostmakedepends="git ca-certificates" short_desc="The Go Programming Language" @@ -43,6 +43,10 @@ do_extract() { tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/go${version}.src.tar.gz" \ -C "${XBPS_BUILDDIR}/go" --strip-components=1 + + # Fix a gcc6 warning regarding signed shift left + sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/6c/txt.c \ + -e's;f->vconst |= (vlong)~0 << 32;f->vconst = (vlong)(~0ull << 32);' } do_build() {