Tarball of the following:

  * 1.25:
    * golang-1.25_1.25.7-2~22.04.1.{dsc,debian.tar.xz} && the `source.changes`
    * golang-1.25_1.25.7-2~24.04.1.{dsc,debian.tar.xz} && the `source.changes`
 
  * 1.26:
    * golang-1.26_1.26.0-1~22.04.1.{dsc,debian.tar.xz} && the `source.changes`
    * golang-1.26_1.26.0-1~24.04.1.{dsc,debian.tar.xz} && the `source.changes`

(Doesn't include the .orig.tar.gz as that's already in the archive)

** Attachment added: "tarball of all the .dsc, debian.tar.xz and source.changes 
files"
   
https://bugs.launchpad.net/ubuntu/+source/golang-1.25/+bug/2166409/+attachment/5997422/+files/go-backport-lp2166409-sources.tar.gz

** Attachment removed: "golang-1.25_1.25.7-2~22.04.1.dsc"
   
https://bugs.launchpad.net/ubuntu/+source/golang-1.25/+bug/2166409/+attachment/5997418/+files/golang-1.25_1.25.7-2~22.04.1.dsc

** Attachment removed: "golang-1.25_1.25.7-2~24.04.1.dsc"
   
https://bugs.launchpad.net/ubuntu/+source/golang-1.25/+bug/2166409/+attachment/5997419/+files/golang-1.25_1.25.7-2~24.04.1.dsc

** Attachment removed: "golang-1.26_1.26.0-1~22.04.1.dsc"
   
https://bugs.launchpad.net/ubuntu/+source/golang-1.25/+bug/2166409/+attachment/5997420/+files/golang-1.26_1.26.0-1~22.04.1.dsc

** Attachment removed: "golang-1.26_1.26.0-1~24.04.1.dsc"
   
https://bugs.launchpad.net/ubuntu/+source/golang-1.25/+bug/2166409/+attachment/5997421/+files/golang-1.26_1.26.0-1~24.04.1.dsc

** Description changed:

  ## [Impact]
  
  Noble 24.04 and Jammy 22.04 currently provide golang toolchains only up
  to and including `golang-1.24` (version `1.24.4`). Unfortunately as
  `1.26` isn't available yet we're blocked on building/maintaining pkgs
  that require a `go >= 1.26` toolchain
  
  Two new source pkgs will be required (as golang can only be built by a 
previous golang release):
  * `golang-1.25` (1.25.7-2): for bootstraping
  * `golang-1.26` (1.26.0-1): the actual pkg we want in noble and jammy
  
  ### [Why is 1.25 needed as well?]
  
  `golang-1.26` upstream hardcodes a minimum bootstrap toolchain:
  
  ```
  src/cmd/dist/buildtool.go: const minBootstrap = "go1.24.6"
  ```
  
  Fortunately though, `golang-1.25` version `1.25.7-2` build-depends on
  `golang-1.24-go:native` and only requires `minBootstrap = go1.22.6`, so
  it builds directly against the `1.24.4` version of `golang-1.24` already
  published in jammy and noble
  
  ## [Proposed versions]
  
  Both packages can be backported with no new Ubuntu delta as the source
  is identical to what is already published in resolute (just needs a d/ch
- entry)
+ entry). I verified with `diff -rq pristine/debian extracted/debian`
+ (`Files pristine/debian/changelog and extracted/debian/changelog
+ differ`)
  
  ## [Test Plan]
  
  * Enable `-proposed` on a jammy and noble system
  * Install the new toolchain version with `sudo apt install golang-1.26`
  * Chech that the compiler reports the expected version with 
`/usr/lib/go-1.26/bin/go version` (should return `go version go1.26.0 
linux/amd64` for amd64)
  * Build and run an easy script that pulls in the standard library:
  ```
  mkdir /tmp/gotest
  cd /tmp/gotest
  printf 'module hello\n\ngo 1.26\n' > go.mod
  cat > main.go <<'EOF'
  package main
  import ("fmt"; "net/http"; "runtime")
  func main() { _ = http.DefaultClient; fmt.Println(runtime.Version()) }
  EOF
  /usr/lib/go-1.26/bin/go build -o hello .
  ./hello
  ```
  
  * Check that cross-compilation still works:
  ```
  GOOS=linux GOARCH=arm64 /usr/lib/go-1.26/bin/go build -o hello-arm64 .
  file hello-arm64
  ```
  * Verify that the suite's default golang didn't also change (i.e. `go 
version` should still report the orginal `golang-defaults` version for the 
release)
  
  ## [Where problems could occur]
  
  Golang toolchains tend to be big and slow to build, so the practical
  risk is build failures on slower or rarer architectures rather than any
  runtime regressions. These will be new source pkgs for jammy and noble
  (i.e. nothing in either release build-depends on `golang-1.25` or
  `golang-1.26` today, so there aren't any reverse dependencies to
  accidentally regress). The risk is contained to users who explicitly
  install `golang-1.26`. We're also not touching `golang-defaults` so any
  pkgs that use the default golang won't be changed.
  
  ## [Extra info]
  
  As neither `golang-1.25` or `golang-1.26` currently exist in jammy or
  noble, these uploads will land in the NEW queue (and I think require an
  AA review as well as the usual SRU team review?)
+ 
+ I've built these in a PPA
+ (https://launchpad.net/~kajiya/+archive/ubuntu/gogogo/+packages) but plz
+ don't copy from there as I added `~ppa1` to the versions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166409

Title:
  [SRU] Please backport golang-1.25 and 1.26 to noble and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-1.25/+bug/2166409/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to