From: Hendrik Donner Date: Mon, 3 Mar 2025 15:10:56 +0000 (+0100) Subject: meson: Fix setting an absolute customdir X-Git-Tag: v34.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6ea70c041532aa45dfec21691d8273e2ce2ba3f;p=thirdparty%2Fkmod.git meson: Fix setting an absolute customdir The path join operator / does not add a leading path seperator. Signed-off-by: Hendrik Donner Link: https://github.com/kmod-project/kmod/pull/303 Signed-off-by: Lucas De Marchi (cherry picked from commit 2f5f67e689cd374e61b9a3ecb5e3d207e35bdbd0) --- diff --git a/meson.build b/meson.build index 4c4c878d..f0ad0413 100644 --- a/meson.build +++ b/meson.build @@ -220,7 +220,7 @@ foreach tuple : _customdirs .format(dir_option, customdir)) endif # Strip all leading/trailing and re-add only the leading one. - customdir = '' / customdir.strip('/') + customdir = '/' / customdir.strip('/') endif cdata.set_quoted(quoted, customdir) set_variable(dir_option, customdir)