From fc09f711624f66720cbf8eab175a674556bf38d9 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Mon, 1 Feb 2021 16:15:34 +0800 Subject: [PATCH] opencv: improve reproducibility Remove the build host info to improve reproducibility. Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- meta-oe/recipes-support/opencv/opencv_4.5.0.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-oe/recipes-support/opencv/opencv_4.5.0.bb b/meta-oe/recipes-support/opencv/opencv_4.5.0.bb index b223334a583..5263ffc03b4 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.5.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.5.0.bb @@ -213,6 +213,11 @@ do_install_append() { mv ${D}/usr/lib/* ${D}/${libdir}/ rm -rf ${D}/usr/lib fi + # remove build host path to improve reproducibility + if [ -f ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake ]; then + sed -e 's@${STAGING_DIR_HOST}@@g' \ + -i ${D}${libdir}/cmake/opencv4/OpenCVModules.cmake + fi } TOOLCHAIN = "gcc"