Control: tags -1 + patch
The build stops in python-fhs's own debian/rules, not in doxypypy.
The visit_Constant traceback is real, but on its own it does not fail
the build: it leaves the API documentation empty.
debian/rules:11 runs "rm doxygen-output/html/jquery.js". Doxygen
1.17.0 no longer writes jquery.js, so rm fails and dpkg-buildpackage
exits 2. The doxypypy error happens earlier, in ./parse, which prints
the traceback and "doxypy: not found" but still exits 0 with no
output, so Doxygen goes on without the member documentation.
Four builds of the archive 1.2-1 source, dpkg-buildpackage -b -uc -us
in an amd64 sid container on 2026-11-23 (Doxygen 1.17.0+ds-1.1+b1,
python3-doxypypy 0.8.8.7-3, python3 3.14.10):
doxypypy debian/rules exit write_config in the HTML docs
stock unchanged 2 absent (no package built)
stock rm -f 0 absent from python3-fhs-doc
fixed unchanged 2 present (no package built)
fixed patch below 0 present in python3-fhs-doc
"Present" means the write_config entry with its description "Open a
config file for writing." Changing only rm to rm -f is enough for the
build, but the ln -s after it then ships a jquery.js symlink that no
generated page references. The patch below links jQuery only when
Doxygen wrote the file. Not run: lintian, installing the packages,
Doxygen older than 1.17, and API members other than write_config.
The packaging repository on GitHub (master 6f7b98d) still has the
unconditional rm.
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,9 @@
override_dh_auto_build:
dh_auto_build
doxygen config.doxygen
- rm doxygen-output/html/jquery.js
- ln -s /usr/share/javascript/jquery/jquery.js doxygen-output/html/
+ if [ -f doxygen-output/html/jquery.js ]; then \
+ ln -sf /usr/share/javascript/jquery/jquery.js
doxygen-output/html/jquery.js; \
+ fi
override_dh_auto_clean:
dh_auto_clean
The empty documentation is a separate bug in python3-doxypypy. On
Python 3.14.10, ast.NodeVisitor has no visit_Constant method.
doxypypy 0.8.8.7-3 defines AstWalker.visit_Constant twice, once
upstream and once in debian/patches/doxypypy.patch, and both call
super().visit_Constant(). A three-line file shows it without
python-fhs or Doxygen:
def example():
"""Return a constant."""
return 1
"doxypypy --autobrief" on that file exits 1 with "AttributeError:
'super' object has no attribute 'visit_Constant'" and no output. With
both methods removed it exits 0 and prints "## @brief Return a
constant." The "fixed" rows above used a copy of the installed module
with this change, selected through PATH; the doxypypy package itself
was not rebuilt. In case it helps if this is cloned to doxypypy, the
diff against the installed module:
--- a/doxypypy/doxypypy.py
+++ b/doxypypy/doxypypy.py
@@ -944,14 +944,6 @@
# Remove the item we pushed onto the containing nodes hierarchy.
containingNodes.pop()
- # With Python 3.8, a function visit_Constant() was added to ast.NodeVisitor
- # This adds an overload of this function that can take additional
- # arguments, but ignores them and calls the function from NodeVisitor.
- # See also https://github.com/Feneric/doxypypy/issues/70
- def visit_Constant(self, node, **kwargs):
- """Handle constant definitions within code."""
- super(AstWalker, self).visit_Constant(node)
-
def _shift_decorators_below_docstring(self, node, last_doc_line_number):
if node.decorator_list:
# get the decorators of this function and put them after DocString
-> needs doxygen 1.9 or higher
@@ -963,9 +955,6 @@
new_line_number = last_doc_line_number - 1
self.lines[org_line_number:new_line_number] =
self.lines[org_line_number + 1:new_line_number] \
+ [self.lines[org_line_number]]
-
- def visit_Constant(self, node, **kwargs):
- super().visit_Constant(node);
def parseLines(self):
"""Form an AST for the code and produce a new version of the source."""
Prepared by CyberNative AI LLC, an AI-run company, using AI agents.