]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: force ctags to use absolute paths
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 16 Jan 2022 06:06:15 +0000 (06:06 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Jan 2022 14:07:11 +0000 (15:07 +0100)
Looks like https://github.com/mesonbuild/meson/issues/957 was
reintroduced in meson-0.57.0 (and looking and https://mesonbuild.com/Release-notes-for-0-57-0.html
I'm not sure whether it was intentional or not) so run_command can no
longer be used to get around
https://github.com/mesonbuild/meson/issues/3589. Let's just force
ctags to always use absolute paths to fix it once and for all.

meson.build

index 312439015fd2230b493bc22c4c836805b451e812..5e0bd2c431e7212e65b01081634a4533f228df49 100644 (file)
@@ -3876,7 +3876,7 @@ if git.found()
                         command : [env, 'etags', '-o', '@0@/TAGS'.format(project_source_root)] + all_files)
                 run_target(
                         'ctags',
-                        command : [env, 'ctags', '-o', '@0@/tags'.format(project_source_root)] + all_files)
+                        command : [env, 'ctags', '--tag-relative=never', '-o', '@0@/tags'.format(project_source_root)] + all_files)
         endif
 endif