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 }