0.1.94 tarball fails to build because meson.build requires git rev-parse to succeed even if no .git is there
This change to meson.build
:
--- a/meson.build
+++ b/meson.build
@@ -451,6 +451,7 @@ if git_bin.found() and run_command(
git_bin,
'rev-parse',
'--is-inside-work-tree',
+ check: true,
).returncode() == 0
git_version_h = vcs_tag(
input : 'git-version.h.in',
introduced with 2dc7fc40, makes the build from official tarball babl-0.1.94.tar.xz
to fail for me.
Actually, if building from an official tarball, the rev-parse
git command shouldn't be run in any case (even if git is available) because .git subdirectory is not there.