[Bug 230096] sysutils/py-google-compute-engine: Installed script(s) reference python not pythonX.Y

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 31 01:31:45 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230096

--- Comment #5 from Kubilay Kocak <koobs at FreeBSD.org> ---
Note: This issue is only a bug *if* this port installs command line scripts
without rewriting the shebangs to match and use ${PYTHON_CMD}. That needs to be
investigated and verified (else closed "Not a bug").

What GCE images contain or don't contain by default does not (by itself) have a
bearing on whether or not the port is or isn't not in compliance with
port/packaging shebang requirements.

Speaking with Gustavo on IRC, it appears only (correct me if I understood
incorrectly) that an externally sourced script [1] they use, uses "
#!/usr/bin/env python2 ", which gave rise to this bug report.

If this is indeed the case, the appropriate solution is for the user themselves
to install the lang/python and/or lang/python2 ports to provide those symlinks
for their convenience, or potentially, for the GCE images to install the
lang/python2 and lang/python packages so those symlinks are available to users
by default, if that's possible, and if it can be argued that that is what user
expectations are. 

[1]
https://github.com/GoogleCloudPlatform/compute-image-tools/blob/master/daisy_workflows/linux_common/bootstrap.py#L1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-python mailing list