From 713efdf66dca8e60c3db1e720a9bb2bd074c40f3 Mon Sep 17 00:00:00 2001 From: Malik Talha Date: Fri, 6 Oct 2023 01:46:44 +0500 Subject: Fix Scipy, OpenBlas, and NumPy library linking issues This fixes the linking issues primarily between Scipy and OpenBlas caused due to Scipy expecting a different name for OpenBlas dynamic linking library. Bug-AGL: SPEC-4925 Change-Id: Idb8f620134d63e7d9425a0df8942370430b3f700 Signed-off-by: Malik Talha --- meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta-offline-voice-agent/recipes-blas/openblas') diff --git a/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb b/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb index 84e76542..7f105e26 100644 --- a/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb +++ b/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb @@ -49,13 +49,16 @@ EXTRA_OEMAKE = "\ do_install() { oe_runmake PREFIX=${D}${prefix} install rm -rf ${D}${bindir} ${D}${libdir}/cmake + # fixup pkgconfig file sed -i -e "s#libdir=/.*#libdir=${libdir}#" ${D}${libdir}/pkgconfig/openblas.pc sed -i -e "s#includedir=/.*#includedir=${includedir}#" ${D}${libdir}/pkgconfig/openblas.pc cat ${D}${libdir}/pkgconfig/openblas.pc + # Create symlink from libblas.so to libopenblas.so.0, required by scipy + ln -s libopenblas.so.0 ${D}${libdir}/libblas.so } -FILES:${PN}-dev = "${includedir} ${libdir}/lib${PN}.so" FILES:${PN} = "${libdir}/*" +FILES:${PN}-dev = "${includedir} ${libdir}/libopenblas.so ${libdir}/libblas.so" -- cgit 1.2.3-korg