Group :: Networking/WWW
RPM: chromium
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0006-ALT-Fix-last-commit-position-issue.patch
Download
Download
From 03e3e083cdceda0c13f41da8dc1f0f7abe9ac096 Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Fri, 14 Oct 2016 12:20:20 +0300
Subject: [PATCH] ALT: Fix last commit position issue
https://groups.google.com/a/chromium.org/forum/#!topic/gn-dev/7nlJv486bD4
---
tools/gn/build/gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/gn/build/gen.py b/tools/gn/build/gen.py
index 265b1f56a91..28a36c326f3 100755
--- a/tools/gn/build/gen.py
+++ b/tools/gn/build/gen.py
@@ -160,21 +160,21 @@ def main(argv):
if not options.no_last_commit_position:
GenerateLastCommitPosition(host,
os.path.join(out_dir, 'last_commit_position.h'))
WriteGNNinja(os.path.join(out_dir, 'build.ninja'), platform, host, options)
return 0
def GenerateLastCommitPosition(host, header):
ROOT_TAG = 'initial-commit'
describe_output = subprocess.check_output(
- ['git', 'describe', 'HEAD', '--match', ROOT_TAG], shell=host.is_windows(),
+ ['echo', ROOT_TAG + '-0-g00000000000'], shell=host.is_windows(),
cwd=REPO_ROOT)
mo = re.match(ROOT_TAG + '-(\d+)-g([0-9a-f]+)', describe_output.decode())
if not mo:
raise ValueError(
'Unexpected output from git describe when generating version header')
contents = '''// Generated by build/gen.py.
#ifndef OUT_LAST_COMMIT_POSITION_H_
#define OUT_LAST_COMMIT_POSITION_H_
--
2.25.4