]> git.ipfire.org Git - thirdparty/kmod.git/commit
meson: disable automatic shell completion on prefix missmatch
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Oct 2024 12:46:47 +0000 (13:46 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 24 Oct 2024 23:10:12 +0000 (18:10 -0500)
commitcea524a659c350a3f78c5aca0167f868573c92de
tree8946c1e2aa03e948084984590873b2aec8d3349e
parenta685a68beb9654238728b4598394777e5d423fe9
meson: disable automatic shell completion on prefix missmatch

Currently one can choose a prefix completely different from the one
bash-completion and fish use, as per their pkg-config file.

In such cases, flag a warning and disable it. People can always manually
provide the completion directory/ies to re-enable.

    $ meson setup --prefix=/tmp/example build/
    ...
    WARNING: User provided prefix '/tmp/example' differs from bash-completion one '/usr'. Disabling completion.
    ...
    WARNING: User provided prefix '/tmp/example' differs from fish one '/usr'. Disabling completion.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/209
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
meson.build