Created attachment 195516 [details] patch Currently the FreeBSD-12-0-SNAP on GCE is not providing a lang/python nor lang/python packages so only a specific python2.7 binary exist. That's not enough for handling shebangs.
reopen
could somebody add the merge-quaterly flag? I'd love to see this running
Adding lang/python to install the symlink is not the correct solution, this issue is a bug... All python ports must modify scripts / script shebangs such that they only reference the specific version of the selected/chosen (PYTHON_CMD) python (interpreter) at the time of the build For packages that use setuptools (setup.py: console_scripts, scripts) these shebangs are rewritten during installation and shouldn't need to be modified in the sources.
Comment on attachment 195516 [details] patch The files this port installs that reference `python` need to be identified, and modified to reference ${PYTHON_CMD} (the selected/chosen python version in the framework)
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
(In reply to Kubilay Kocak from comment #5) > 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. That's the case. I guess then that I'm on the wrong project. I'll send a PR to FreeBSD itself to change the releasing of GCE images to contain lang/python2 (release/tools/gce.conf, variable VM_EXTRA_PACKAGES)
follow up on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230248