]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Allow selecting a specific version of Lua with meson 16256/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 13 Oct 2025 14:54:07 +0000 (16:54 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 13 Oct 2025 14:54:41 +0000 (16:54 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/meson/lua/meson.build
pdns/dnsdistdist/meson_options.txt

index 62aafc046b8aec8fd7d6cd863186e63a69ae8a62..c66ecfbb6a2e8f297fab052b30b4aff8a379f54c 100644 (file)
@@ -12,6 +12,9 @@ endif
 
 if not dep_lua.found() and (opt_lua == 'auto' or opt_lua == 'lua')
   variants = [
+    'lua5.4',
+    'lua-5.4',
+    'lua54',
     'lua5.3',
     'lua-5.3',
     'lua53',
@@ -32,6 +35,10 @@ if not dep_lua.found() and (opt_lua == 'auto' or opt_lua == 'lua')
   endforeach
 endif
 
+if not dep_lua.found() and opt_lua != 'lua' and opt_lua.startswith('lua')
+  dep_lua = dependency(opt_lua, version: '>= 5.1', required: false)
+endif
+
 if not dep_lua.found()
   error('No Lua implementation was found')
 endif
index 3c95c5d8af489092d991f7feb0c94523ef6ddd63..5fd8ac92d75e7f5ae34bc96d5a373febdd3dfd13 100644 (file)
@@ -5,7 +5,7 @@ option('libsodium', type: 'feature', value: 'auto', description: 'Enable libsodi
 option('libcrypto', type: 'feature', value: 'auto', description: 'Enable OpenSSL libcrypto)')
 option('libcrypto-path', type: 'string', value: '', description: 'Custom path to find OpenSSL libcrypto')
 option('tls-gnutls', type: 'feature', value: 'auto', description: 'GnuTLS-based TLS')
-option('lua', type: 'combo', choices: ['auto', 'luajit', 'lua'], value: 'auto', description: 'Lua implementation to use')
+option('lua', type: 'combo', choices: ['auto', 'luajit', 'lua', 'lua51', 'lua-5.1', 'lua5.1', 'lua52', 'lua-5.2', 'lua5.2', 'lua53', 'lua-5.3', 'lua5.3', 'lua54', 'lua-5.4', 'lua5.4'], value: 'auto', description: 'Lua implementation to use')
 option('hardening', type: 'feature', value: 'auto', description: 'Compiler security checks')
 option('hardening-experimental-cf', type: 'combo', choices: ['disabled', 'full', 'branch', 'return', 'check'], value: 'disabled', description: 'Control Flow hardening')
 option('hardening-experimental-scp', type: 'feature', value: 'disabled', description: 'Stack Clash Protection')