Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#48940 closed update (fixed)

go: update to 1.5.1

Reported by: lutz.horn@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: go

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The Go programming language has been upgraded to version 1.5. Mac Ports still contains version 1.4.2.

Please update the go port to the current version.

Attachments (3)

Portfile-go.diff (5.2 KB) - added by coditect (Nicholas Rawlings) 9 years ago.
Converts the go port to a stub with subports go1.4 and go1.5
go1.4 (57 bytes) - added by coditect (Nicholas Rawlings) 9 years ago.
port select file for go1.4 subport
go1.5 (57 bytes) - added by coditect (Nicholas Rawlings) 9 years ago.
port select file for go1.5 subport

Download all attachments as: .zip

Change History (11)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to ciserlohn@…
Summary: Request: Upgrad go from 1.4.2 to 1.5.1go: update to 1.5.1
Version: 2.3.3

comment:2 Changed 9 years ago by axet (Alexey Kuznetsov)

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

Version 0, edited 9 years ago by axet (Alexey Kuznetsov) (next)

comment:3 Changed 9 years ago by coditect (Nicholas Rawlings)

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 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 gcc5 (possibly as a variant) and specify it as a build dependency?

comment:4 in reply to:  3 Changed 9 years ago by lutz.horn@…

Replying to 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 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.

comment:5 in reply to:  3 Changed 9 years ago by coditect (Nicholas Rawlings)

It appears that using gccgo is not an option since it currently does not build on Darwin: https://github.com/golang/go/issues/10727

Changed 9 years ago by coditect (Nicholas Rawlings)

Attachment: Portfile-go.diff added

Converts the go port to a stub with subports go1.4 and go1.5

Changed 9 years ago by coditect (Nicholas Rawlings)

Attachment: go1.4 added

port select file for go1.4 subport

Changed 9 years ago by coditect (Nicholas Rawlings)

Attachment: go1.5 added

port select file for go1.5 subport

comment:6 Changed 9 years ago by coditect (Nicholas Rawlings)

The patch I submitted converts the go port to a stub (like the port for 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, which defines a new go_select port for easy switching between Go versions.

comment:7 Changed 9 years ago by ci42

Resolution: fixed
Status: newclosed

comment:8 in reply to:  6 Changed 9 years ago by ci42

Replying to 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.

Note: See TracTickets for help on using tickets.