#1117011 cgit: rst2html converter fails with FileNotFoundError

Package:
cgit
Source:
cgit
Description:
hyperfast web frontend for git repositories written in C
Submitter:
Tilman Koschnick
Date:
2026-09-12 22:21:02 UTC
Severity:
normal
Tags:
#1117011#5
Date:
2025-10-02 07:24:04 UTC
From:
To:
Dear Maintainer,

since upgrading to trixie, the rst2html converter I use to display the
about section stopped working. Running it by hand on a sample file
yielded the following error:

$ /usr/lib/cgit/filters/html-converters/rst2html README.rst < README.rst
FileNotFoundError: [Errno 2] No such file or directory: '/proc/7792/fd/pipe:[35424]'
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <docutils-users@lists.sourceforge.net>.
Include "--traceback" output, Docutils version (0.21.2),
Python version (3.13.5), your OS type & version, and the command line used.

It appears that this results from the "<(echo ...)" redirection; I was able to
fix it by moving the template into a separate file and referencing this with the
--template option:

diff -u '--color=auto' -ru html-converters.orig/rst2html html-converters/rst2html
--- html-converters.orig/rst2html       2024-10-20 02:06:41.000000000 +0200
+++ html-converters/rst2html    2025-10-02 08:53:24.039751138 +0200
@@ -1,2 +1,2 @@
 #!/bin/bash
-exec rst2html --template <(echo -e "%(stylesheet)s\n%(body_pre_docinfo)s\n%(docinfo)s\n%(body)s")
+exec rst2html --template rst2html.template
diff -u '--color=auto' -ru html-converters.orig/rst2html.template html-converters/rst2html.template
--- html-converters.orig/rst2html.template      2025-10-02 08:54:02.207519226 +0200
+++ html-converters/rst2html.template   2025-10-02 08:53:24.043751109 +0200
@@ -0,0 +1,4 @@
+%(stylesheet)s
+%(body_pre_docinfo)s
+%(docinfo)s
+%(body)s

Kind regards, Til