From 9e1abc976cd3cc8b07ac5d2351f0188b8d520e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Wed, 16 Jul 2025 07:22:53 +0200 Subject: [PATCH] Fix plugin loading Plugins are built as shared libraries and are therefore installed into $libdir/bind. Meanwhile, the build system sets the NAMED_PLUGINDIR preprocessor variable to $datadir/bind instead. This prevents loading plugins specified in the configuration file using just the shared library name (i.e. without using an absolute path or a relative path). Fix by setting NAMED_PLUGINDIR to the path that plugins are actually installed into. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d4a675b39a..7697be86d4 100644 --- a/meson.build +++ b/meson.build @@ -278,7 +278,7 @@ config.set_quoted('SESSION_KEYFILE', localstatedir / 'run' / 'named' / 'session. config.set_quoted('RNDC_CONFFILE', sysconfdir / 'rndc.conf') config.set_quoted('RNDC_KEYFILE', sysconfdir / 'rndc.key') -config.set_quoted('NAMED_PLUGINDIR', datadir / 'bind') +config.set_quoted('NAMED_PLUGINDIR', libdir / 'bind') config.set_quoted('NAMED_LOCALSTATEDIR', localstatedir) config.set_quoted('NAMED_SYSCONFDIR', sysconfdir) config.set_quoted('NAMED_CONFFILE', sysconfdir / 'named.conf')