mbox series

[RR,NULL,0/3] Upgrade go to 1.42.0

Message ID 20250301075552.354661-1-hongxu.jia@windriver.com
Headers show
Series Upgrade go to 1.42.0 | expand

Message

Hongxu Jia March 1, 2025, 7:55 a.m. UTC
Summary: Upgrade go to 1.42.0

====== Comments (indicate scope for each "y" above) ======
* Conditions of submission

* Documentation Changes/Release Notes
  = Doc changes

  = Release notes

* Git logs
[poky]
commit 351a6f55cba8f43af2f1b54b49c8a05ccbe53d68
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Sat Mar 1 10:45:10 2025 +0800

    go: remove support for GOROOT_FINAL
    
    After upstream go applied commit [cmd: remove support for
    GOROOT_FINAL][1], GOROOT_FINAL variable is dropped and use
    option -trimpath to instead [2]
    
    The option -trimpath has already been added to GOBUILDFLAGS
    in go.bbclass
    
    [1] https://github.com/golang/go/commit/507d1b22f4b58ac68841582d0c2c0ab6b20e5a98
    [2] https://github.com/golang/go/issues/62047
    
    Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>

commit b25e6c9495f443cbdada6aea87ef4f0af741a6cd
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Sat Mar 1 10:55:07 2025 +0800

    go: fix buildpath issue for go-runtime
    
    In upstream commit [cmd: remove support for GOROOT_FINAL][1], it clear
    GOROOT for func ld when -trimpath is used
    
    But it missed to do the same thing for share libarary linking which caused
    building go-runtime failed with buildpath issue
    
    |ERROR: go-runtime-1.23.4-r0 do_package_qa: QA Issue: File /usr/lib/go/pkg/
    linux_amd64_dynlink/libstd.so in package go-runtime contains reference to
    TMPDIR [buildpaths]
    
    This commit applied a patch to clear GOROOT for func ldShared when
    -trimpath is used and add option -trimpath to go-runtime build
    
    [1] https://github.com/golang/go/commit/507d1b22f4b58ac68841582d0c2c0ab6b20e5a98
    [2] https://github.com/golang/go/commit/507d1b22f4b58ac68841582d0c2c0ab6b20e5a98#diff-cab5921f94f2667bb0bc1b935d2d46b4c03541b4351b33438ab7290b94dea212R669
    
    Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>

commit 0eb236693eb209a893581eba8c863d4572b7bd80
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Sat Feb 22 03:07:28 2025 -0800

    go: upgrade 1.22.12 -> 1.24.0
    
    Refresh patches
    
    See [1] for Go 1.24 Release Notes
    
    License-Update: update per Google Legal [2]
    
    [1] https://go.dev/doc/go1.24
    [2] https://github.com/golang/go/commit/760b722c344d312ab62a5c2f94865a869ce0bab9
    
    Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>



====== Testing ======
* Commands
$ bitbake go-binary-native go-cross-canadian-x86-64 go-cross-canadian-x86-64 go-runtime go

* Expected Results
Build successfully