From: Michał Kępień Date: Wed, 16 Jul 2025 05:22:53 +0000 (+0200) Subject: Fix plugin loading X-Git-Tag: v9.21.11~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e1abc976cd3cc8b07ac5d2351f0188b8d520e3d;p=thirdparty%2Fbind9.git 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. --- diff --git a/meson.build b/meson.build index d4a675b39ab..7697be86d43 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')