9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Philip Silva <philip.silva@protonmail.com>
To: "9front@9front.org" <9front@9front.org>
Subject: Re: [9front] Patch to update Go to 1.14.6 (and ca-certificates while here)
Date: Sun, 10 Jan 2021 20:33:14 +0000	[thread overview]
Message-ID: <ZR6zEHajacBYSalvdtZyuzLh4NlqwEv9FDFhPtyIbRnigXzi_GMhVKTzYjcJMNG_566luCB_k70SZs5WLC7zJNkaDE0FdmXawsVyizgOom0=@protonmail.com> (raw)
In-Reply-To: <15FCAE441BA9B51FD261B7CDD1696A7E@hera.eonet.ne.jp>

Nice! Yes the dependency management is quite a breeze!

I definitely need to try that method together with some patching and updating. I like putting stuff in the home folder though but I guess that might just result in more work :)

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Am Sonntag, 10. Januar 2021 00:24 schrieb <kokamoto@hera.eonet.ne.jp>:

&gt; I tried both of 9legacy's bootstrap and that for 9front, and got
&gt; success for both without any patches.
&gt;
&gt; Your method looks difficult to me.☺
&gt;
&gt; 1.  follow the method by kylejnusbaum@gmail.com
&gt; 2.  put 1.14.1 bootstrap files to /sys/lib/go/go-plan9-amd64-bootstrap,
&gt;     and go-plan9-1.15.6 to /sys/lib/go/amd64-1.15.6 (which is written by sl's FAQ)
&gt;     set GOROOT_BOOTSTRAP=/sys/lib/go/go-plan9-amd64-bootstrap,
&gt;     GOROOT=/sys/lib/go/amd64-1.15.6,
&gt;     GOPAS=$home/Go
&gt;     then, cd to /sys/lib/go/amd64-1.15.6, and ./make.rc
&gt;
&gt;     By the way, I'm looking your opossum source now, which looks like
&gt;     very compact, because many are hidden under the $home/Go/git.hub etc...
&gt;     Go is beautiful to me.
&gt;
&gt;     Kenji
&gt;     For me bootstrapping also worked with the 9legacy Go1.14.1 when doing this on the amd64 iso of 9front - although I had problems in the beginning, maybe because of the env vars. So in the end I've been putting the bootstrapped Go into /usr/glenda/go-plan9-amd64-bootstrap, set the /usr/glenda/env/GOROOT_BOOTSTRAP (bind -a /usr/glenda/env /env) permanently to /usr/glenda/go-plan9-amd64-bootstrap with GOROOT - and I believe also GOPROXY - being unset. Also I've then set: bind -a $home/go-plan9-amd64-bootstrap/bin /bin
&gt;
&gt;     Afterwards: cd $home/go1.15.6/src and all.rc. Still need to try the patch though.
&gt;
&gt;     By the way, there are also scripts for that, like here: http://shithub.us/git/fulton/rc-scripts/HEAD/install/install-go.rc/f.html
&gt;
&gt;     Greetings, Philip
&gt;
&gt;     ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
&gt;     Am Mittwoch, 6. Januar 2021 21:45 schrieb kylejnusbaum@gmail.com:
&gt;
&gt;
&gt; &gt; I am using my own amd64 bootstrap tarball for Go built from 1.15.3.
&gt; &gt; (http://9project.net/go-plan9-amd64-bootstrap.tar.gz)
&gt; &gt; Using this, I am able to bootstrap Go on 9front.
&gt; &gt; As a side note, I used to have trouble using the bootstrap package to
&gt; &gt; cross-compile (i.e. using my amd64 bootstrap tarball on amd64 to
&gt; &gt; compile plan9 386) so I instead built for plan9 amd64 first, and then
&gt; &gt; use that as a bootstrap for any other arches I want, like this:
&gt; &gt;
&gt; &gt; 1.  go-plan9-amd64-bootstrap.tar.gz to bootstrap Plan9 Go amd64
&gt; &gt;
&gt; &gt; 2.  Plan9 Go amd64 to bootstrap other arches (386, arm)
&gt; &gt;     I just tried it again, and that doesn't seem to be an issue for me
&gt; &gt;     anymore, but I thought I'd mention it.
&gt; &gt;     With the bootstrap unpacked into /sys/lib/go/amd64, my command
&gt; &gt;     and output (building 1.15.6 for 386 on amd64) look like this:
&gt; &gt;     GOOS=plan9 GOARCH=386 GOHOSTARCH=amd64 GOROOT_FINAL=/sys/lib/go/386 GOROOT_BOOTSTRAP=/sys/lib/go/amd64 ./make.rc
&gt; &gt;     Building Go cmd/dist using /sys/lib/go/amd64
&gt; &gt;     Building Go toolchain1 using /sys/lib/go/amd64.
&gt; &gt;     Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
&gt; &gt;     Building Go toolchain2 using go_bootstrap and Go toolchain1.
&gt; &gt;     Building Go toolchain3 using go_bootstrap and Go toolchain2.
&gt; &gt;     Building packages and commands for host, plan9/amd64.
&gt; &gt;     Building packages and commands for target, plan9/386.
&gt; &gt;
&gt; &gt;
&gt; &gt; Installed Go for plan9/386 in /9bps/buildroot/go-1.15.6_1/build/go-go1.15.6
&gt; &gt; Installed commands in /9bps/buildroot/go-1.15.6_1/build/go-go1.15.6/bin
&gt; &gt; The binaries expect /9bps/buildroot/go-1.15.6_1/build/go-go1.15.6 to be copied or moved to /sys/lib/go/386

</kokamoto@hera.eonet.ne.jp>

  reply	other threads:[~2021-01-10 21:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 14:02 kokamoto
2021-01-06  0:59 ` kylejnusbaum
2021-01-06  5:10   ` kokamoto
2021-01-06  1:37 ` sl
2021-01-06  3:06   ` kokamoto
2021-01-06 20:45     ` kylejnusbaum
2021-01-09 19:02       ` Philip Silva
2021-01-09 23:24         ` kokamoto
2021-01-10 20:33           ` Philip Silva [this message]
2021-01-06  3:06 ` ori
2021-01-06  3:57   ` kokamoto
  -- strict thread matches above, loose matches on Subject: below --
2020-08-06 13:39 Aaron Bieber
2020-08-06 14:02 ` [9front] " kvik
2020-08-06 15:00 ` kvik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ZR6zEHajacBYSalvdtZyuzLh4NlqwEv9FDFhPtyIbRnigXzi_GMhVKTzYjcJMNG_566luCB_k70SZs5WLC7zJNkaDE0FdmXawsVyizgOom0=@protonmail.com' \
    --to=philip.silva@protonmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).