]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
meson: Fix setting an absolute customdir
authorHendrik Donner <hd@os-cillation.de>
Mon, 3 Mar 2025 15:10:56 +0000 (16:10 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 4 Mar 2025 17:38:04 +0000 (11:38 -0600)
The path join operator / does not add a leading path seperator.

Signed-off-by: Hendrik Donner <hd@os-cillation.de>
Link: https://github.com/kmod-project/kmod/pull/303
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
meson.build

index 4c4c878dd08e6528ad6867ba13c8c4007053bc2a..f0ad0413061bb88084bd7507e2267b5d4ff3619e 100644 (file)
@@ -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)