]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson_options: re-add 'manager' but deprecate it docs-develop-mana-vme28b/deployments/4707 manager-option-deprecated
authorOto Šťáva <oto.stava@nic.cz>
Fri, 26 Jul 2024 13:09:45 +0000 (15:09 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Fri, 26 Jul 2024 13:09:45 +0000 (15:09 +0200)
Meson, in its infinite wisdom started erroring out when the build dir
has an unknown option configured, so we need to keep this and mark it
deprecated, apparently.

manager/meson.build [deleted file]
meson_options.txt

diff --git a/manager/meson.build b/manager/meson.build
deleted file mode 100644 (file)
index 476532e..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-build_manager = false
-
-if get_option('manager') != 'disabled'
-    message('--- manager dependencies ---')
-
-    pymod = import('python')
-    py3 = pymod.find_installation('python3')
-    py3_deps = run_command(py3, 'tests/packaging/dependencies.py', 'setup.py', check: false)
-
-    if py3.language_version().version_compare('<3.6')
-        error('At least Python 3.6 is required.')
-    elif py3_deps.returncode() != 0
-        error(py3_deps.stderr().strip())
-    else
-        message('all dependencies found')
-        build_manager = true
-    endif
-
-    message('----------------------------')
-endif
-
-if build_manager
-
-    # shell completion
-    subdir('shell-completion')
-
-    # installation script
-    meson.add_install_script('scripts/install.sh', py3.path())
-
-    # YAML config configuration file
-    install_data(
-        sources: 'etc/knot-resolver/config.yaml',
-        install_dir: etc_dir,
-    )
-endif
\ No newline at end of file
index 0f40485032e3b943ea8181591f05c117bf015ec5..0d94c81bd5abe41b22264d1c27ae140832f36c08 100644 (file)
@@ -125,6 +125,19 @@ option(
   description: 'build benchmarks',
 )
 
+option(
+  'manager',
+  type: 'combo',
+  choices: [
+    'auto',
+    'enabled',
+    'disabled',
+  ],
+  value: 'disabled',
+  description: 'deprecated - do not use',
+  deprecated: true,
+)
+
 option(
   'utils',
   type: 'combo',