summaryrefslogtreecommitdiff
path: root/libre/opencv/5852.patch
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-25 21:15:20 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-25 21:17:43 -0300
commitfa2a2f679791487b79c37b4fd6a13206b80b9f8b (patch)
treeaab2033d8638f24d6f1005e6891808c3a2c20b64 /libre/opencv/5852.patch
parent1e3a7523f7766439c32d0a5c388339d73b406edf (diff)
opencv: update package and needs more changes to fix it
Diffstat (limited to 'libre/opencv/5852.patch')
-rw-r--r--libre/opencv/5852.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/opencv/5852.patch b/libre/opencv/5852.patch
new file mode 100644
index 000000000..e34dfad7e
--- /dev/null
+++ b/libre/opencv/5852.patch
@@ -0,0 +1,39 @@
+From 24dbb43c096691d0333cacf231e22f1369f8c826 Mon Sep 17 00:00:00 2001
+From: Alexander Alekhin <alexander.alekhin@itseez.com>
+Date: Tue, 22 Dec 2015 17:10:33 +0300
+Subject: [PATCH] pkg-config: modules list contains only OpenCV modules (fixes
+ #5852)
+
+---
+ cmake/OpenCVUtils.cmake | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake
+index 3a23cd7..75412eb 100644
+--- a/cmake/OpenCVUtils.cmake
++++ b/cmake/OpenCVUtils.cmake
+@@ -806,7 +806,13 @@ macro(ocv_get_all_libs _modules _extra _3rdparty)
+ else()
+ set(deps "")
+ endif()
+- list(INSERT ${_modules} 0 ${deps} ${m})
++ set(_rev_deps "${deps};${m}")
++ ocv_list_reverse(_rev_deps)
++ foreach (dep ${_rev_deps})
++ if(DEFINED OPENCV_MODULE_${dep}_LOCATION)
++ list(INSERT ${_modules} 0 ${dep})
++ endif()
++ endforeach()
+ foreach (dep ${deps} ${OPENCV_LINKER_LIBS})
+ if (NOT DEFINED OPENCV_MODULE_${dep}_LOCATION)
+ if (TARGET ${dep})
+@@ -832,9 +838,6 @@ macro(ocv_get_all_libs _modules _extra _3rdparty)
+ endif()
+ endif()
+
+- # split 3rdparty libs and modules
+- list(REMOVE_ITEM ${_modules} ${${_3rdparty}} ${${_extra}} non_empty_list)
+-
+ ocv_list_filterout(${_modules} "^[\$]<")
+ ocv_list_filterout(${_3rdparty} "^[\$]<")
+ ocv_list_filterout(${_extra} "^[\$]<")