commit: 101ddccc4fad47ac8bef08ff3e30cc81727f477b Author: Mathias Krause <minipli <AT> grsecurity <DOT> net> AuthorDate: Tue Jul 30 21:30:25 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Aug 9 10:02:44 2024 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=101ddccc
meson: avoid using replace() to not unnecessarily bump meson >= 0.58.0 Debian bullseye ships with meson 0.56.2 which is too old to understand replace(). Work around that with split() and string concatenation. Signed-off-by: Mathias Krause <minipli <AT> grsecurity.net> Closes: https://github.com/gentoo/pax-utils/pull/16 Signed-off-by: Sam James <sam <AT> gentoo.org> man/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/meson.build b/man/meson.build index 09ac0d5..c6982d2 100644 --- a/man/meson.build +++ b/man/meson.build @@ -19,7 +19,7 @@ fs = import('fs') out_pages = [] generated_man_pages_exist = true foreach page : pages - man_page_name = page.replace('.docbook', '.1') + man_page_name = page.split('.')[0] + '.1' out_pages += man_page_name if not fs.exists(man_page_name) generated_man_pages_exist = false
