Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37713059
en ru br
ALT Linux repos
S:0.0.29-alt1.2

Group :: Emulators
RPM: rpcs3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: rpcs3-alt-git.patch
Download


 rpcs3/git-version.cmake | 32 --------------------------------
 1 file changed, 32 deletions(-)
diff --git a/rpcs3/git-version.cmake b/rpcs3/git-version.cmake
index fb90f84127d..d21512bc4cb 100644
--- a/rpcs3/git-version.cmake
+++ b/rpcs3/git-version.cmake
@@ -2,38 +2,6 @@ set(RPCS3_GIT_VERSION "local_build")
 set(RPCS3_GIT_BRANCH "local_build")
 set(RPCS3_GIT_FULL_BRANCH "local_build")
 
-find_package(Git)
-if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git/")
-	execute_process(COMMAND ${GIT_EXECUTABLE} rev-list HEAD --count
-		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
-		RESULT_VARIABLE exit_code
-		OUTPUT_VARIABLE RPCS3_GIT_VERSION)
-	if(NOT ${exit_code} EQUAL 0)
-		message(WARNING "git rev-list failed, unable to include version.")
-	endif()
-	execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short=8 HEAD
-		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
-		RESULT_VARIABLE exit_code
-		OUTPUT_VARIABLE GIT_VERSION_)
-	if(NOT ${exit_code} EQUAL 0)
-		message(WARNING "git rev-parse failed, unable to include version.")
-	endif()
-	execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
-		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
-		RESULT_VARIABLE exit_code
-		OUTPUT_VARIABLE RPCS3_GIT_BRANCH)
-	if(NOT ${exit_code} EQUAL 0)
-		message(WARNING "git rev-parse failed, unable to include git branch.")
-	endif()
-
-	string(STRIP ${RPCS3_GIT_VERSION} RPCS3_GIT_VERSION)
-	string(STRIP ${GIT_VERSION_} GIT_VERSION_)
-	string(STRIP ${RPCS3_GIT_VERSION}-${GIT_VERSION_} RPCS3_GIT_VERSION)
-	string(STRIP ${RPCS3_GIT_BRANCH} RPCS3_GIT_BRANCH)
-else()
-	message(WARNING "git not found, unable to include version.")
-endif()
-
 function(gen_git_version rpcs3_src_dir)
 	set(GIT_VERSION_FILE "${rpcs3_src_dir}/git-version.h")
 	set(GIT_VERSION_UPDATE "1")
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin