Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37716302
en ru br
ALT Linux repositórios
S:117.0.5938.132-alt1
3.0: 0.9.12-alt7

Group :: Rede/WWW
RPM: chromium

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0006-ALT-Fix-last-commit-position-issue.patch
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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009