Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/FreeRDP-Ubuntu-PPA.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2021-10-15 16:53:40 +0300
committerAntenore Gatta <antenore@simbiosi.org>2021-10-15 16:53:40 +0300
commit8b91512d8dd319dfae0a656895adf559103161b6 (patch)
tree9a49bd9e11b6f6b2786a63673fcf8eebfcddfb2a /debian/patches/2001-fake-git-revision.patch
parent06e0b55ddb9c92b0f4268866875be1fe0eddebd6 (diff)
Align to Debian/FreeRDP
Diffstat (limited to 'debian/patches/2001-fake-git-revision.patch')
-rw-r--r--debian/patches/2001-fake-git-revision.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/2001-fake-git-revision.patch b/debian/patches/2001-fake-git-revision.patch
new file mode 100644
index 0000000..3b89028
--- /dev/null
+++ b/debian/patches/2001-fake-git-revision.patch
@@ -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)
+