upload golang-1.10 1.10.4 to all supported releases of ubuntu

Bug #1794395 reported by Michael Hudson-Doyle on 2018-09-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-1.10 (Ubuntu)

Bug Description

To enable packages that are backported wholesale to all releases of Ubuntu (i.e. snapd) to stop depending on what is now a fairly ancient version of Go, we are going to upload 1.10 (the version of Go in 18.04 LTS) to xenial and trusty as well. This is an unusual "SRU" but the plan has been concocted with the approval of the Ubuntu security team (who I will ask to comment here to confirm their acceptance of the plan).

[test case]
A smoke test, like this:

$ apt install golang-1.10-go
$ PATH=/usr/lib/go-1.10/bin:$PATH
$ go version
< check it's 1.10 >
$ cat > trivial.go
package main
func main() {}
$ go run trivial.go
$ cat > trivialcgo.go
package main
import "C"
func main() {}
$ go run trivialcgo.go

Then we should verify that snapd builds with the golang-1.10 in proposed take the snapd packaging for each distro series, edit this line in debian/rules:

export PATH:=/usr/lib/go-1.6/bin:${PATH}

to reference go-1.10 instead, edit the build-dependencies, and upload that to a PPA that has proposed enabled and check it builds everywhere.

[regression potential]
It's a new package so should not impact any existing behaviour. I'm not at all proposing to update the default version of Go in a stable release.

Changed in golang-1.10 (Ubuntu):
status: New → Fix Released
Michael Hudson-Doyle (mwhudson) wrote :

I have test builds here https://launchpad.net/~mwhudson/+archive/ubuntu/devirt/+packages (they keep failing on intel because builder performance is so bad currently :()

tags: added: id-5baaaf69fafce02f17203cee
Jamie Strandboge (jdstrand) wrote :

This is fine with the security team (if it was a golang version that was in an interim release, that would be a different story, but we are already supporting this in bionic, so why not in earlier?).

Łukasz Zemczak (sil2100) wrote :

Seeing that for certain series this will be quite a big jump (even without switching the defaults), could I propose - as an additional test case - test-building snapd against the -proposed golang-1.10 in a PPA (i.e. with proposed enabled)? Since this is one of the reasons for having 1.10 in all supported series we might as well use this as a verification step.

Do you think it makes sense?

Łukasz Zemczak (sil2100) wrote :

Besides that the packages look okay-ish (the debdiff for xenial is bogus because the package was never in -updates) so I'd be willing to accept them. From a formal POV, if I recall correctly, we might need a technical board member to ACK the request. Poked Steve.

John Lenton (chipaca) wrote :

What can we do about architectures that need gccgo?

On Fri, 28 Sep 2018, 20:20 John Lenton, <email address hidden> wrote:

> What can we do about architectures that need gccgo?

To be clear, the only such architecture is powerpc on xenial.

For snapd, my understanding is having snapd there does not offer anyone
anything - there has never been a core snap published for powerpc has there?

The most pragmatic thing to do would be to remove snapd/powerpc from xenial
although I don't quite know how that would work. I guess a less nuclear
option would be to just build an empty snapd package on powerpc.


description: updated

Hello Michael, or anyone else affected,

Accepted golang-1.10 into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/golang-1.10/1.10.4-2ubuntu1~18.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in golang-1.10 (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
Michael Hudson-Doyle (mwhudson) wrote :

snapd built successfully with the golang-1.10 from bionic-proposed here: https://launchpad.net/~mwhudson/+archive/ubuntu/devirt/+packages?field.name_filter=snapd&field.status_filter=published&field.series_filter=bionic

I ran through the smoke test as well:

mwhudson@ringil:/tmp$ PATH=/usr/lib/go-1.10/bin:$PATH
mwhudson@ringil:/tmp$ go version
go version go1.10.4 linux/amd64
mwhudson@ringil:/tmp$ cat > trivial.go
package main
func main() {}
mwhudson@ringil:/tmp$ go run trivial.go
mwhudson@ringil:/tmp$ cat > trivialcgo.go
package main
import "C"
func main() {}
mwhudson@ringil:/tmp$ go run trivialcgo.go
mwhudson@ringil:/tmp$ dpkg -l golang-1.10-go
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
ii golang-1.10-go 1.10.4-2ubuntu1~18.04 amd64 Go programming language compiler, linker, compiled stdlib

tags: added: verification-done-bionic
removed: verification-needed verification-needed-bionic
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers