commit ed5fe92cac3a64e91ee4db380da256928f4c1a39
Author: Antonio Trande <sagitter(a)fedoraproject.org>
Date: Sat Dec 31 19:43:47 2022 +0100
Release 1.14.2| Fix patch0
ppsspp-1.1.0-git-version.patch | 29 ++---------------------------
1 file changed, 2 insertions(+), 27 deletions(-)
---
diff --git a/ppsspp-1.1.0-git-version.patch b/ppsspp-1.1.0-git-version.patch
index 0f9b268..b7d74e3 100644
--- a/ppsspp-1.1.0-git-version.patch
+++ b/ppsspp-1.1.0-git-version.patch
@@ -1,35 +1,10 @@
diff -urN a/git-version.cmake b/git-version.cmake
--- a/git-version.cmake 2015-10-05 02:52:23.000000000 +1000
+++ b/git-version.cmake 2015-10-05 23:23:47.691228897 +1000
-@@ -1,30 +1,7 @@
+@@ -1,5 +1,5 @@
set(GIT_VERSION_FILE "${OUTPUT_DIR}/git-version.cpp")
-set(GIT_VERSION "unknown")
+set(GIT_VERSION "@@unknown_version@@")
set(GIT_VERSION_UPDATE "1")
--find_package(Git)
--if(GIT_FOUND AND EXISTS "${SOURCE_DIR}/.git/")
-- execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
-- WORKING_DIRECTORY ${SOURCE_DIR}
-- RESULT_VARIABLE exit_code
-- OUTPUT_VARIABLE GIT_VERSION)
-- if(NOT ${exit_code} EQUAL 0)
-- message(WARNING "git describe failed, unable to include version.")
-- endif()
-- string(STRIP ${GIT_VERSION} GIT_VERSION)
--else()
-- message(WARNING "git not found, unable to include version.")
--endif()
--
--if(EXISTS ${GIT_VERSION_FILE})
-- # Don't update if marked not to update.
-- file(STRINGS ${GIT_VERSION_FILE} match
-- REGEX "PPSSPP_GIT_VERSION_NO_UPDATE 1")
-- if(NOT ${match} EQUAL "")
-- set(GIT_VERSION_UPDATE "0")
-- endif()
--endif()
--
- set(code_string "// This is a generated file.\n\n"
- "const char *PPSSPP_GIT_VERSION = \"${GIT_VERSION}\"\;\n\n"
- "// If you don't want this file to update/recompile, change to 1.\n"
+ find_package(Git)
Show replies by date