Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11522

[core-kit] sys-cluster/kubectl-1.28.0 does compile due to upstream bug in vendored gimme script

    • Icon: Bug Bug
    • Resolution: Fixed Upstream
    • Icon: Critical (Application) Critical (Application)
    • None
    • None
    • Hide
      1. Unmask and install dev-lang/go-1.21.0 from harvester/2023-08 kit-fixups branch (may be optional, need confirmation from a Go 1.20 user)
      2. sudo emerge -av1 =sys-cluster/kubectl-1.28.0
      Show
      1. Unmask and install dev-lang/go-1.21.0 from harvester/2023-08 kit-fixups branch (may be optional, need confirmation from a Go 1.20 user) 2. sudo emerge -av1 =sys-cluster/kubectl-1.28.0
    • This breaks kubectl with go that is in testing.
    • Upstream bug

      I ran into a new compilation bug with sys-cluster/kubectl-1.28.0 with the masked Go 1.21.0 that is currently in harvester/2023-08, but this could be affecting all users using Go 1.20 as well (need reproduction confirmation)

      • The latest autogenned sys-cluster/kubectl-1.28.0 released a few days ago does not compile with dev-lang/go-1.21.0
      • This is caused by an upstream bug in one of the vendor Bash script called gimme
      • Upstream Bug: https://github.com/travis-ci/gimme/issues/210
      • Upstream Fix (Pending merge as of 08/17/23): https://github.com/travis-ci/gimme/pull/209
      • Regardless a patch will have to be made to the kubectl-1.28.0 vendor script source code or upstream kubectl will have to release a new patch version once a new version of gimme is released

      Full compilation error:

      >>> Emerging (1 of 17) sys-cluster/kubectl-1.28.0::core-kit
      >>> Failed to emerge sys-cluster/kubectl-1.28.0, Log file:
      >>>  '/var/tmp/portage/sys-cluster/kubectl-1.28.0/temp/build.log'
      >>> Jobs: 0 of 17 complete, 1 failed                Load avg: 0.91, 0.47, 0.18
       * Package:    sys-cluster/kubectl-1.28.0-kit
       * Repository: core-kit
       * USE:        amd64 elibc_glibc kernel_linux userland_GNU
       * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
      >>> Unpacking source...
      >>> Unpacking kubernetes-1.28.0.tar.gz to /var/tmp/portage/sys-cluster/kubectl-1.28.0/work
      >>> Source unpacked in /var/tmp/portage/sys-cluster/kubectl-1.28.0/work
      >>> Preparing source in /var/tmp/portage/sys-cluster/kubectl-1.28.0/work/kubectl-1.28.0 ...
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/sys-cluster/kubectl-1.28.0/work/kubectl-1.28.0 ...
      >>> Source configured.
      >>> Compiling source in /var/tmp/portage/sys-cluster/kubectl-1.28.0/work/kubectl-1.28.0 ...
      make -j15 -j1 GOFLAGS= GOLDFLAGS= LDFLAGS= WHAT=cmd/kubectl
      I don't have any idea what to do with '1.20.7'.
        (using download type 'auto')
      go: downloading go.uber.org/automaxprocs v1.5.2
      ncpu/main.go:23:2: GOPROXY list is not the empty string, but contains no entries
      !!! [0817 23:12:31] Call tree:
      !!! [0817 23:12:31]  1: /var/tmp/portage/sys-cluster/kubectl-1.28.0/work/kubectl-1.28.0/hack/lib/golang.sh:843 kube::golang::setup_env(...)
      !!! [0817 23:12:31]  2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
      !!! [0817 23:12:31] Call tree:
      !!! [0817 23:12:31]  1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
      make: *** [Makefile:92: all] Error 1
       * ERROR: sys-cluster/kubectl-1.28.0::core-kit failed (compile phase):
       *   emake failed

            Unassigned Unassigned
            siris siris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: