mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 13:25:22 +02:00
libvirt: fix installed-vs-shipped QA error
In commit [1], upstream added sysusers config file for qemu & kvm user/groups,
the install dir is "install_dir: prefix / 'lib' / 'sysusers.d'".
In commit [2], Yocto created an empty file libvirt-qemu.conf to override
sysusers config file which is added by commit [1]
While usrmerge not in DISTRO_FEATURES, nonarch_base_libdir does not match
install_dir and trigger an installed-vs-shipped QA error
...
ERROR: QA Issue: libvirt: Files/directories were installed but not shipped in any package:
/usr/lib/sysusers.d
/usr/lib/sysusers.d/libvirt-qemu.conf
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
libvirt: 2 installed and not shipped files. [installed-vs-shipped]
...
Use nonarch_libdir to intead of nonarch_base_libdir to match the install dir
in commit [1]
[1] a2c3e390f7
[2] https://git.yoctoproject.org/meta-virtualization/commit/?id=8138d9cc7e0c31171230110db0cfa881c46a821b
Suggested-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
7932f4a2fa
commit
d329e8245e
|
@ -95,7 +95,7 @@ FILES:${PN} += "${libdir}/libvirt/connection-driver \
|
|||
${datadir}/bash-completion/completions/vsh \
|
||||
${datadir}/bash-completion/completions/virt-admin \
|
||||
/usr/lib/firewalld/ \
|
||||
${nonarch_base_libdir}/sysusers.d/ \
|
||||
${nonarch_libdir}/sysusers.d/ \
|
||||
"
|
||||
|
||||
FILES:${PN}-dbg += "${libdir}/libvirt/connection-driver/.debug ${libdir}/libvirt/lock-driver/.debug"
|
||||
|
@ -204,11 +204,11 @@ do_install:append() {
|
|||
install -d ${D}/etc/init.d
|
||||
install -d ${D}/etc/libvirt
|
||||
install -d ${D}/etc/dnsmasq.d
|
||||
install -d ${D}${nonarch_base_libdir}/sysusers.d/
|
||||
install -d ${D}${nonarch_libdir}/sysusers.d/
|
||||
|
||||
install -m 0755 ${UNPACKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd
|
||||
install -m 0644 ${UNPACKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf
|
||||
install -m 0644 ${UNPACKDIR}/libvirt-qemu.conf ${D}${nonarch_base_libdir}/sysusers.d/libvirt-qemu.conf
|
||||
install -m 0644 ${UNPACKDIR}/libvirt-qemu.conf ${D}${nonarch_libdir}/sysusers.d/libvirt-qemu.conf
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
|
||||
# This will wind up in the libvirtd package, but will NOT be invoked by default.
|
||||
|
|
Loading…
Reference in New Issue
Block a user