libvirt: set USERADD_DEPENDS to avoid package_write_rpm failure
I didn't sent this patch for master branch because master branch has changed the polkit part and there's no chown there. So this patch is only suitable for scarthgap.
Regards,
Qi
Quoted 44 lines · Chen Qi via lists.yoctoproject.org
From: Chen Qi <[email protected]>
When
do_packageuses state cache and is not re-run butdo_package_write_rpmis re-run, then we get the following error:Exception: KeyError: '
getpwuid(): uid not found: 996'This is because libvirt does chown to polkitd in
do_installand polkitd is from polkit.Here's an easy way to reproduce this issue:
bitbake libvirt -c cleansstate && bitbake libvirt -c package && \ bitbake libvirt -c clean && bitbake libvirt -c package_write_rpmSo make use of
USERADD_DEPENDSto ensure polkitd exists to fix this issue.Signed-off-by Chen Qi <[email protected]>--- recipes-extended/libvirt/libvirt_10.0.0.bb | 2 ++ 1 file changed, 2 insertions(+)recipes-extended/libvirt/libvirt_10.0.0.bb +2
-1@@ -11,6 +11,8 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'shadow-native', '', d)} \ ${@bb.utils.contains('PACKAGECONFIG', 'gnutls', 'gnutls-native', '', d)}" +USERADD_DEPENDS = "${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'polkit', '', d)}" + # libvirt-guests.sh needs gettext.sh # RDEPENDS:${PN} = "gettext-runtime" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#8960): https://lists.yoctoproject.org/g/meta-virtualization/message/8960
Mute This Topic: https://lists.yoctoproject.org/mt/109457527/3618072
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
In message: Re: [meta-virtualization][scarthgap][PATCH] libvirt: set USERADD_DEPENDS to avoid package_write_rpm failure
Quoted 3 lines · on 08/11/2024 Chen Qi via lists.yoctoproject.org wrote:
I didn't sent this patch for master branch because master branch has changed the polkit part and there's no chown there.
So this patch is only suitable for scarthgap.
I was wondering just that! thanks for the explanation, this is now merged.
Bruce
Quoted 53 lines
Regards,
QiQuoted 29 lines · Chen Qi via lists.yoctoproject.org
From: Chen Qi <[email protected]>
When
do_packageuses state cache and is not re-run butdo_package_write_rpmis re-run, then we get the following error:Exception: KeyError: '
getpwuid(): uid not found: 996'This is because libvirt does chown to polkitd in
do_installand polkitd is from polkit.Here's an easy way to reproduce this issue:
bitbake libvirt -c cleansstate && bitbake libvirt -c package && \ bitbake libvirt -c clean && bitbake libvirt -c package_write_rpmSo make use of
USERADD_DEPENDSto ensure polkitd exists to fix this issue.Signed-off-by Chen Qi <[email protected]>--- recipes-extended/libvirt/libvirt_10.0.0.bb | 2 ++ 1 file changed, 2 insertions(+)recipes-extended/libvirt/libvirt_10.0.0.bb +0
-0recipes-extended/libvirt/libvirt_10.0.0.bb DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux · line 18
Quoted 8 lines
recipes-extended/libvirt/libvirt_10.0.0.bb +2
-0@@ -11,6 +11,8 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'shadow-native', '', d)} \ ${@bb.utils.contains('PACKAGECONFIG', 'gnutls', 'gnutls-native', '', d)}" +USERADD_DEPENDS = "${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'polkit', '', d)}" + # libvirt-guests.sh needs gettext.sh # RDEPENDS:${PN} = "gettext-runtime"-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8961): https://lists.yoctoproject.org/g/meta-virtualization/message/8961
Mute This Topic: https://lists.yoctoproject.org/mt/109457527/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-