From: Wang Mingyu <[email protected]> Error: Transaction test error: file /usr/share/polkit-1/rules.d conflicts between attempted installs of polkit-125-r0.core2_64 and systemd-1:256.5-r0.core2_64
systemd also uses the doc '/usr/share/polkit-1/rules.d'. systemd has a priority of 50. Signed-off-by: Wang Mingyu <[email protected]> --- meta-oe/recipes-extended/polkit/polkit_125.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-oe/recipes-extended/polkit/polkit_125.bb b/meta-oe/recipes-extended/polkit/polkit_125.bb index fe1ee467c..5ba9690c5 100644 --- a/meta-oe/recipes-extended/polkit/polkit_125.bb +++ b/meta-oe/recipes-extended/polkit/polkit_125.bb @@ -43,6 +43,13 @@ USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysco SYSTEMD_SERVICE:${PN} = "${BPN}.service" SYSTEMD_AUTO_ENABLE = "disable" +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE:${PN} = "rules.d" +ALTERNATIVE_TARGET[rules.d] = "${datadir}/polkit-1/rules.d" +ALTERNATIVE_LINK_NAME[rules.d] = "${datadir}/polkit-1/rules.d" + do_install:append() { #Fix up permissions on polkit rules.d to work with rpm4 constraints if ${@bb.utils.contains('PACKAGECONFIG', 'libs-only', 'false', 'true', d)}; then -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#112026): https://lists.openembedded.org/g/openembedded-devel/message/112026 Mute This Topic: https://lists.openembedded.org/mt/108138519/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
