summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ros/cv_bridge')
-rw-r--r--dev-ros/cv_bridge/cv_bridge-1.15.0-r1.ebuild (renamed from dev-ros/cv_bridge/cv_bridge-1.15.0.ebuild)2
-rw-r--r--dev-ros/cv_bridge/cv_bridge-9999.ebuild2
-rw-r--r--dev-ros/cv_bridge/files/ocv_leak.patch20
3 files changed, 22 insertions, 2 deletions
diff --git a/dev-ros/cv_bridge/cv_bridge-1.15.0.ebuild b/dev-ros/cv_bridge/cv_bridge-1.15.0-r1.ebuild
index 582de3e58f72..6e6271b0b528 100644
--- a/dev-ros/cv_bridge/cv_bridge-1.15.0.ebuild
+++ b/dev-ros/cv_bridge/cv_bridge-1.15.0-r1.ebuild
@@ -27,4 +27,4 @@ DEPEND="${RDEPEND}
dev-ros/rostest[${PYTHON_SINGLE_USEDEP}]
)
"
-PATCHES=( "${FILESDIR}/boostpython.patch" )
+PATCHES=( "${FILESDIR}/boostpython.patch" "${FILESDIR}/ocv_leak.patch" )
diff --git a/dev-ros/cv_bridge/cv_bridge-9999.ebuild b/dev-ros/cv_bridge/cv_bridge-9999.ebuild
index 582de3e58f72..6e6271b0b528 100644
--- a/dev-ros/cv_bridge/cv_bridge-9999.ebuild
+++ b/dev-ros/cv_bridge/cv_bridge-9999.ebuild
@@ -27,4 +27,4 @@ DEPEND="${RDEPEND}
dev-ros/rostest[${PYTHON_SINGLE_USEDEP}]
)
"
-PATCHES=( "${FILESDIR}/boostpython.patch" )
+PATCHES=( "${FILESDIR}/boostpython.patch" "${FILESDIR}/ocv_leak.patch" )
diff --git a/dev-ros/cv_bridge/files/ocv_leak.patch b/dev-ros/cv_bridge/files/ocv_leak.patch
new file mode 100644
index 000000000000..32b3fafbe074
--- /dev/null
+++ b/dev-ros/cv_bridge/files/ocv_leak.patch
@@ -0,0 +1,20 @@
+Index: cv_bridge/CMakeLists.txt
+===================================================================
+--- cv_bridge.orig/CMakeLists.txt
++++ cv_bridge/CMakeLists.txt
+@@ -17,14 +17,7 @@ else()
+ find_package(Boost REQUIRED)
+ endif()
+
+-set(_opencv_version 4)
+-find_package(OpenCV 4 QUIET)
+-if(NOT OpenCV_FOUND)
+- message(STATUS "Did not find OpenCV 4, trying OpenCV 3")
+- set(_opencv_version 3)
+-endif()
+-
+-find_package(OpenCV ${_opencv_version4} REQUIRED
++find_package(OpenCV 4 REQUIRED
+ COMPONENTS
+ opencv_core
+ opencv_imgproc