File: 2001_disable-upstream-Git-version-detection.patch

package info (click to toggle)
veyon 4.9.7%2Brepack1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,028 kB
  • sloc: cpp: 52,043; ansic: 7,307; python: 228; makefile: 222; sh: 48
file content (40 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: Don't detect upstream release version from Git, fails with the veyon packaging Git.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: not needed, Debian-specific

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,33 +46,6 @@
 	set(VERSION_STRING "")
 endif()
 
-find_package(Git)
-
-if(GIT_FOUND)
-	# determine build number to use in NSIS installer and resource files
-	execute_process(COMMAND "${GIT_EXECUTABLE}" describe --tags
-		COMMAND cut -d "-" -f2
-		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
-		OUTPUT_STRIP_TRAILING_WHITESPACE
-		OUTPUT_VARIABLE VERSION_BUILD)
-	if(NOT VERSION_BUILD GREATER 0)
-		set(VERSION_BUILD 0)
-	endif()
-
-	# Get list of all committers from git history, ordered by number of commits.
-	# The CONTRIBUTORS file is used by AboutDialog. This information can be provided
-	# with -DCONTRIBUTORS=/path/to/CONTRIBUTORS instead.
-	set(CONTRIBUTORS "${CMAKE_BINARY_DIR}/CONTRIBUTORS")
-	if(NOT EXISTS "${CONTRIBUTORS}")
-		execute_process(COMMAND "${GIT_EXECUTABLE}" shortlog -sn v3.99.0..HEAD
-			COMMAND cut -c8-
-			OUTPUT_FILE "${CONTRIBUTORS}"
-			WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
-			TIMEOUT 10)
-	endif()
-
-endif()
-
 # can't retrieve version information as not building from Git repository?
 if(VERSION_STRING STREQUAL "")
 	set(VERSION_MAJOR 4)