diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2019-09-30 11:45:58 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-10-02 14:12:39 -0400 |
commit | 8a43b4f1b70b202be5714f406c63eb34cae2d260 (patch) | |
tree | 9a54f71a5f826bfa61affa27322e16f88787b777 | |
parent | 98cad7ae363b758355efb04c025ffb6461b6e2ce (diff) | |
download | meta-virtualization-8a43b4f1b70b202be5714f406c63eb34cae2d260.tar.gz |
libvirt: fixup multiple shlib providers
Build libvirt results in the follow warning:
ERROR: libvirt-5.5.0-r0 do_package: libvirt-ptest: Multiple shlib providers for libvirt-admin.so.0: libvirt, libvirt-ptest
(used by files: ./tmp/work/aarch64-overc-linux/libvirt/5.5.0-r0/packages-split/libvirt-ptest/usr/lib/libvirt/ptest/tools/virt-admin)
ERROR: libvirt-5.5.0-r0 do_package: libvirt: Multiple shlib providers for libvirt-admin.so.0: libvirt, libvirt-ptest
(used by files: ./tmp/work/aarch64-overc-linux/libvirt/5.5.0-r0/packages-split/libvirt/usr/bin/virt-admin)
This is caused by the introduction of a shlib provider check added to
openembedded-core (commit 61c413690034 [package: Multiple
shlib_providers for the same file should error]). You can see the
issue and solution discussed more here
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4628
Since the ptest version of the shared library will only be used by the
ptest package so we can use PRIVATE_LIBS to have the shlib providers
list.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/libvirt/libvirt_5.5.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt_5.5.0.bb b/recipes-extended/libvirt/libvirt_5.5.0.bb index de936c4f..53f4b3e3 100644 --- a/recipes-extended/libvirt/libvirt_5.5.0.bb +++ b/recipes-extended/libvirt/libvirt_5.5.0.bb | |||
@@ -357,6 +357,8 @@ EXTRA_OECONF += " \ | |||
357 | 357 | ||
358 | EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}" | 358 | EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}" |
359 | 359 | ||
360 | PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0" | ||
361 | |||
360 | do_compile_ptest() { | 362 | do_compile_ptest() { |
361 | oe_runmake -C tests buildtest-TESTS | 363 | oe_runmake -C tests buildtest-TESTS |
362 | } | 364 | } |