This is problematic for the same reason as the similar change to systemd proposed in oe-core, and shouldn't be merged.
Alex On Wed, 28 Aug 2024 at 10:26, wangmy via lists.openembedded.org <[email protected]> wrote: > > 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 (#112028): https://lists.openembedded.org/g/openembedded-devel/message/112028 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]] -=-=-=-=-=-=-=-=-=-=-=-
