Path: blob/main/dns/bind9-devel/files/patch-meson.build
28229 views
Use bind-tools option to ease the server/tools package split12--- meson.build.orig 2026-02-04 14:54:40 UTC3+++ meson.build4@@ -72,6 +72,8 @@ zlib_opt = get_option('zlib').enable_auto_if(developer5tracing_opt = get_option('tracing')6zlib_opt = get_option('zlib').enable_auto_if(developer_mode)78+bind_tools = get_option('bind-tools').enabled()9+10build_options = meson.build_options()11if build_options == ''12build_options = 'default'13@@ -1306,6 +1308,7 @@ libisccfg_dep = declare_dependency(14include_directories: isccfg_inc,15)1617+if bind_tools18executable(19'arpaname',20arpaname_src,21@@ -1518,7 +1521,9 @@ executable(22libisc_dep,23],24)25+endif2627+if not bind_tools28executable(29'named-checkconf',30named_checkconf_src,31@@ -1593,7 +1598,9 @@ endif32],33)34endif35+endif3637+if bind_tools38executable(39'named-rrchecker',40named_rrchecker_src,41@@ -1606,6 +1613,7 @@ executable(42],4344)45+endif4647named_deps = []4849@@ -1643,6 +1651,7 @@ named_srcconf = named_srcset.apply(config, strict: fal5051named_srcconf = named_srcset.apply(config, strict: false)5253+if not bind_tools54executable(55'named',56named_srcconf.sources(),57@@ -1670,7 +1679,9 @@ executable(58named_srcconf.dependencies(),59],60)61+endif6263+if bind_tools64executable(65'nsec3hash',66nsec3hash_src,67@@ -1715,7 +1726,9 @@ executable(68edit_dep,69],70)71+endif7273+if not bind_tools74executable(75'rndc-confgen',76rndc_confgen_src,77@@ -1810,6 +1823,7 @@ shared_library(78libns_dep,79],80)81+endif8283subdir('doc')84subdir('tests')85@@ -1886,7 +1900,6 @@ print(release_date, end="")86print(release_date, end="")87'''8889-if doc_opt.allowed()90release_date = ''91if python.found()92release_date = run_command(python, ['-c', get_release_date], check: true).stdout()93@@ -1907,6 +1920,7 @@ if doc_opt.allowed()9495install_man(man_pages)9697+if doc_opt.allowed()98if sphinx_build.found()99alias_target('doc-misc', doc_misc_targets)100101102103