meson: align default distconfdir with autotools

Autotools uses $prefix/lib as the default for distconfdir, while meson
$libdir - which is not guaranteed to be the same.

In particular: Debian and derivatives use /usr/lib/$target-triplet as a
$libdir, while still keep the configuration directory as /usr/lib.

Fixes: 370141c1 ("meson: introduce meson, covering libkmod.so")
Reported-by: Marco d'Itri <md@linux.it>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/216
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
Emil Velikov 2024-10-30 17:00:28 +00:00 committed by Lucas De Marchi
parent 6e10fd50dc
commit d5c7452c29

View File

@ -199,9 +199,9 @@ zshcompletiondir = get_option('zshcompletiondir')
cdata.set_quoted('SYSCONFDIR', sysconfdir)
_customdirs = [
['distconfdir', libdir, 'DISTCONFDIR'],
# The default moduledir is hard-coded due to historical reasons
['moduledir', '/lib/modules', 'MODULE_DIRECTORY'],
# The defaults are hard-coded due to historical reasons
['distconfdir', prefixdir / 'lib', 'DISTCONFDIR'],
['moduledir', '/lib/modules', 'MODULE_DIRECTORY'],
]
foreach tuple : _customdirs