From: Christian Göttsche Date: Mon, 4 Jan 2021 13:15:00 +0000 (+0100) Subject: Use release version for Debian X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2^2~1^2^2^2^2^2^2^2~1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=592b62b5b30c0d1646f0be07224b9668ddc369f4;p=nextcloud-desktop.git Use release version for Debian Drop upstream git information from version output. Forwarded: not-needed Gbp-Pq: Name 0003-Use-release-version-for-Debian.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ba0195b57..9a0167365 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,29 +95,12 @@ include(GNUInstallDirs) include(DefineInstallationPaths) include(GenerateExportHeader) -include(GetGitRevisionDescription) - -get_git_head_revision(GIT_REFSPEC GIT_SHA1) - add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x000000 -DQT_USE_QSTRINGBUILDER -DQT_MESSAGELOGCONTEXT #enable function name and line number in debug output ) -# if we cannot get it from git, directly try .tag (packages) -# this will work if the tar balls have been properly created -# via git-archive. -if ("${GIT_SHA1}" STREQUAL "GITDIR-NOTFOUND") - file(READ ${CMAKE_SOURCE_DIR}/.tag sha1_candidate) - string(REPLACE "\n" "" sha1_candidate ${sha1_candidate}) - if (NOT ${sha1_candidate} STREQUAL "$Format:%H$") - message("${sha1_candidate}") - set (GIT_SHA1 "${sha1_candidate}") - endif() -endif() -message(STATUS "GIT_SHA1 ${GIT_SHA1}") - set(SYSCONFDIR ${SYSCONF_INSTALL_DIR}) set(SHAREDIR ${CMAKE_INSTALL_FULL_DATADIR}) diff --git a/VERSION.cmake b/VERSION.cmake index 5e8ac49db..d713b5c83 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -33,3 +33,8 @@ set( MIRALL_VERSION_STRING "${MIRALL_VERSION}${MIRALL_VERSION_SUFFIX}" ) if( MIRALL_VERSION_BUILD ) set( MIRALL_VERSION_STRING "${MIRALL_VERSION_STRING} (build ${MIRALL_VERSION_BUILD})" ) endif( MIRALL_VERSION_BUILD ) + +# Version from Debian changelog +if( EXTERNAL_VERSION ) + set( MIRALL_VERSION_STRING "${EXTERNAL_VERSION}" ) +endif( EXTERNAL_VERSION )