From 49c1d504d6f798afea30b0522a0704a914f0deba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= Date: Tue, 9 Sep 2025 14:43:14 +0200 Subject: [PATCH] opencv: Only rename ${bindir}/shape if it exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Its creation depends on PACKAGECONFIG = "samples", which may be removed in a bbappend. Signed-off-by: Zoltán Böszörményi Signed-off-by: Khem Raj --- meta-oe/recipes-support/opencv/opencv_4.12.0.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb index 539190553d..86af1ebc43 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb @@ -214,7 +214,9 @@ do_install:append() { fi done - # rename shape dir to avoid rootfs conflict with - # mesa-demos /usr/bin/shape file. - mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape + if [ -d ${D}/${bindir}/shape ]; then + # rename shape dir to avoid rootfs conflict with + # mesa-demos /usr/bin/shape file. + mv ${D}/${bindir}/shape ${D}/${bindir}/opencv_shape + fi }