[SRU] backport golang-1.22 to focal

Bug #2076069 reported by Shengjing Zhu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
golang-1.22 (Ubuntu)
New
Undecided
Unassigned
Focal
Fix Committed
Undecided
Unassigned

Bug Description

[Impact]

 * The Google cloud agents update major versions in stable releases, which require new version of golang compiler. The golang-1.22 has already been backported to noble, jammy, but not focal. The cloud agents will be updated in focal, so we need golang-1.22 as well.

[Test Plan]

 * Install golang-1.22 in focal
 * Add /usr/lib/go-1.22/bin to PATH
 * Build a Go package, for example the google cloud agent. The result should be successful.
  git-ubuntu clone google-guest-agent
  apply attached go1.22 patch (note update path to go1.22 and dependency in d/control if patch does not apply)
  build package.

[Where problems could occur]

 * This is a new package in archive, which doesn't have impact on existing packages.

[Other Info]

 * No

Shengjing Zhu (zhsj)
tags: added: foundations-todo
Revision history for this message
Shengjing Zhu (zhsj) wrote :

I have updated the backport

The backport is based on the version in jammy-security.

Please see the code in https://git.launchpad.net/~zhsj/golang/+git/golang/log/?h=ubuntu/1.22/focal

also the debdiff patch against 1.22.2-2~22.04.1

Revision history for this message
Vladimir Petko (vpa1977) wrote :

golang-1.22 has golang-1.22.6 in oracular, noble and jammy has 1.22.2.

Backporting dev release requires updating noble and down in order to have upgrade path.

We are backporting jammy version in order to avoid overhead of updating stable releases to 1.22.6 (which is a new microrelease that should be verified and might not be a suitable SRU candidate).

Revision history for this message
Vladimir Petko (vpa1977) wrote :

Note: lintian overrides are misconfigured for focal and produce a number of lintian errors

Revision history for this message
Vladimir Petko (vpa1977) wrote :
Download full text (4.4 KiB)

Note: running lintian in noble warns about misconfigured overrides and upstream code:

---
W: golang-1.22-src: executable-not-elf-or-script [usr/share/go-1.22/src/cmd/compile/profile.sh]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksyscall.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksyscall_libc.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksysctl_openbsd.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksysnum_dragonfly.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksysnum_freebsd.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksysnum_linux.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksysnum_netbsd.pl]
W: golang-1.22-src: incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/go-1.22/src/syscall/mksysnum_openbsd.pl]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/cmd/objdump/testdata/* [usr/share/lintian/overrides/golang-1.22-src:46]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/crypto/internal/boring/syso/ [usr/share/lintian/overrides/golang-1.22-src:48]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/crypto/internal/boring/syso/*.syso [usr/share/lintian/overrides/golang-1.22-src:47]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/debug/dwarf/testdata/* [usr/share/lintian/overrides/golang-1.22-src:49]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/debug/elf/* [usr/share/lintian/overrides/golang-1.22-src:50]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/go/internal/gccgoimporter/testdata/* [usr/share/lintian/overrides/golang-1.22-src:51]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/go/internal/gcimporter/testdata/* [usr/share/lintian/overrides/golang-1.22-src:52]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/runtime/pprof/testdata/* [usr/share/lintian/overrides/golang-1.22-src:53]
W: golang-1.22-src: mismatched-override arch-dependent-file-in-usr-share usr/share/go-1.22/src/runtime/race/*.syso [usr/share/lintian/overrides/golang-1.22-src:54]
W: golang-1.22-src: mismatched-override arch-independent-package-contains-binary-or-object usr/share/go-1.22/src/cmd/objdump/testdata/* [usr/share/lintian/overrides/golang-1.22-src:55]
W: golang-1.22-src: mismatched-override arch-independent-package-contains-binary-or-object usr/share/go-1.22/src/crypto/internal/boring/syso/*.syso [usr/share/lintian/overrides/golang-1.22-src:56]
W: ...

Read more...

Revision history for this message
Vladimir Petko (vpa1977) wrote :

google-guest-agent go 1.22 patch for focal

description: updated
Revision history for this message
Vladimir Petko (vpa1977) wrote :

The package builds and installs, google-guest-agent builds in focal against go1.22 with the attached patch

description: updated
Revision history for this message
Vladimir Petko (vpa1977) wrote :

Uploaded, Thank you!!!!

description: updated
description: updated
Changed in golang-1.22 (Ubuntu Focal):
status: New → Fix Committed
Changed in golang-1.22 (Ubuntu):
status: New → Fix Committed
status: Fix Committed → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.