[vlc-commits] extras/tools: have Hugo's pkgconfig patch in cmake
Steve Lhomme
git at videolan.org
Thu Jun 18 13:10:21 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jan 23 14:35:25 2020 +0100| [77c11ea38212bd683ff3415b94530ad2972f79f3] | committer: Steve Lhomme
extras/tools: have Hugo's pkgconfig patch in cmake
It's still not in 3.16.2 or 3.16.3...
(cherry picked from commit b6d86698138859a1ecde870bb320299618d29cc2)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=77c11ea38212bd683ff3415b94530ad2972f79f3
---
...ig-Fix-path-manipulations-when-cross-comp.patch | 28 ++++++++++++++++++++++
extras/tools/tools.mak | 1 +
2 files changed, 29 insertions(+)
diff --git a/extras/tools/0001-FindPkgConfig-Fix-path-manipulations-when-cross-comp.patch b/extras/tools/0001-FindPkgConfig-Fix-path-manipulations-when-cross-comp.patch
new file mode 100644
index 0000000000..3b5e765661
--- /dev/null
+++ b/extras/tools/0001-FindPkgConfig-Fix-path-manipulations-when-cross-comp.patch
@@ -0,0 +1,28 @@
+From f92a4b23994fa7516f16fbb5b3c02caa07534b3f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo at beauzee.fr>
+Date: Mon, 2 Dec 2019 16:42:07 +0100
+Subject: [PATCH] FindPkgConfig: Fix path manipulations when cross compiling
+
+When cross compiling from a unix machine, if(UNIX) is false,
+whih causes the path not to be fixed for unix, leading to false
+negative if PKG_CONFIG_PATH needs to be probed
+---
+ Modules/FindPkgConfig.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
+index 5162a44b33..f4b6ea121c 100644
+--- a/Modules/FindPkgConfig.cmake
++++ b/Modules/FindPkgConfig.cmake
+@@ -337,7 +337,7 @@ macro(_pkg_set_path_internal)
+ # remove empty values from the list
+ list(REMOVE_ITEM _pkgconfig_path "")
+ file(TO_NATIVE_PATH "${_pkgconfig_path}" _pkgconfig_path)
+- if(UNIX)
++ if(CMAKE_HOST_UNIX)
+ string(REPLACE ";" ":" _pkgconfig_path "${_pkgconfig_path}")
+ string(REPLACE "\\ " " " _pkgconfig_path "${_pkgconfig_path}")
+ endif()
+--
+2.19.1.windows.1
+
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index 5b6bd072a0..5c556c3106 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -92,6 +92,7 @@ cmake-$(CMAKE_VERSION).tar.gz:
cmake: cmake-$(CMAKE_VERSION).tar.gz
$(UNPACK)
+ $(APPLY) $(TOOLS)/0001-FindPkgConfig-Fix-path-manipulations-when-cross-comp.patch
$(APPLY) $(TOOLS)/cmake-msys-FindPkg.patch
$(MOVE)
More information about the vlc-commits
mailing list