]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: fix broken boolean kwarg 24154/head
authorEli Schwartz <eschwartz93@gmail.com>
Wed, 27 Jul 2022 01:49:48 +0000 (21:49 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Jul 2022 04:58:22 +0000 (13:58 +0900)
commit9e4a50bcdf7a275766e4f5c7af012c32bc22128d
treec24ef751da31dc1f6060076d78bff62462f36ece
parent89cdbe1f08cb2acf28354bc321678cbbe14eb225
meson: fix broken boolean kwarg

Everywhere else that `conf.get('ENABLE_*')` is used as a boolean key for
something (for example in if statements) it always checks if == 1, but
in this one case it neglects to do so. This is important because
conf.get yields the same int that was stored, but if statements require
booleans.

So does executable's "install" kwarg, at least according to the
documentation. In actuality, it accepts all types without sanity
checking, then uses python "if bool(var)", so you can actually do
`install: 'do not'` and that's treated identical to `true`. This is a
type-checking bug which Meson will eventually fix.

muon fails on the same code, today.
meson.build