[Bug 242014] www/jetty8: jettyctl fails to run with Python 3: SyntaxError: invalid token
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Oct 2021 00:21:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242014 Kubilay Kocak <koobs@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-patch --- Comment #6 from Kubilay Kocak <koobs@FreeBSD.org> --- Is removing USES=python correct if it needs Python at runtime for the control script? Does it only support a particular subset of Python versions? Does USES=python need a :<version-spec>? If it's only required at runtime, ',run' may be required. However, if the script produces .pyc/pyo files upon first invocation, the files should be run through Pythons standard 'compileall' function to produce and package these, otherwise the resulting files will be orphaned on the system on deinstall. Note also that any scripts invoking Python should invoke (shebang) using the specific version of Python the port has been built with, or uses, using either: - PYTHON_CMD, or - LOCALBASE/sbin/foo-{PYTHON_VER} (with an additional LOCALBASE/sbin/foo version pointing to it). See USE_PYTHON=concurrent We should also match upstream's documentation with respect to what the name of the script is (with or without .sh extension) -- You are receiving this mail because: You are on the CC list for the bug.