Bug 242015 - www/jetty8 jettyctl does not work with python3
Summary: www/jetty8 jettyctl does not work with python3
Status: Closed DUPLICATE of bug 242014
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kubilay Kocak
Depends on:
Reported: 2019-11-17 00:35 UTC by Martin Waschbüsch
Modified: 2019-11-17 01:01 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Waschbüsch 2019-11-17 00:35:14 UTC
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?
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-11-17 01:01:01 UTC

*** This bug has been marked as a duplicate of bug 242014 ***