Bug 248305 - net/google-cloud-sdk: gcloud looking for "python"
Summary: net/google-cloud-sdk: gcloud looking for "python"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steve Wills
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2020-07-27 18:45 UTC by Jason W. Bacon
Modified: 2020-08-28 14:05 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (swills)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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