[MacPorts] #52227: go @1.7 upgrade to upstream 1.7.1 and self-bootstrap
#52227: go @1.7 upgrade to upstream 1.7.1 and self-bootstrap ---------------------------------+-------------------------------- Reporter: leonardo.schenkel@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: go ---------------------------------+-------------------------------- There is a new upstream version of Go available (1.7.1). The attached Portfile patch uses the same version to self-bootstrap instead of Go 1.4. Bootstrapping using 1.4 is the official way used by upstream because they want to prevent the Go toolchain from using any new features introduced after 1.4, however that is less important for downstream users. Self-bootstrapping Go 1.7 has the additional advantage of allowing Go to be buildable in macOS 10.12 (Sierra). This version introduced a change of gettimeofday(2) which broke Go, causing it not to build. This was fixed in Go 1.7 but it was not backported to an official release of 1.4 yet. Self-bootstrapping was also the solution used by Homebrew to make Go buildable on Sierra. -- Ticket URL: <https://trac.macports.org/ticket/52227> MacPorts <https://www.macports.org/> Ports system for macOS
#52227: go @1.7 upgrade to upstream 1.7.1 and self-bootstrap ----------------------------------+-------------------------------- Reporter: leonardo.schenkel@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: go | ----------------------------------+-------------------------------- Comment (by leonardo.schenkel@…): I noticed I made a mistake; it only worked on my environment because I previously had go 1.7 installed (from before the upgrade to Sierra). My Portfile does not work in a clean environment. I will work on a solution and update the patch afterwards. -- Ticket URL: <https://trac.macports.org/ticket/52227#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS
#52227: go @1.7 upgrade to upstream 1.7.1 and self-bootstrap ----------------------------------+-------------------------------- Reporter: leonardo.schenkel@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: go | ----------------------------------+-------------------------------- Comment (by leonardo.schenkel@…): Please disregard the self-bootstrap. I misunderstood how Go bootstrapping works and I thought it was capable of self-bootstraping, however only Go 1.4 can do that. (Homebrew downloads a pre-built binary of 1.7 to bootstrap 1.7, that is what threw me off.) I have updated the patch only to update the version and keep Go 1.4 in place. Note that currently it won't build on macOS 10.12 (Sierra) unless Go 1.4 is updated to account for the change of timeofday(2). The patch proposed on https://trac.macports.org/ticket/52041 works for me. -- Ticket URL: <https://trac.macports.org/ticket/52227#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS
#52227: go: update to 1.7.1 ----------------------------------+------------------------- Reporter: leonardo.schenkel@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: go | ----------------------------------+------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ciserlohn@… * cc: ciserlohn@… (removed) * keywords: => haspatch Comment: Regardless of whether go can self-bootstrap, a MacPorts port cannot depend on itself; MacPorts cannot accommodate such circular dependencies. -- Ticket URL: <https://trac.macports.org/ticket/52227#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#52227: go: update to 1.7.1 ----------------------------------+------------------------- Reporter: leonardo.schenkel@… | Owner: ciserlohn@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: haspatch Port: go | ----------------------------------+------------------------- Comment (by leonardo.schenkel@…): Completely understood; it was just a temporary confusion of my part. -- Ticket URL: <https://trac.macports.org/ticket/52227#comment:4> MacPorts <https://www.macports.org/> Ports system for macOS
#52227: go: update to 1.7.1 ----------------------------------+------------------------- Reporter: leonardo.schenkel@… | Owner: ciserlohn@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: haspatch Port: go | ----------------------------------+------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Christoph updated go to 1.7.1 in r153179. -- Ticket URL: <https://trac.macports.org/ticket/52227#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts