Package: cgit Version: 1.2.3+git20240802.70.09d24d7+git2.46.0-1 Severity: normal Tags: patch
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 <[email protected]>. 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 -- System Information: Debian Release: 13.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.43+deb13-amd64 (SMP w/12 CPU threads; PREEMPT) Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages cgit depends on: ii libc6 2.41-12 ii liblua5.4-0 5.4.7-1+b2 ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1 Versions of packages cgit recommends: pn apache2 | httpd <none> Versions of packages cgit suggests: ii python3 3.13.5-1 ii python3-docutils 0.21.2+dfsg-2 ii python3-markdown 3.7-2 ii python3-pygments 2.18.0+dfsg-2 -- no debconf information
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

