debian/patches: add 2001-fake-git-revision.patch. avoid Git interaction during build.

This commit is contained in:
Konstantin Demin 2020-05-15 00:35:24 +03:00
parent 9810fe2325
commit 810f50e374
No known key found for this signature in database
GPG Key ID: 1F33CB0BA4731BC6
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,32 @@
Description: avoid Git interaction during build
Author: Konstantin Demin <rockdrilla@gmail.com>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -143,25 +143,13 @@ if(CCACHE AND WITH_CCACHE)
endif()
endif(CCACHE AND WITH_CCACHE)
-if(EXISTS "${CMAKE_SOURCE_DIR}/.source_version" )
- file(READ ${CMAKE_SOURCE_DIR}/.source_version GIT_REVISION)
-
- string(STRIP ${GIT_REVISION} GIT_REVISION)
-else()
- git_get_exact_tag(GIT_REVISION --tags --always)
-
- if (${GIT_REVISION} STREQUAL "n/a")
- git_rev_parse (GIT_REVISION --short)
- endif()
-endif()
+set(GIT_REVISION "${FREERDP_VERSION}")
if(CMAKE_CROSSCOMPILING)
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
endif(CMAKE_CROSSCOMPILING)
# /Allow to search the host machine for git/ccache
-message(STATUS "Git Revision ${GIT_REVISION}")
-
# Turn on solution folders (2.8.4+)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

View File

@ -1 +1,2 @@
1001_spelling-fixes.patch
2001-fake-git-revision.patch