Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 648428

Summary: sys-cluster/kubectl-1.9.3 : Please install go1.9.1 or later.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Manuel Rüger (RETIRED) <mrueg>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: dschridde+gentoobugs, mlen, zeekec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-cluster:kubectl-1.9.3:20180221-123734.log
temp.tbz2
kubectl-1.9.3-fix-comparison-of-golang-versions-fc37221db5d08eb9553273ad6202a2557cfde131.patch

Description Toralf Förster gentoo-dev 2018-02-21 18:17:48 UTC
Detected go version: go version go1.10 linux/amd64.
Kubernetes requires go1.9.1 or greater.
Please install go1.9.1 or later.

!!! [0221 13:37:41] Call tree:
!!! [0221 13:37:41]  1: ./hack/run-in-gopath.sh:30 kube::golang::setup_env(...)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_libressl_20180219-235058

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv sys-cluster/kubectl
[ebuild  N    ] sys-cluster/kubectl-1.9.3
Comment 1 Toralf Förster gentoo-dev 2018-02-21 18:17:51 UTC
Created attachment 520450 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-21 18:17:54 UTC
Created attachment 520452 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-02-21 18:17:57 UTC
Created attachment 520454 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-02-21 18:18:00 UTC
Created attachment 520456 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-02-21 18:18:03 UTC
Created attachment 520458 [details]
sys-cluster:kubectl-1.9.3:20180221-123734.log
Comment 6 Toralf Förster gentoo-dev 2018-02-21 18:18:06 UTC
Created attachment 520460 [details]
temp.tbz2
Comment 7 Lik 2018-02-24 12:03:36 UTC
Looks like this bug already addressed by upstream in #58207 (https://github.com/kubernetes/kubernetes/pull/58207)
Comment 8 Dennis Schridde 2018-02-25 08:31:38 UTC
Created attachment 520974 [details, diff]
kubectl-1.9.3-fix-comparison-of-golang-versions-fc37221db5d08eb9553273ad6202a2557cfde131.patch

Attached patch was taken from the upstream commit and minimally modified to patch the right file.  It solves the issue.
Comment 9 Dennis Schridde 2018-03-13 10:12:10 UTC
Issue persists and patch continues to fix it in a new installation of Gentoo.
Comment 10 Mateusz Lenik 2018-03-13 20:57:51 UTC
Version 1.9.4 that includes the patch was released yesterday
Comment 11 Manuel Rüger (RETIRED) gentoo-dev 2018-03-22 01:35:23 UTC
Please test version 1.9.5