On Thu, 3 Dec 2015 19:41:35 +0100 Jasper Lievisse Adriaanse <jas...@openbsd.org> wrote:
> On Fri, Dec 04, 2015 at 03:07:01AM +1100, Joel Sing wrote: > > From Go 1.5 onwards, an existing go compiler is needed to bootstrap > > the build (the runtime is now written in Go, rather than C) - the > > current "promise" is that the bootstrap will only use functionality > > from the Go 1.4 API. > > > > So that we can continue to build natively, the attached is a > > lang/go-bootstrap that is effectively the Go 1.4.3 release - this > > is intended purely for building Go 1.5+ and is not meant for > > installing/distributing otherwise (and it is marked as such in the > > Makefile). > Perhaps it would be worth adjusting the DESCR accordingly? I.e. > mention that this is the bootstrapper? > > > In the not too distant future (time permitting) I'll likely patch > > this so that we can also build/release Go for openbsd/arm. > > > > Passes tests on i386 and amd64. > > > > ok? > go-bootstrap doesn't package for me: > Error: > /usr/obj/ports/go-bootstrap-1.4.3/fake-amd64/usr/local/go/bootstrap/pkg/tool/openbsd_amd64/api > does not exist > > Commenting that file allowed to build go-bootstrap and Go 1.5, as > well as some projects that require Go 1.5. > > Would it make sense to go for a directory layout such as: > lang/go/{bootstrap,go} ? Most of the Makefile's can be factored into a > Makefile.inc. If not, then please sync > go-bootstrap/Make5Bfile:MASTER_SITES with the MASTER_SITES from the > 1.5 update (switch to https). Same issue as reported by jasper@ ===> Building package for go-bootstrap-1.4.3 Create /usr/ports/packages/amd64/all/go-bootstrap-1.4.3.tgz checksumming|*********************** | 17% Error: /usr/ports/pobj/go-bootstrap-1.4.3/fake-amd64/usr/local/go/bootstrap/pkg/tool/openbsd_amd64/api does not exist Fatal error: can't continue at /usr/libdata/perl5/OpenBSD/PkgCreate.pm line 1543. *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1959 '/usr/ports/packages/amd64/all/go-bootstrap-1.4.3.tgz') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2511 '_internal-package') *** Error 1 in /usr/ports/mystuff/lang/go-bootstrap (/usr/ports/infrastructure/mk/bsd.port.mk:2491 'package') $ Commenting out that single entry from PLIST makes it pass packaging. Including building the 1.5.2 go compiler which requires this bootstrap package. Tested on amd64 -current snapshot from 28th November. Regards, Adam Wolk