File: Skip-git-requirement.patch

package info (click to toggle)
rocblas 6.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,082,920 kB
  • sloc: cpp: 245,009; f90: 50,012; python: 50,003; sh: 24,623; asm: 8,917; makefile: 147; ansic: 107; xml: 36; awk: 14
file content (39 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Christian Kastner <ckk@debian.org>
Date: Fri, 4 Jul 2025 09:41:05 +0200
Subject: Skip git requirement

It appears to be used only for the git commit ID, which we can work
around.

Forwarded: not-needed
---
 library/CMakeLists.txt | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 762580d..a115ad8 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -146,14 +146,15 @@ if( BUILD_VERBOSE )
   message( STATUS "\t==>CMAKE_SHARED_LINKER_FLAGS_RELEASE: ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}" )
 endif( )
 
-find_package(Git REQUIRED)
-
+# Debian: Pass in GIT_HASH_ROCBLAS manually
+#find_package(Git REQUIRED)
+#
 # Get the git hash of the rocBLAS branch
-execute_process(
-          COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD
-          WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
-          OUTPUT_VARIABLE GIT_HASH_ROCBLAS
-          OUTPUT_STRIP_TRAILING_WHITESPACE)
+#execute_process(
+#          COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD
+#          WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
+#          OUTPUT_VARIABLE GIT_HASH_ROCBLAS
+#          OUTPUT_STRIP_TRAILING_WHITESPACE)
 
 #set the rocBLAS commit hash
 set(rocblas_VERSION_COMMIT_ID "${GIT_HASH_ROCBLAS}")