[Bug 242014] www/jetty8 jettyctl does not work with python3
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 17 00:35:57 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242014
Bug ID: 242014
Summary: www/jetty8 jettyctl does not work with python3
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: olgeni at FreeBSD.org
Reporter: martin at waschbuesch.de
Assignee: olgeni at FreeBSD.org
Flags: maintainer-feedback?(olgeni at FreeBSD.org)
www/jetty8 comes with a control script (/usr/local/sbin/jettyctl) written in
python.
The package Makefile does not seem to depend on a specific version of python,
but said control script makes use of python2 syntax.
When trying to start jetty, I get:
Starting jetty.
File "/usr/local/sbin/jettyctl", line 83
executable = stat.S_IMODE(finfo) & 0111
^
SyntaxError: invalid token
/usr/local/etc/rc.d/jetty: WARNING: failed to start jetty
I do not know much python, but in python3 leading zeros are no longer accepted,
so I guess an octal bitmask for file permissions would need to be written as
0o0111.
However, while doing so will fix the particular error message, the script still
does not work.
Upstream, there is a shell script for starting and stopping jetty. Maybe that
would be a better approach? If, as may well be, this control script is the only
reason why jetty needs to pull in python as a dependency, using a shell script
instead sounds like a reasonable thing to do?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list