meson: Adjust ninja usage restriction info for devenv
authorSebastian Fricke <sebastian.fricke@collabora.com>
Mon, 21 Feb 2022 09:58:28 +0000 (10:58 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Mar 2022 11:33:10 +0000 (11:33 +0000)
The documentation within meson highlights, that `ninja` can be used
without problems for any case except `ninja reconfigure`. The warning
however describes to the user, that `ninja` shouldn't be used at all.
Fix the warning.

Fixes: 01eb252f678 Don't allow people to run meson inside the uninstalled env
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1743>

meson.build

index 525c7cf..6d363fd 100644 (file)
@@ -26,7 +26,7 @@ assert('GST_ENV' not in os.environ)
 '''
 cmdres = run_command(python3, '-c', ensure_not_devenv, check: false)
 if cmdres.returncode() != 0
-  error('Do not run `ninja` or `meson` for gst-build inside the development environment, you will run into problems')
+  error('Do not run `ninja reconfigure` or `meson` for gst-build inside the development environment, you will run into problems')
 endif
 
 # Install gst-indent pre-commit hook