LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pcsx2.os-release.patch of Package pcsx2 (Project home:linux4humans:games)

Leap-42.2.i586 has no os-release
--- a/cmake/Pcsx2Utils.cmake
+++ b/cmake/Pcsx2Utils.cmake
@@ -16,9 +16,9 @@ function(detectOperatingSystem)
     elseif(UNIX)
         if(CMAKE_SYSTEM_NAME MATCHES "Linux")
             set(Linux TRUE PARENT_SCOPE)
-            if (EXISTS /etc/os-release)
+            if (EXISTS ./os-release)
                 # Read the file without CR character
-                file(STRINGS /etc/os-release OS_RELEASE)
+                file(STRINGS ./os-release OS_RELEASE)
                 if("${OS_RELEASE}" MATCHES "^.*ID=fedora.*$")
                     set(Fedora TRUE PARENT_SCOPE)
                     message(STATUS "Build Fedora specific")