From: Bruno Lopes Date: Thu, 11 Dec 2025 13:48:39 +0000 (-0300) Subject: meson: Check for repository with python (not git executable) X-Git-Tag: archive/raspbian/1%0.1.118-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eb62461a0095df6f9a6c8626bb838c3af7c2f8d3;p=babl.git meson: Check for repository with python (not git executable) Closes: #114 As per line 415 of the Meson file, git is not a mandatory dep. (cherry picked from commit 4efc8b827e008417c4995a93ae3310697318cfab) Origin: upstream, after 0.1.118 Gbp-Pq: Name meson-Check-for-repository-with-python-not-git-executable.patch --- diff --git a/meson.build b/meson.build index 8206d36..387ed62 100644 --- a/meson.build +++ b/meson.build @@ -497,11 +497,9 @@ configure_file( # updated. If git is not available, don't do anything if git-version.h # already exists because then we are probably working with a tarball # in which case the git-version.h we ship is correct. -is_git_repository = run_command( - git_bin, - 'rev-parse', - '--is-inside-work-tree', - check: false, +is_git_repository = run_command(python, '-c', + 'import sys,os; sys.exit(0 if os.path.exists(".git") else 1)', + check: false ).returncode() == 0 has_version_h = run_command(python, '-c',