summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-03-30 15:03:02 -0500
committerTom Hochstein <tom.hochstein@nxp.com>2022-04-04 16:57:41 -0500
commitb43b7a038e314256170992fba02f77611d949f36 (patch)
tree2284c23ced87c1a9a1cf93ef3aae00967eb7afcd /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
parent01ad835b7d50a10c3e3cbfd9509fd32f8dbc293a (diff)
downloadmeta-freescale-b43b7a038e314256170992fba02f77611d949f36.tar.gz
gstreamer1.0-plugins-bad: Upgrade 1.18.0.imx -> 1.18.5.imx
Also separate the base recipe copy from the overrides for ease of maintenance. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch')
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
deleted file mode 100644
index dc3a8c69..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From 387886b05f4ae0de9b7faf1f9ca66040d38d19ee Mon Sep 17 00:00:00 2001
2From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
3Date: Sun, 26 Jan 2020 19:55:06 +0000
4Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build
5
6When Yocto build is performed, opencv searches for data dir using simple
7test command, and this fails because pkg-config provides an absolute
8path on the target which needs to be prepended by PKG_CONFIG_SYSROOT_DIR
9in order for the 'test' utility to pick up the absolute path.
10
11Upstream-Status: Inappropriate [OE-specific]
12
13Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
14
15---
16 ext/opencv/meson.build | 7 ++++---
17 1 file changed, 4 insertions(+), 3 deletions(-)
18
19diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build
20index f38b55dfe..a26403482 100644
21--- a/ext/opencv/meson.build
22+++ b/ext/opencv/meson.build
23@@ -78,20 +78,21 @@ else
24 endif
25
26 if opencv_found
27+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
28 opencv_prefix = opencv_dep.get_pkgconfig_variable('prefix')
29 gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"']
30
31 # Check the data dir used by opencv for its xml data files
32 # Use prefix from pkg-config to be compatible with cross-compilation
33- r = run_command('test', '-d', opencv_prefix + '/share/opencv')
34+ r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/opencv')
35 if r.returncode() == 0
36 gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv"'
37 else
38- r = run_command('test', '-d', opencv_prefix + '/share/OpenCV')
39+ r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/OpenCV')
40 if r.returncode() == 0
41 gstopencv_cargs += '-DOPENCV_PATH_NAME="OpenCV"'
42 else
43- r = run_command('test', '-d', opencv_prefix + '/share/opencv4')
44+ r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/opencv4')
45 if r.returncode() == 0
46 gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv4"'
47 else