The name of /usr/share/polkit-1/rules.d are the same, but the files contained 
in the path are different. 
What methods can be chosen to solve this problem in this situation?

  --
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL:+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: wan...@fujitsu.com

> -----Original Message-----
> From: Alexander Kanavin <alex.kana...@gmail.com>
> Sent: Wednesday, August 28, 2024 4:36 PM
> To: Wang, Mingyu/王 鸣瑜 <wan...@fujitsu.com>
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [PATCH] [OE-core] [PATCH] systemd: use update-alternatives to
> solve conflicts with polkit
> 
> This is really not the right way to resolve the issue: both recipes install 
> files into
> this directory and expect those files to be present where they put them.
> 
> Is the real solution installing systemd or polkit but not both maybe?
> Or if you need both, then you should look into why package manager thinks they
> conflict in trying to create that directory.
> 
> Alex
> 
> On Wed, 28 Aug 2024 at 10:26, wangmy via lists.openembedded.org
> <wangmy=fujitsu....@lists.openembedded.org> wrote:
> >
> > From: Wang Mingyu <wan...@fujitsu.com>
> >
> > 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
> >
> > polkit also uses the doc '/usr/share/polkit-1/rules.d'.
> > polkit has a priority of 100.
> >
> > Signed-off-by: Wang Mingyu <wan...@fujitsu.com>
> > ---
> >  meta/recipes-core/systemd/systemd_256.5.bb | 6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/systemd/systemd_256.5.bb
> > b/meta/recipes-core/systemd/systemd_256.5.bb
> > index ee656c81e5..1c408d075f 100644
> > --- a/meta/recipes-core/systemd/systemd_256.5.bb
> > +++ b/meta/recipes-core/systemd/systemd_256.5.bb
> > @@ -848,7 +848,7 @@ python do_warn_musl() {  }  addtask warn_musl
> > before do_configure
> >
> > -ALTERNATIVE:${PN} = "halt reboot shutdown poweroff runlevel
> ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}"
> > +ALTERNATIVE:${PN} = "halt reboot shutdown poweroff runlevel rules.d
> ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}"
> >
> >  ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.systemd"
> >  ALTERNATIVE_LINK_NAME[resolv-conf] = "${sysconfdir}/resolv.conf"
> > @@ -874,6 +874,10 @@ ALTERNATIVE_TARGET[runlevel] =
> "${base_bindir}/systemctl"
> >  ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel"
> >  ALTERNATIVE_PRIORITY[runlevel] ?= "300"
> >
> > +ALTERNATIVE_TARGET[rules.d] = "${datadir_native}/polkit-1/rules.d"
> > +ALTERNATIVE_LINK_NAME[rules.d] = "${datadir_native}/polkit-1/rules.d"
> > +ALTERNATIVE_PRIORITY[rules.d] ?= "50"
> > +
> >  pkg_postinst:${PN}:libc-glibc () {
> >         if ${@bb.utils.contains('PACKAGECONFIG', 'myhostname', 'true',
> 'false', d)}; then
> >                 sed -e '/^hosts:/s/\s*\<myhostname\>//' \
> > --
> > 2.34.1
> >
> >
> > 
> >
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#203874): 
https://lists.openembedded.org/g/openembedded-core/message/203874
Mute This Topic: https://lists.openembedded.org/mt/108138529/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to