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

Bug 923621

Summary: net-vpn/tailscale-1.58.2: build version reports as 1.58.2-ERR-BuildInfo
Product: Gentoo Linux Reporter: alex
Component: Current packagesAssignee: William Hubbs <williamh>
Status: UNCONFIRMED ---    
Severity: minor CC: chutzpah, jstein, Magnus.Kessler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix tailscale version info

Description alex 2024-02-02 11:46:25 UTC
Variables used to tag the reported version have changed in https://github.com/tailscale/tailscale/commit/70a2929a12f246aa783684eca7f48cb4c8eb9d65

    -ldflags="-X tailscale.com/version.long=${LONG} -X tailscale.com/version.short=${SHORT} -X tailscale.com/version.gitCommit=${GIT_HASH}"
    +ldflags="-X tailscale.com/version.longStamp=${LONG} -X tailscale.com/version.shortStamp=${SHORT}"

Reproducible: Always

Steps to Reproduce:
1. Run "tailscale version"
2.
3.
Actual Results:  
1.58.2-ERR-BuildInfo
  go version: go1.21.6

Expected Results:  
1.58.2
  tailscale commit: b0e1bbb62ef3834e99f5212b44043cec1866b07e
  go version: go1.21.6

https://github.com/gentoo/gentoo/pull/32246
https://gitlab.alpinelinux.org/alpine/aports/-/issues/14775
Comment 1 Magnus Kessler 2024-02-16 12:59:02 UTC
Created attachment 885151 [details, diff]
Fix tailscale version info

Fixed version info patch for tailscale >= 1.46.1, rebased from https://github.com/gentoo/gentoo/pull/32246