[neon/neon-packaging/glaxnimate/Neon/unstable] debian: no git versioning

Carlos De Maine null at kde.org
Mon Jan 27 11:35:28 GMT 2025


Git commit fe3855d125a910e0ce9ea6512eb68d90c3cd3a37 by Carlos De Maine.
Committed on 27/01/2025 at 11:35.
Pushed by carlosdem into branch 'Neon/unstable'.

no git versioning

A  +33   -0    debian/patches/drop_git_versioning.diff
A  +1    -0    debian/patches/series
M  +1    -2    debian/rules

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

diff --git a/debian/patches/drop_git_versioning.diff b/debian/patches/drop_git_versioning.diff
new file mode 100644
index 0000000..b2df55e
--- /dev/null
+++ b/debian/patches/drop_git_versioning.diff
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d90203325ce7f4fe9b8a41b8a6a7f801c9e312a1..1ac165df61ae2b98585af1292df52d5486e5471d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -56,28 +56,6 @@ set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+ 
+-# Git
+-set(VERSION_NAKED ${PROJECT_VERSION})
+-set(VERSION_SUFFIX "-git-" CACHE STRING "")
+-
+-if (VERSION_SUFFIX STREQUAL "-git-" AND EXISTS ${CMAKE_SOURCE_DIR}/.git)
+-    # Probably a Git workspace; determine the revision.
+-    find_package(Git QUIET)
+-    if(GIT_FOUND)
+-        exec_program(${GIT_EXECUTABLE} ${CMAKE_SOURCE_DIR}
+-                ARGS "log -n 1 --pretty=format:\"%h\""
+-            OUTPUT_VARIABLE GIT_REVISION)
+-        message(STATUS "Git revision: ${GIT_REVISION}")
+-        set(PROJECT_VERSION "${PROJECT_VERSION}-git-${GIT_REVISION}")
+-    else()
+-        message(STATUS "Git revision could not be determined")
+-    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
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a408297
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+drop_git_versioning.diff
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 08a28d0..4877acc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,5 @@
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
-	-DBUILD_WITH_QT6=ON \
-	-DVERSION_SUFFIX=NEON
+	-DBUILD_WITH_QT6=ON
 #	-DMOBILE_UI=ON 
\ No newline at end of file


More information about the Neon-commits mailing list