Skip to contentSkip to conversation

libvirt: fixup multiple shlib providers

PATCH In review Mark Asselstine 2 participants 2 messages Sep 30, 2019 – Oct 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 recipes-extended/libvirt/libvirt_5.5.0.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-extended/libvirt/libvirt_5.5.0.bb +2 -0
index de936c4..53f4b3e 100644
@@ -357,6 +357,8 @@ EXTRA_OECONF += " \
 
 EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
 
+PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0"
+
 do_compile_ptest() {
 	oe_runmake -C tests buildtest-TESTS
 }
Signature · 1 line
2.21.0
#1 lore raw

merged.

Bruce

In message: [meta-virtualization] [PATCH] libvirt: fixup multiple shlib providers

Quoted 42 lines · on 30/09/2019 Mark Asselstine wrote:

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.

---
 recipes-extended/libvirt/libvirt_5.5.0.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-extended/libvirt/libvirt_5.5.0.bb +2 -0
index de936c4..53f4b3e 100644
@@ -357,6 +357,8 @@ EXTRA_OECONF += " \
 
 EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
 
+PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0"
+
 do_compile_ptest() {
 	oe_runmake -C tests buildtest-TESTS
 }
Signature · 7 lines
2.21.0

-- 
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization