File: 0001-Override-git-version.patch

package info (click to toggle)
xiphos 4.3.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 49,568 kB
  • sloc: ansic: 29,239; cpp: 13,163; xml: 163; python: 141; makefile: 29; sh: 7
file content (15 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Bastian Germann <bage@debian.org>
Date: Sat, 27 Jun 2020 15:29:01 +0200
Subject: Override git version

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,7 +76,7 @@ if(EXISTS "${PROJECT_SOURCE_DIR}/.git")
 		message(WARNING "Failed to read git version. Seting version to v0")
 	endif()
 	string(REGEX REPLACE "^(([0-9]+\\.?)+)-([0-9]+)-.*$" "\\1.\\3" VERSION "${VERSION}")
-	file(WRITE ${SOURCE_VERSION_CACHE} "${VERSION}")
+	file(STRINGS ${SOURCE_VERSION_CACHE} VERSION)
 	message(STATUS "Setting version to ${VERSION}")
 else()
 	file(STRINGS ${SOURCE_VERSION_CACHE} VERSION)