File: 0003-Never-use-git.patch

package info (click to toggle)
muon-meson 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,532 kB
  • sloc: ansic: 67,766; python: 4,391; cpp: 1,983; sh: 709; javascript: 570; asm: 226; xml: 67; objc: 36; makefile: 29; modula3: 8; f90: 7
file content (39 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Andrea Pappacoda <andrea@pappacoda.it>
Date: Fri, 27 Sep 2024 15:51:37 +0200
Subject: Never use git

Otherwise upstream's build system tries to perform git fetches and such.

Forwarded: not-needed
Last-Update: 2025-08-10
---
 meson.build                         | 2 +-
 subprojects/meson-tests/meson.build | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 2fc356a..8e02d29 100644
--- a/meson.build
+++ b/meson.build
@@ -25,7 +25,7 @@ fs = import('fs')
 
 # version information
 
-git = find_program('git', required: false)
+git = find_program('FAKE_GIT_COMMAND_ALWAYS_NOT_FOUND', required: false)
 if git.found() and fs.is_dir('.git')
     rev = run_command(git, 'rev-parse', '--short', 'HEAD', check: true)
     git_sha = rev.stdout().strip()
diff --git a/subprojects/meson-tests/meson.build b/subprojects/meson-tests/meson.build
index 861e57b..19bdee6 100644
--- a/subprojects/meson-tests/meson.build
+++ b/subprojects/meson-tests/meson.build
@@ -4,7 +4,7 @@ fs = import('fs')
 
 host_is_x86 = host_machine.cpu_family().startswith('x86')
 
-is_git_repo = fs.is_dir(meson.current_source_dir() / '.git')
+is_git_repo = false
 
 tests = []