On 2021/03/03 10:16, Janne Johansson wrote:
> Den lör 20 feb. 2021 kl 07:54 skrev Joel Sing <[email protected]>:
> > On 21-02-19 17:22:09, Aaron Bieber wrote:
> > > Here is a fairly well tested update to Go. This version now uses libc[1]
> > > thanks
> > > to jsing@'s hard work!
> >
> > Just to clarify, Go 1.16 uses libc-based syscalls for amd64 and
> > arm64. The remaining platforms (openbsd/386, openbsd/arm, openbsd/mips64)
> > are still using direct syscalls. Once this update lands I'll patch
> > the remaining platforms in ports.
> > >
> > > Also tested but not included: mips64 support \o/
> >
> > This will still require a little effort and bootstrap, I'll deal with
> > this once we've got Go 1.16 with libc-based syscalls for the existing
> > four platforms.
>
> I did test mips64 and it took me a while to figure out the magic incantation*)
> for bootstrapping it, then make and make test works
>
> --------
>
> ##### API check
> Go version is "go1.16", ignoring -next
> /usr/local/ports/pobj/go-1.16/go/api/next.txt
>
> ALL TESTS PASSED
> --------
>
> but make install seems to lack two files:
>
> `/usr/ports/pobj/go-1.16/fake-mips64/.fake_done' is up to date.
> ===> Building package for go-1.16p1
> Create /usr/ports/packages/mips64/all/go-1.16p1.tgz
> Creating package go-1.16p1
> checksumming|*****************
>
> | 9%
> Error:
> /usr/ports/pobj/go-1.16/fake-mips64/usr/local/go/pkg/openbsd_mips64/os/signal/internal/pty.a
> does not exist
> Error:
> /usr/ports/pobj/go-1.16/fake-mips64/usr/local/go/pkg/openbsd_mips64/runtime/cgo.a
> does not exist
> pkg_create: can't continue
>
> cgo.a should probably be missing, since the release notes for 1.16
> says cgo is a no-go for obsd/mips64, but why
> pty.a is missing I have no idea, nor how to unlist cgo.a in a decent way.
Quick way:
.if ${MACHINE_ARCH} == "mips64"
MIPS_COMMENT = @comment
.else
MIPS_COMMENT =
.endif
SUBST_VARS += MIPS_COMMENT
and prefix the plist lines with ${MIPS_COMMENT}
If it gets complex then it needs arch-dependent PFRAG files and use PKG_ARGS
to select them, see the i386/amd64 files from before the update to go 1.5.2
(2015/12/05).
> *) make GOROOT_BOOTSTRAP=/usr/local/go/bootstrap GOARCH=mips64
> after populating the bootstrap dir from the MASTER_SITES0 tgz
>
> --
> May the most significant bit of your life be positive.
>