MSYS2-packages/pacman/0020-Fix-asciidoc-argparse.patch
Christoph Reiter 1915a138c0 pacman: Update to 6.1.0 (v2)
Same as #4584 but with an additional backport:
https://github.com/msys2/msys2-pacman/pull/49

Old message:

See msys2/msys2-pacman#45

makepkg.conf synced with the upstream version:
https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/etc/makepkg.conf.in

Skip patches only changing CI configs
2024-05-09 09:45:39 +02:00

28 lines
937 B
Diff

From 71b83eae8b1b97f6c761b1f9d938ff422ca5d654 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Fri, 21 May 2021 23:00:14 +0200
Subject: [PATCH 20/N] Fix asciidoc argparse
a2x seems to fail when a value to an argument looks like an argument itself.
The best fix seems to be to attach the value to the argument using an equal
sign.
https://bugs.python.org/issue9334
---
doc/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/meson.build b/doc/meson.build
index e84eddc..7cad0f9 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -59,7 +59,7 @@ foreach page : manpages
'-f', 'manpage',
'--xsltproc-opts', '-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0',
'-D', '@OUTDIR@',
- '--asciidoc-opts', ' '.join(asciidoc_opts),
+ '--asciidoc-opts=' + ' '.join(asciidoc_opts),
'@INPUT@',
],
input : input,