[MacPorts] #48940: Request: Upgrad go from 1.4.2 to 1.5.1
#48940: Request: Upgrad go from 1.4.2 to 1.5.1 -------------------------+-------------------------------- Reporter: lutz.horn@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: go -------------------------+-------------------------------- The [https://golang.org/ Go programming language] has been upgraded to [https://golang.org/doc/go1.5 version 1.5]. Mac Ports still contains version 1.4.2. Please update the [https://trac.macports.org/browser/trunk/dports/lang/go/Portfile go port] to the current version. -- Ticket URL: <https://trac.macports.org/ticket/48940> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: go | --------------------------+------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ciserlohn@… * version: 2.3.3 => Old description:
The [https://golang.org/ Go programming language] has been upgraded to [https://golang.org/doc/go1.5 version 1.5]. Mac Ports still contains version 1.4.2.
Please update the [https://trac.macports.org/browser/trunk/dports/lang/go/Portfile go port] to the current version.
New description: The [https://golang.org/ Go programming language] has been upgraded to [https://golang.org/doc/go1.5 version 1.5]. Mac Ports still contains version 1.4.2. Please update the [browser:trunk/dports/lang/go/Portfile go port] to the current version. -- -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: go | --------------------------+------------------------- Comment (by kuznetsov.alexey@…): can you please add +variant for windows, linux32/64, mac builds? /opt/local/go/src/make.bash GOOS=windows GOARCH=386 ./make.bash --no-clean GOOS=windows GOARCH=amd64 ./make.bash --no-clean GOOS=darwin GOARCH=386 ./make.bash --no-clean GOOS=linux GOARCH=amd64 ./make.bash --no-clean -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: go | --------------------------+------------------------- Comment (by nicholas@…): As of version 1.5, the Go toolchain is written in Go. This means that in order to build Go 1.5, one must either already have Go 1.4.x installed or use the [https://golang.org/doc/install/gccgo gccgo] compiler. Should the Portfile build Go 1.4 as a prerequisite to building Go 1.5? Or would it be preferable to add Go support to [browser:trunk/dports/lang/gcc5/Portfile gcc5] (possibly as a variant) and specify it as a build dependency? -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: go | --------------------------+------------------------- Comment (by lutz.horn@…): Replying to [comment:3 nicholas@…]:
Should the Portfile build Go 1.4 as a prerequisite to building Go 1.5? Or would it be preferable to add Go support to [browser:trunk/dports/lang/gcc5/Portfile gcc5] (possibly as a variant) and specify it as a build dependency?
As a Go developer, I'd prefer not to have Go 1.4 installed in addition. But if this is the easier and faster approach to have Go 1.5 available in MacPorts, this option would be OK for me. -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: go | --------------------------+------------------------- Comment (by nicholas@…): It appears that using gccgo is not an option since it currently does not build on Darwin: https://github.com/golang/go/issues/10727 -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: go | --------------------------+------------------------- Comment (by nicholas@…): The patch I submitted converts the `go` port to a stub (like the port for [browser:trunk/dports/lang/php/Portfile PHP], but much simpler) and adds sub-ports for Go 1.4 and Go 1.5, with `go1.4` defined as a build dependency for `go1.5`. It also adds a `go get` command to the build phase to include standard tools like `godoc`, `vet`, and `cover` that no serious Go developer can live without. See also [ticket:49047 ticket 49047], which defines a new `go_select` port for easy switching between Go versions. -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: go | --------------------------+------------------------- Changes (by ciserlohn@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#48940: go: update to 1.5.1 --------------------------+------------------------- Reporter: lutz.horn@… | Owner: ciserlohn@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: go | --------------------------+------------------------- Comment (by ciserlohn@…): Replying to [comment:6 nicholas@…]:
It also adds a `go get` command to the build phase to include standard tools like `godoc`, `vet`, and `cover` that no serious Go developer can live without.
These tool are included in the {{{go-tools}}} port. -- Ticket URL: <https://trac.macports.org/ticket/48940#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts