[neon/neon-packaging/glaxnimate/Neon/release] debian/patches: patch out git section.

Scarlett Moore null at kde.org
Fri Sep 29 14:15:24 BST 2023


Git commit b0f95a6106b0b15d45762797919d3a6ef88cd18e by Scarlett Moore.
Committed on 29/09/2023 at 15:15.
Pushed by scarlettmoore into branch 'Neon/release'.

patch out git section.

A  +39   -0    debian/patches/disable_git.patch
M  +1    -0    debian/patches/series

https://invent.kde.org/neon/neon-packaging/glaxnimate/-/commit/b0f95a6106b0b15d45762797919d3a6ef88cd18e

diff --git a/debian/patches/disable_git.patch b/debian/patches/disable_git.patch
new file mode 100644
index 0000000..16faaa1
--- /dev/null
+++ b/debian/patches/disable_git.patch
@@ -0,0 +1,39 @@
+--- ../glaxnimate-0.5.4/CMakeLists.txt	2023-09-09 12:08:27.000000000 -0700
++++ ../glaxnimate-0.5.4/CMakeLists2.txt	2023-09-29 06:08:38.124019407 -0700
+@@ -50,21 +50,21 @@
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ 
+ # Git
+-set(VERSION_NAKED ${PROJECT_VERSION})
+-set(VERSION_SUFFIX "-git-" CACHE STRING "")
+-
+-if (VERSION_SUFFIX STREQUAL "-git-")
+-    git_describe(GIT_DESC --tags)
+-    if ( NOT ${GIT_DESC} MATCHES ".*NOTFOUND" )
+-        set(PROJECT_VERSION ${GIT_DESC})
+-    endif()
+-elseif(VERSION_SUFFIX MATCHES "^\\..*")
+-    set(PROJECT_VERSION "${PROJECT_VERSION}${VERSION_SUFFIX}")
+-elseif(NOT VERSION_SUFFIX STREQUAL "")
+-    set(PROJECT_VERSION "${PROJECT_VERSION}+${VERSION_SUFFIX}")
+-endif()
+-
+-message(STATUS "Building ${PROJECT_NAME} ${PROJECT_VERSION}")
++# set(VERSION_NAKED ${PROJECT_VERSION})
++# set(VERSION_SUFFIX "-git-" CACHE STRING "")
++#
++# if (VERSION_SUFFIX STREQUAL "-git-")
++#     git_describe(GIT_DESC --tags)
++#     if ( NOT ${GIT_DESC} MATCHES ".*NOTFOUND" )
++#         set(PROJECT_VERSION ${GIT_DESC})
++#     endif()
++# elseif(VERSION_SUFFIX MATCHES "^\\..*")
++#     set(PROJECT_VERSION "${PROJECT_VERSION}${VERSION_SUFFIX}")
++# elseif(NOT VERSION_SUFFIX STREQUAL "")
++#     set(PROJECT_VERSION "${PROJECT_VERSION}+${VERSION_SUFFIX}")
++# endif()
++#
++# message(STATUS "Building ${PROJECT_NAME} ${PROJECT_VERSION}")
+ 
+ # Snapcraft stuff here because we don't care if cmake fails on CI
+ configure_file(
diff --git a/debian/patches/series b/debian/patches/series
index 4a97dfa..a8dfd76 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 # You must remove unused comment lines for the released package.
+disable_git.patch


More information about the Neon-commits mailing list