File: Unbundling-version-from-git.patch

package info (click to toggle)
generate-ninja 0.0~git20250917.1a7c151-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,640 kB
  • sloc: cpp: 87,856; python: 2,121; sh: 205; objc: 159; lisp: 130; makefile: 23; xml: 7
file content (16 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Unbundling version from git

Forwarded: not-needed
diff --git a/build/gen.py b/build/gen.py
index fa23266c..794b4357 100755
--- a/build/gen.py
+++ b/build/gen.py
@@ -243,7 +243,7 @@ def is_gcc(cxx):
 def GenerateLastCommitPosition(host, header):
   ROOT_TAG = 'initial-commit'
   describe_output = subprocess.check_output(
-      ['git', 'describe', 'HEAD', '--abbrev=12', '--match', ROOT_TAG],
+      ['debian/gn-describe'],
       shell=host.is_windows(), cwd=REPO_ROOT)
   mo = re.match(ROOT_TAG + r'-(\d+)-g([0-9a-f]+)', describe_output.decode())
   if not mo: