From c6ea70c041532aa45dfec21691d8273e2ce2ba3f Mon Sep 17 00:00:00 2001 From: Hendrik Donner Date: Mon, 3 Mar 2025 16:10:56 +0100 Subject: [PATCH] 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) --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2