File: nogitversion.patch

package info (click to toggle)
seabios 1.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,292 kB
  • sloc: ansic: 54,911; cpp: 1,826; asm: 904; python: 821; yacc: 604; makefile: 505; perl: 416; lex: 363; sh: 287
file content (19 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Sun, 01 May 2022 01:26:08 +0300
Subject: no git version

The upstream build system derives package version from the git repository
information if .git/ exists, giving different results when building the
same source with or without .git/. Stop scripts/buildversion.py from looking
at .git/ entirely and always looking at file named ".version" as it does
when no .git/ exists.

diff --git a/scripts/buildversion.py b/scripts/buildversion.py
index 8875497c..a26dda2a 100755
--- a/scripts/buildversion.py
+++ b/scripts/buildversion.py
@@ -115,3 +115,3 @@ def main():
 
-    ver = git_version()
+    ver = ''
     cleanbuild = cleanbuild and 'dirty' not in ver