[MacPorts] #62747: Update go version and possible bug

MacPorts noreply at macports.org
Sun Apr 25 03:22:35 UTC 2021


#62747: Update go version and possible bug
----------------------------+----------------------
  Reporter:  gaming-hacker  |      Owner:  ci42
      Type:  update         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.4
Resolution:                 |   Keywords:
      Port:  go             |
----------------------------+----------------------

Comment (by herbygillot):

 You are misunderstanding how the Portfile for Go works.

 In order to build Golang, you require a Go compiler because Go is written
 in Go.

 But in a pure MacPorts environment, you are only starting with a C/C++
 compiler.

 Go 1.4 is the most recent version of Go that can be built using only a C
 compiler.

 So for x86_64, we build Go 1.4 first, *then* use Go 1.4 to build the most
 recent version of Go, which as of right now is 1.16.3 as @ryandesign said.

 For arm64, Go 1.4 is not available.  Therefore we take a different
 approach, and use an official pre-built Arm64 Go installation to build an
 Arm64-native build of the latest Go for MacPorts.

 The pre-built version is 1.16.1, and we then use it to build the latest
 version (again 1.16.3).  The version of the pre-built compiler does not
 really matter.

 In all cases for both x86_64 and arm64, MacPorts is building the latest
 version of Go.

-- 
Ticket URL: <https://trac.macports.org/ticket/62747#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list