From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <72d31b341af6022c42c7660c4a60f97b@ghost.inri> Date: Wed, 13 Apr 2016 13:38:41 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=94eb2c0356ec60f265053063c3d0 Subject: Re: [9fans] Go on Plan 9? Topicbox-Message-UUID: 8d863fb6-ead9-11e9-9d60-3106f5b1d025 --94eb2c0356ec60f265053063c3d0 Content-Type: text/plain; charset=UTF-8 I use GOROOT=$home/go to keep up with tip. after bootstrapping, rebuild the standard packages and commands: % GOBIN=$home/bin/386 $home/go/bin/go install -a std cmd and % GOARCH=arm go install -a std cmd then in my profile: % test -d $home/go/bin/plan9_^$cputype && bind -a $home/go/bin/plan9_^$cputype /bin || bind -a $home/go/bin /bin unfortunately because the treatment of GOBIN is not symmetrical when $GOARCH == $cputype vs $GOARCH != $cputype, we can't do: % for (GOARCH in (386 arm)) { echo GOBIN=$home/bin/$GOARCH $home/go/bin/go install -a std cmd } -Skip On Wed, Apr 13, 2016 at 12:34 AM, wrote: > > > Skip, where in the FS hierarchy do you install the go distribution? > Also, which additional go packages are in general use on Plan 9 > platforms and where do they normally get installed? > > Lucio. > > > --94eb2c0356ec60f265053063c3d0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I use GOROOT=3D$home/go to keep up with tip. =C2=A0af= ter bootstrapping, rebuild the standard packages and commands:
% GOBIN=3D$home/bin/386 $home/go/bin/go install -a std cmd

and

% GOARCH=3Darm go i= nstall -a std cmd

then in my profile:

% test -d $home/go/bin/plan9_^$cputype && bind -a= =C2=A0$home/go/bin/plan9_^$cputype /bin =C2=A0|| bind -a $home/go/bin /bin<= /div>

unfortunately because the treatment of GOBIN= is not symmetrical when $GOARCH =3D=3D $cputype =C2=A0vs =C2=A0$GOARCH != =3D $cputype, =C2=A0we can't do:

% for (G= OARCH in (386 arm)) {
=C2=A0 =C2=A0 echo GOBIN=3D$home/bin/$GOARC= H $home/go/bin/go install -a std cmd
}

<= br>
-Skip
--94eb2c0356ec60f265053063c3d0--