gentoo-ebuilds/sci-libs/hipBLAS/files/hipBLAS-6.3.0-no-git.patch
Sv. Lockal d8505d5905
sci-libs/hipBLAS: fix compilation when git is not installed
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40074
Signed-off-by: Sam James <sam@gentoo.org>
2025-01-10 00:29:17 +00:00

18 lines
627 B
Diff

Git is not required and rev-parse does nothing for tarballs.
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -44,14 +44,6 @@ if( BUILD_VERBOSE )
message( STATUS "\t==>CMAKE_EXE_LINKER link flags: " ${CMAKE_EXE_LINKER_FLAGS} )
endif( )
-# Get the git hash of the hipBLAS branch
-find_package(Git REQUIRED)
-
-execute_process(COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD
- WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
- OUTPUT_VARIABLE GIT_HASH_HIPBLAS
- OUTPUT_STRIP_TRAILING_WHITESPACE)
-
set(hipblas_VERSION_COMMIT_ID "${GIT_HASH_HIPBLAS}")
# log build commits