From fdde909d2e3d8307b24302f7511131f7fd3934db Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Thu, 21 Jul 2022 20:09:39 +0800 Subject: openvino-inference-engine: fix reproducibility issues Prevent host paths from getting into target packages. Also prevents buildpaths warnings for files: | File /usr/lib/libopenvino.so in package openvino-inference-engine contains reference to TMPDIR [buildpaths] | File /usr/lib/python3.10/site-packages/openvino/inference_engine/ie_api.so in package openvino-inference-engine-python3 contains reference to TMPDIR [buildpaths] | File /usr/src/debug/openvino-inference-engine/2022.1-r0/build/src/plugins/intel_cpu/cross-compiled/proposal_imp_disp.cpp in package openvino-inference-engine-src contains reference to TMPDIR Signed-off-by: Anuj Mittal --- .../recipes-support/opencv/files/cython-cmake.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/cython-cmake.patch (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files') diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/cython-cmake.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/cython-cmake.patch new file mode 100644 index 00000000..45ed0d27 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/cython-cmake.patch @@ -0,0 +1,19 @@ +Change the working directory to source to workaround cython +embedding absolute path to the pyx file in output. + +Upstream-Status: Inappropriate [OE build specific] +Signed-off-by: Anuj Mittal + +diff --git a/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake b/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake +index f14662ad50..8d199fe328 100644 +--- a/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake ++++ b/src/bindings/python/src/compatibility/openvino/cmake/UseCython.cmake +@@ -259,7 +259,7 @@ function( compile_pyx _name generated_file ) + add_custom_command( OUTPUT ${_generated_file} + COMMAND ${CYTHON_EXECUTABLE} + ARGS ${cxx_arg} ${include_directory_arg} ${version_arg} +- ${annotate_arg} ${no_docstrings_arg} ${cython_debug_arg} ${CYTHON_FLAGS} ++ ${annotate_arg} ${no_docstrings_arg} ${cython_debug_arg} ${CYTHON_FLAGS} -w ${CMAKE_CURRENT_SOURCE_DIR} + --output-file ${_generated_file} ${pyx_locations} + DEPENDS ${pyx_locations} ${pxd_dependencies} ${pxi_dependencies} + IMPLICIT_DEPENDS ${pyx_lang} ${c_header_dependencies} -- cgit v1.2.3-54-g00ecf