Port net/cgit has an error in the file
The first line (shebang) lists an incorrect python-interpreter.
syntax-highlighting.py needs pyhton3.6 but pyhton2.7 is listed.
First line of the file syntax-highlighting.py from the port:
It should be I think:
Otherwise syntax-highlighting with pygments doesn't not work and you will see no text in cgit.
Created attachment 202778 [details]
possible patch with changed python version
can you test the attached patch?
I changed the python version to 3. Since python is not used as a dependency it shouldn't affect anything other than these shebangs.
the patch works and fix the problem with the shebang.
I started a new jail and installed the ports: nginx, fgciwrap, git and cgit.
In order to run the file /usr/local/lib/cgit/filters/syntax-highlighting.py
/ports/lang/python3 and /ports/textproc/py-gments with the flag FLAVOR=py36 must be installed.
These are the first lines of the file syntax-highlighting.py:
# This script uses Pygments and Python3. You must have both installed
# for this to work.
# It may be used with the source-filter or repo.source-filter settings
# in cgitrc.
You see the shebang is correct.
Sorry Marko, i forgot the "o".
A commit references this bug:
Date: Thu Mar 14 20:02:05 UTC 2019
New revision: 495730
- Shebang fix for cgit filters
- Bump PORTREVISION
Submitted by: Frank van den Boom <firstname.lastname@example.org>
Approved by: Marko Turk <email@example.com> (maintainer)