Description: Raise Python recursion limit in Sphinx documentation build
 The Coq reference manual (refman) produces a deeply nested doctree; Sphinx
 8.2.x fails with "RecursionError: maximum recursion depth exceeded" while
 pickling the doctree with the previous limit of 3000. Increase
 sys.setrecursionlimit to 10000 so the docs (refman-html / refman-pdf) build.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed

--- coq-doc-8.20.0.orig/doc/sphinx/conf.py
+++ coq-doc-8.20.0/doc/sphinx/conf.py
@@ -27,7 +27,7 @@ from shutil import copyfile
 import sphinx
 
 # Increase recursion limit for sphinx
-sys.setrecursionlimit(3000)
+sys.setrecursionlimit(10000)
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
