-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-sys: fix invalid args detected by meson 0.42 #6561
Conversation
meson.build
Outdated
@@ -2346,11 +2346,9 @@ if git.found() | |||
|
|||
run_target( | |||
'tags', | |||
input : all_files, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this just be changed to depends
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depends
doesn't work with files
, only with buildtarget
.
man/meson.build
Outdated
@@ -199,6 +199,5 @@ if git.found() | |||
command : ['sh', '-c', | |||
'cd @0@ && '.format(meson.build_root()) + | |||
'python3 @0@/tools/make-man-rules.py `git ls-files ":/man/*.xml"` >t && '.format(meson.source_root()) + | |||
'mv t @0@/rules/meson.build'.format(meson.current_source_dir())], | |||
depend_files : custom_entities_ent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You drop the dependency on custom_entities_ent
, which is quite important… Do you think it's not possible to keep it?
tbh, i didn't really try to figure what those things were supposed to do if they worked. :-) They are ignored silently in 0.41 (prob older versions too?), 0.42 just adds the warning. You can check We can make all of them custom_target to get an actual dep in the ninja file. Do you prefer that? I noticed this would change |
I can't swear that all of this worked properly, but I'm sure that there have been some regression in meson. For example I think |
some run_target() calls were using params from custom_target() example message: WARNING: Passed invalid keyword argument "input". This will become a hard error in the future.
44c29fa
to
3b84684
Compare
'tags', | ||
input : all_files, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: Removing the input
is intentional. custom_target
(unlike run_target
) automatically adds files
appearing in command
as implicit deps in ninja.build
.
Fake output files, hmmm. That's not very pleasant, but as long as it works... ;] |
'ninja -C build man/html |
Yeah, it's not pretty to use Wrt to top-level targets: If you are really into that, just
This would also make it possible to stop misusing |
Nah, I think things are fine as they are. Meson is changing quickly, so I'd just wait and revisit in a few months. |
some run_target() calls were using params from custom_target() example message: WARNING: Passed invalid keyword argument "input". This will become a hard error in the future. New way to call targets: ninja man/man ninja man/html ninja man/update-man-rules
some run_target() calls were using params from custom_target() example message: WARNING: Passed invalid keyword argument "input". This will become a hard error in the future. New way to call targets: ninja man/man ninja man/html ninja man/update-man-rules
command : ['env', 'etags', '-o', '@0@/TAGS'.format(meson.source_root())] + all_files) | ||
run_target( | ||
custom_target( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about tags
, but ctags
seems to be broken due to mesonbuild/meson#3589. Maybe --tag-relative=yes
could help to get around the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tags
seems to work fine here. I'm not even sure how to test ctags
(it's used by vi
, right?). Please open a new issue with more details, otherwise this will get lost.
In systemd#6561, `run_target` was changed to `custom_target`, which inadvertenly caused relative paths to be passed to ctags due to mesonbuild/meson#3589. The switch to `run_target` causes absolute paths to be passed again and makes it easier to jump from file to file, hopefully delaying the need to exit Vim :-)
In systemd#6561, `run_target` was changed to `custom_target`, which inadvertently caused relative paths to be passed to ctags due to mesonbuild/meson#3589. The switch to `run_target` causes absolute paths to be passed again and makes it easier to jump from file to file, hopefully delaying the need to exit Vim :-)
In #6561, `run_target` was changed to `custom_target`, which inadvertently caused relative paths to be passed to ctags due to mesonbuild/meson#3589. The switch to `run_target` causes absolute paths to be passed again and makes it easier to jump from file to file, hopefully delaying the need to exit Vim :-)
In systemd/systemd#6561, `run_target` was changed to `custom_target`, which inadvertently caused relative paths to be passed to ctags due to mesonbuild/meson#3589. The switch to `run_target` causes absolute paths to be passed again and makes it easier to jump from file to file, hopefully delaying the need to exit Vim :-)
In systemd/systemd#6561, `run_target` was changed to `custom_target`, which inadvertently caused relative paths to be passed to ctags due to mesonbuild/meson#3589. The switch to `run_target` causes absolute paths to be passed again and makes it easier to jump from file to file, hopefully delaying the need to exit Vim :-)
not sure about the man/html custom_target.
the 3 removed args are redundant afaiu the meson docs.