From: Otto Moerbeek Date: Wed, 25 Mar 2026 11:19:26 +0000 (+0100) Subject: rec: add meson option to not build man pages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e553d2b699e7b0e5a4fb0deb9da83cd485d246fe;p=thirdparty%2Fpdns.git rec: add meson option to not build man pages Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/meson.build b/pdns/recursordist/meson.build index b8de553857..897a78870b 100644 --- a/pdns/recursordist/meson.build +++ b/pdns/recursordist/meson.build @@ -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() diff --git a/pdns/recursordist/meson_options.txt b/pdns/recursordist/meson_options.txt index 0e9c9787cc..d68545c091 100644 --- a/pdns/recursordist/meson_options.txt +++ b/pdns/recursordist/meson_options.txt @@ -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')