According to this commit polkit rules should go to ${datadir} instead of 
${sysconfdir}:
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=d5e90541f8e35916abc930b2da6de037b23d51a1
Theres no need to adjust the permissions for ${datadir} anymore:
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=6da0fd21c900e32a0693a6b27d38182f19c8c76c

This commit fixes build after:
https://git.yoctoproject.org/poky/commit/?id=ef9a927a3af1dd817fe298bbe45470b738d9ce2f

Signed-off-by: Markus Volk <[email protected]>
---
 recipes-extended/libvirt/libvirt_git.bb | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/recipes-extended/libvirt/libvirt_git.bb 
b/recipes-extended/libvirt/libvirt_git.bb
index 706d4a40..8af09d71 100644
--- a/recipes-extended/libvirt/libvirt_git.bb
+++ b/recipes-extended/libvirt/libvirt_git.bb
@@ -243,15 +243,6 @@ do_install:append() {
        echo "d root root 0755 /run/libvirt/qemu none" \
             >> ${D}${sysconfdir}/default/volatiles/99_libvirt
 
-       # Manually set permissions and ownership to match polkit recipe
-       if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', 
d)}; then
-               install -d -m 0700 ${D}/${datadir}/polkit-1/rules.d
-               chown polkitd ${D}/${datadir}/polkit-1/rules.d
-               chgrp root ${D}/${datadir}/polkit-1/rules.d
-       else
-               rm -rf ${D}/${datadir}/polkit-1
-       fi
-
        # disable seccomp_sandbox
         if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then
           sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \
-- 
2.45.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8865): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8865
Mute This Topic: https://lists.yoctoproject.org/mt/108222777/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to