From c840e56e0ac0a4518c0fdf91a6b7362a4e1eb636 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 11 May 2022 15:23:25 +0200 Subject: [PATCH] meson/build: fix using correct prefix for "systemdsystemunitdir" We do the same with autotools. Well, almost the same. Of course, meson's define_variable only accepts a list of two strings, to define one variable. So we cannot also redefine "prefix", unlike configure.ac. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 84b283e60f..a4814550ae 100644 --- a/meson.build +++ b/meson.build @@ -369,7 +369,7 @@ install_systemdunitdir = (systemd_systemdsystemunitdir != 'no') if install_systemdunitdir and systemd_systemdsystemunitdir == '' assert(systemd_dep.found(), 'systemd required but not found, please provide a valid systemd user unit dir or disable it') - systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir') + systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir', define_variable: ['rootprefix', nm_prefix]) endif enable_systemd_journal = get_option('systemd_journal')