[AUR] pamac-aur build fails on manpage generation (a2x
/xmllint
)
Summary
When building the latest pamac-aur
(11.7.3-3) from the AUR using yay
(or any AUR helper), the process fails during manpage generation with a2x
and xmllint
. The rest of the build completes with only warnings, but this error prevents installation.
Error Output
[3/9] Generating data/doc/pamac.conf.5 manpage with a custom command
FAILED: data/doc/pamac.conf.5
/usr/bin/a2x -f manpage -D data/doc ../data/doc/pamac.conf.5.asciidoc
a2x: ERROR: "xmllint" --nonet --noout --valid ".../build/data/doc/pamac.conf.5.xml" returned non-zero exit status 3
[4/9] Generating data/doc/pamac.8 manpage with a custom command
FAILED: data/doc/pamac.8
/usr/bin/a2x -f manpage -D data/doc ../data/doc/pamac.8.asciidoc
a2x: ERROR: "xmllint" --nonet --noout --valid ".../build/data/doc/pamac.8.xml" returned non-zero exit status 3
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: pamac-aur-exit status 4
-> Failed to install the following packages. Manual intervention is required:
pamac-aur - exit status 4
Steps to Reproduce
- Run
yay -S pamac-aur
(or any AUR helper). - Wait for the build to reach the manpage generation step.
- The error above occurs and stops the build.
Troubleshooting Tried
- Reinstalled all dependencies:
asciidoc
,docbook-xml
,docbook-xsl
,xmlto
,libxslt
,libxml2
- Verified
/usr/share/xml/docbook/xml-dtd-4.5/docbookx.dtd
exists - Tried to generate the XML manually with
asciidoc -b docbook pamac.conf.5.asciidoc
and validate withxmllint
- Error persists, seems related to build process or incompatibility with recent XML tools versions.
Temporary Workarounds
- Commenting out the
a2x
manpage generation lines in the PKGBUILD allows the build to complete (but no manpages are installed). - Alternatively, installing
pamac-aur-git
sometimes works, as it may not generate manpages or may be patched.
Additional Notes
- The error happens on updated and fresh installations.
- It does not seem to be a permissions or missing dependencies issue.
- Occurs with multiple AUR helpers.
Has anyone else experienced this? Is there a proper fix or patch upstream?
Thanks for any suggestions!
Pinned Comments
Zeph commented on 2022-06-04 13:58 (UTC) (edited on 2024-10-29 07:25 (UTC) by Zeph)
For some problems with pamac, check or create issues on