]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix plugin loading
authorMichał Kępień <michal@isc.org>
Wed, 16 Jul 2025 05:22:53 +0000 (07:22 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 16 Jul 2025 05:22:53 +0000 (07:22 +0200)
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

index d4a675b39abe3253243017eaf7bff79e0ba7c81d..7697be86d43fe7d6bf943e5e81418b166f3f32e2 100644 (file)
@@ -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')