Bug 248305

Summary: net/google-cloud-sdk: gcloud looking for "python"
Product: Ports & Packages Reporter: Jason W. Bacon <jwb>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-patch
Priority: --- Flags: bugzilla: maintainer-feedback? (swills)
Version: Latest   
Hardware: Any   
OS: Any   

Description Jason W. Bacon freebsd_committer freebsd_triage 2020-07-27 18:45:09 UTC
FreeBSD barracuda.uits  bacon ~/Data/TOPMed/Jobs/Haplohseq-analysis 1025: gcloud compute scp Split-vcfs/Combined/combined.NWD102903.vcf.xz topmed1-16:
exec: python: not found

Should this have PYTHON_CMD patched in?  Currently one must separately install lang/python or lang/python[23] to make it work.

From the gcloud script:

setup_cloudsdk_python() {
  # if $CLOUDSDK_PYTHON is not set, prefer python3 over python2
  if [ -z "$CLOUDSDK_PYTHON" ]; then
    CLOUDSDK_PYTHON=$(order_python python3 python2 python2.7 python)
  fi
}

Same goes for other installed scripts.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-08-28 14:05:21 UTC
A commit references this bug:

Author: swills
Date: Fri Aug 28 14:04:55 UTC 2020
New revision: 546734
URL: https://svnweb.freebsd.org/changeset/ports/546734

Log:
  net/google-cloud-sdk: fix python path issues

  While here, remove a Linux binary

  PR:		248305
  Reported by:	jwb, re@ via bapt (irc)

Changes:
  head/net/google-cloud-sdk/Makefile