From 2cec3442c6c34b32f18c0bd37961127d61d4a7af Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 9 Feb 2016 14:09:26 -0500 Subject: libvirt: fix .la QA errors oe-core 3739aaf644 [insane: Fix populate_sysroot sanity test path] means that .la files are subject to a QA sanity check that fails if the build paths (workdir) are found. The ptest and main libvirt files have silently had this issue with hosts paths. One fix is to remove the .la files, but this could impact on target test and builds, so our first attempt to fix them is to follow the lead of a similar lttng_tools fix, and modify .la files to have paths and values that are valid on target. Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_1.2.19.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'recipes-extended/libvirt') diff --git a/recipes-extended/libvirt/libvirt_1.2.19.bb b/recipes-extended/libvirt/libvirt_1.2.19.bb index df53d59a..9a58be2c 100644 --- a/recipes-extended/libvirt/libvirt_1.2.19.bb +++ b/recipes-extended/libvirt/libvirt_1.2.19.bb @@ -249,6 +249,11 @@ do_install_append() { # Add hook support for libvirt mkdir -p ${D}/etc/libvirt/hooks + + # remove .la references to our working diretory + for i in `find ${D}${libdir} -type f -name *.la`; do + sed -i -e 's#-L${B}/src/.libs##g' $i + done } EXTRA_OECONF += " \ @@ -263,6 +268,11 @@ do_compile_ptest() { do_install_ptest() { oe_runmake -C tests install-ptest + + # Update libdir references in copied .la files + for i in `find ${D}${PTEST_PATH} -type f -name *.la`; do + sed -i -e 's#${B}#${PTEST_PATH}#g' $i + done } pkg_postinst_libvirt() { -- cgit v1.2.3-54-g00ecf