tools: no need to patch CMake for msys2 anymore
authorSteve Lhomme <robux4@ycbcr.xyz>
Thu, 28 May 2020 11:18:41 +0000 (13:18 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Fri, 29 May 2020 06:45:18 +0000 (08:45 +0200)
The PKG_CONFIG_PATH is not turned into a windows path anymore.

Effectively reverts e62999a6b1ccdf6b03204f486ec348eec7931922 and
68fd1eaae9dc8fee485882f186a8b15b42e3a42d.

extras/tools/cmake-msys-FindPkg.patch [deleted file]
extras/tools/tools.mak

diff --git a/extras/tools/cmake-msys-FindPkg.patch b/extras/tools/cmake-msys-FindPkg.patch
deleted file mode 100644 (file)
index 2448259..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---- ./Modules/FindPkgConfig.cmake.msys 2017-05-31 16:00:09.000000000 +0200
-+++ ./Modules/FindPkgConfig.cmake      2018-10-03 16:43:37.880991800 +0200
-@@ -345,6 +345,24 @@ macro(_pkg_check_modules_internal _is_re
-       unset(_pkgconfig_path)
-     endif()
-+    if (CYGWIN OR MSYS)
-+        find_program(_cygpath_exe cygpath.exe NO_CMAKE_ENVIRONMENT_PATH)
-+        if(_cygpath_exe)
-+            # fix the PKG_CONFIG_PATH transformed into a cmake path with incorrect msys pathes
-+            file(TO_CMAKE_PATH "$ENV{PKG_CONFIG_PATH}" _pkgconfig_path_cmake)
-+            execute_process(
-+                COMMAND ${_cygpath_exe} "-up" "${_pkgconfig_path_cmake}"
-+                RESULT_VARIABLE _cygpath_retval
-+                OUTPUT_VARIABLE _cygpath_outval
-+                ERROR_VARIABLE _cygpath_error
-+                OUTPUT_STRIP_TRAILING_WHITESPACE
-+                ERROR_STRIP_TRAILING_WHITESPACE)
-+            if (_cygpath_outval)
-+                set(ENV{PKG_CONFIG_PATH} ${_cygpath_outval})
-+            endif()
-+        endif()
-+    endif()
-+
-     # iterate through module list and check whether they exist and match the required version
-     foreach (_pkg_check_modules_pkg ${_pkg_check_modules_list})
-       set(_pkg_check_modules_exist_query)
index fbb5f1e..bcc3444 100644 (file)
@@ -92,7 +92,6 @@ cmake-$(CMAKE_VERSION).tar.gz:
 
 cmake: cmake-$(CMAKE_VERSION).tar.gz
        $(UNPACK)
-       $(APPLY) $(TOOLS)/cmake-msys-FindPkg.patch
        $(MOVE)
 
 .buildcmake: cmake