]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: add meson option to not build man pages 17034/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 25 Mar 2026 11:19:26 +0000 (12:19 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 25 Mar 2026 11:23:31 +0000 (12:23 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/meson.build
pdns/recursordist/meson_options.txt

index b8de5538578b33f94af80b510852bdbccd46f774..897a78870b92aa0a90ce437bc5331854c93d4c9a 100644 (file)
@@ -618,11 +618,11 @@ endif
 py = import('python')
 python = py.find_installation('python3', modules: 'venv', required: false)
 
-summary('Python', python.found(), bool_yn: true, section: 'Manual Pages')
-summary('Path', python.full_path(), section: 'Manual Pages')
-summary('Version', python.version(), section: 'Manual Pages')
+summary('Python with venv', python.found(), bool_yn: true, section: 'Manual Pages')
 
-if python.found()
+if get_option('man-pages') and python.found()
+  summary('Path', python.full_path(), section: 'Manual Pages')
+  summary('Version', python.version(), section: 'Manual Pages')
   generated_man_pages = []
   foreach tool, info: tools
     if 'manpages' in info
@@ -660,6 +660,8 @@ if python.found()
   else
     summary('Generating man pages', false, section: 'Manual Pages')
   endif
+else
+  summary('Generating man pages', false, section: 'Manual Pages')
 endif
 
 if dep_systemd_prog.found()
index 0e9c9787ccea033e6b29943c54bb0621898308f9..d68545c0913d3eefb88bccd68145b542f50325e0 100644 (file)
@@ -25,3 +25,4 @@ option('nod', type: 'feature', value: 'enabled', description: 'Enable Newly Obse
 option('libcap', type: 'feature', value: 'auto', description: 'Enable libcap for capabilities handling')
 option('clang-coverage-format', type: 'boolean', value: false, description: 'Whether to generate coverage data in clang format')
 option('tls-gnutls', type: 'feature', value: 'auto', description: 'GnuTLS-based TLS')
+option('man-pages', type: 'boolean', value: true, description: 'Generate man pages')