All of lore.kernel.org
 help / color / mirror / Atom feed
* meta-egl failure: Nothing RPROVIDES polkit
@ 2022-05-27 11:57 Luca Ceresoli
       [not found] ` <CADja47NmNz+8es0ymHYxmozSPmMA1TCTFeDg7epCDoXMEgYzbA@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Luca Ceresoli @ 2022-05-27 11:57 UTC (permalink / raw)
  To: automotive-discussions
  Cc: Jan-Simon Moeller, Scott Murray, Richard Purdie, Marius Vlad,
	yocto@lists.yoctoproject.org

Hello,

we are experiencing build failures of the meta-agl build on the Yocto
autobuilders with this error message:

ERROR: Nothing RPROVIDES 'polkit' (but /home/pokybuild/yocto-worker/meta-agl-core/build/meta-agl/meta-agl-core/recipes-platform/packagegroups/packagegroup-agl-graphical-weston.bb RDEPENDS on or otherwise requires it)

Here are a few logs:

https://autobuilder.yoctoproject.org/typhoon/#/builders/120/builds/1239/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/120/builds/1240/steps/13/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/120/builds/1241/steps/12/logs/stdio

The error started showing up today, and given the error message it is
possibly related with this commit on meta-agl master:

  packagegroup-agl-graphical-weston: Add polkit to RDEPENDS

https://git.automotivelinux.org/AGL/meta-agl/commit/?id=a8c060f736a66dde56cc2ba1803d35531c62d610

Do you think the above error can be caused by this commit?

Best regards.
-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] meta-egl failure: Nothing RPROVIDES polkit
       [not found] ` <CADja47NmNz+8es0ymHYxmozSPmMA1TCTFeDg7epCDoXMEgYzbA@mail.gmail.com>
@ 2022-05-27 16:23   ` Tim Orling
  2022-05-27 20:25     ` Scott Murray
  0 siblings, 1 reply; 7+ messages in thread
From: Tim Orling @ 2022-05-27 16:23 UTC (permalink / raw)
  To: Jan Simon Moeller
  Cc: Luca Ceresoli, AGL ml, Scott Murray, Richard Purdie, Marius Vlad,
	yocto@lists.yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2284 bytes --]

On Fri, May 27, 2022 at 9:18 AM Jan Simon Moeller <
jsmoeller@linuxfoundation.org> wrote:

> Hi !
>
> Yes, we need to look into this and likely change the location of the
> RDEPENDS.
> Thanks for flagging.
>
> polkit needs to be in DISTRO_FEATURES and the recipe needs to have a check
for that (and inherit features_check)


> Best regards,
> Jan-Simon
>
> ------
> Jan-Simon Möller
> AGL Release Manager
> The Linux Foundation
>
> Visit us at:
> www.automotivegradelinux.org
> lists.automotivelinux.org
> www.linuxfoundation.org
>
> On Fri, May 27, 2022 at 1:57 PM Luca Ceresoli <luca.ceresoli@bootlin.com>
> wrote:
> >
> > Hello,
> >
> > we are experiencing build failures of the meta-agl build on the Yocto
> > autobuilders with this error message:
> >
> > ERROR: Nothing RPROVIDES 'polkit' (but
> /home/pokybuild/yocto-worker/meta-agl-core/build/meta-agl/meta-agl-core/recipes-platform/packagegroups/
> packagegroup-agl-graphical-weston.bb RDEPENDS on or otherwise requires it)
> >
> > Here are a few logs:
> >
> >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/120/builds/1239/steps/12/logs/stdio
> >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/120/builds/1240/steps/13/logs/stdio
> >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/120/builds/1241/steps/12/logs/stdio
> >
> > The error started showing up today, and given the error message it is
> > possibly related with this commit on meta-agl master:
> >
> >   packagegroup-agl-graphical-weston: Add polkit to RDEPENDS
> >
> >
> https://git.automotivelinux.org/AGL/meta-agl/commit/?id=a8c060f736a66dde56cc2ba1803d35531c62d610
> >
> > Do you think the above error can be caused by this commit?
> >
> > Best regards.
> > --
> > Luca Ceresoli, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57205):
> https://lists.yoctoproject.org/g/yocto/message/57205
> Mute This Topic: https://lists.yoctoproject.org/mt/91374765/924729
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 4371 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] meta-egl failure: Nothing RPROVIDES polkit
  2022-05-27 16:23   ` [yocto] " Tim Orling
@ 2022-05-27 20:25     ` Scott Murray
  2022-05-31 12:00       ` Luca Ceresoli
       [not found]       ` <YpGn2ltFe33urvHD@xpredator>
  0 siblings, 2 replies; 7+ messages in thread
From: Scott Murray @ 2022-05-27 20:25 UTC (permalink / raw)
  To: Tim Orling
  Cc: Jan Simon Moeller, Luca Ceresoli, Richard Purdie, Marius Vlad,
	yocto@lists.yoctoproject.org

On Fri, 27 May 2022, Tim Orling wrote:

> On Fri, May 27, 2022 at 9:18 AM Jan Simon Moeller <
> jsmoeller@linuxfoundation.org> wrote:
>
> > Hi !
> >
> > Yes, we need to look into this and likely change the location of the
> > RDEPENDS.
> > Thanks for flagging.
> >
> > polkit needs to be in DISTRO_FEATURES and the recipe needs to have a check
> for that (and inherit features_check)
[snip]

For an immediate fix I've moved the polkit addition to a bbappend added
via BBFILES_DYNAMIC, gated on meta-oe presence.  The current intent is
that the meta-agl-core test on the autobuilder only need poky, so letting
this slip in was a thinko on our part.  We may revisit making meta-oe a
required dependency when binary packagefeed prototyping starts in AGL.
Your comment re features_check is right on, I'll add that when I get a
chance over the weekend.  One thing I may bring up on the next dev call
is Weston does need polkit in some situations (hence the addition in
AGL), so maybe shifting it to oe-core starts to make more sense now...

Cheers,

Scott



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] meta-egl failure: Nothing RPROVIDES polkit
  2022-05-27 20:25     ` Scott Murray
@ 2022-05-31 12:00       ` Luca Ceresoli
       [not found]       ` <YpGn2ltFe33urvHD@xpredator>
  1 sibling, 0 replies; 7+ messages in thread
From: Luca Ceresoli @ 2022-05-31 12:00 UTC (permalink / raw)
  To: Scott Murray
  Cc: Tim Orling, Jan Simon Moeller, Richard Purdie, Marius Vlad,
	yocto@lists.yoctoproject.org

Hi Scott,

Il giorno Fri, 27 May 2022 16:25:00 -0400 (EDT)
Scott Murray <scott.murray@konsulko.com> ha scritto:

> On Fri, 27 May 2022, Tim Orling wrote:
> 
> > On Fri, May 27, 2022 at 9:18 AM Jan Simon Moeller <  
> > jsmoeller@linuxfoundation.org> wrote:  
> >  
> > > Hi !
> > >
> > > Yes, we need to look into this and likely change the location of the
> > > RDEPENDS.
> > > Thanks for flagging.
> > >
> > > polkit needs to be in DISTRO_FEATURES and the recipe needs to have a check  
> > for that (and inherit features_check)  
> [snip]
> 
> For an immediate fix I've moved the polkit addition to a bbappend added
> via BBFILES_DYNAMIC, gated on meta-oe presence.

Thanks for taking care. I confirm my testing build today didn't show up
this failure anymore.

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] meta-egl failure: Nothing RPROVIDES polkit
       [not found]       ` <YpGn2ltFe33urvHD@xpredator>
@ 2022-05-31 12:27         ` richard.purdie
  2022-05-31 12:52           ` Joshua Watt
  0 siblings, 1 reply; 7+ messages in thread
From: richard.purdie @ 2022-05-31 12:27 UTC (permalink / raw)
  To: Marius Vlad, Scott Murray, Joshua Watt
  Cc: Tim Orling, Jan Simon Moeller, Luca Ceresoli,
	yocto@lists.yoctoproject.org

On Sat, 2022-05-28 at 07:40 +0300, Marius Vlad wrote:
> On Fri, May 27, 2022 at 04:25:00PM -0400, Scott Murray wrote:
> > On Fri, 27 May 2022, Tim Orling wrote:
> > 
> > > On Fri, May 27, 2022 at 9:18 AM Jan Simon Moeller <
> > > jsmoeller@linuxfoundation.org> wrote:
> > > 
> > > > Hi !
> > > > 
> > > > Yes, we need to look into this and likely change the location of the
> > > > RDEPENDS.
> > > > Thanks for flagging.
> > > > 
> > > > polkit needs to be in DISTRO_FEATURES and the recipe needs to have a check
> > > for that (and inherit features_check)
> > [snip]
> > 
> > For an immediate fix I've moved the polkit addition to a bbappend added
> > via BBFILES_DYNAMIC, gated on meta-oe presence.  The current intent is
> > that the meta-agl-core test on the autobuilder only need poky, so letting
> > this slip in was a thinko on our part.  We may revisit making meta-oe a
> > required dependency when binary packagefeed prototyping starts in AGL.
> > Your comment re features_check is right on, I'll add that when I get a
> > chance over the weekend.  One thing I may bring up on the next dev call
> > is Weston does need polkit in some situations (hence the addition in
> > AGL), so maybe shifting it to oe-core starts to make more sense now...
> Yes, when using the logind launcher, or the seatd launcher with the
> logind back-end, polkit is needed to activate the session.  There's no
> more a direct launcher, weston-launch has been removed and upstream weston 
> can for some time now use systemd user sessions to starting-up. 
> 
> The seatd launcher with daemon or built-in back-end, appears to be doing
> the activation on its own, but I reckon systemd-logind back-end will be
> the de-facto back-end if changing the launcher in weston to seatd, and
> removing systemd-logind launcher (as we're currently working towards
> having just a single launcher).
> 
> One thing to mention here is that while digging this up I've found a
> patch to systemd-logind [1] which supposedely should allow just logind
> to activate the session as a non-root user, just that either it wasn't
> working or it is no longer present, as I haven't been able to activate
> sessions without polkit installed.
>       
> [1] https://github.com/openembedded/openembedded-core/commit/e42dd9cff98f2149904e104f08bc3f19ee7b6fc0
> 

Adding Joshua, I'm hoping he might have some ideas here?

Cheers,

Richard



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] meta-egl failure: Nothing RPROVIDES polkit
  2022-05-31 12:27         ` richard.purdie
@ 2022-05-31 12:52           ` Joshua Watt
  2022-05-31 15:55             ` Mikko.Rapeli
  0 siblings, 1 reply; 7+ messages in thread
From: Joshua Watt @ 2022-05-31 12:52 UTC (permalink / raw)
  To: richard.purdie
  Cc: Marius Vlad, Scott Murray, Tim Orling, Jan Simon Moeller,
	Luca Ceresoli, yocto@lists.yoctoproject.org

On Tue, May 31, 2022 at 7:27 AM <richard.purdie@linuxfoundation.org> wrote:
>
> On Sat, 2022-05-28 at 07:40 +0300, Marius Vlad wrote:
> > On Fri, May 27, 2022 at 04:25:00PM -0400, Scott Murray wrote:
> > > On Fri, 27 May 2022, Tim Orling wrote:
> > >
> > > > On Fri, May 27, 2022 at 9:18 AM Jan Simon Moeller <
> > > > jsmoeller@linuxfoundation.org> wrote:
> > > >
> > > > > Hi !
> > > > >
> > > > > Yes, we need to look into this and likely change the location of the
> > > > > RDEPENDS.
> > > > > Thanks for flagging.
> > > > >
> > > > > polkit needs to be in DISTRO_FEATURES and the recipe needs to have a check
> > > > for that (and inherit features_check)
> > > [snip]
> > >
> > > For an immediate fix I've moved the polkit addition to a bbappend added
> > > via BBFILES_DYNAMIC, gated on meta-oe presence.  The current intent is
> > > that the meta-agl-core test on the autobuilder only need poky, so letting
> > > this slip in was a thinko on our part.  We may revisit making meta-oe a
> > > required dependency when binary packagefeed prototyping starts in AGL.
> > > Your comment re features_check is right on, I'll add that when I get a
> > > chance over the weekend.  One thing I may bring up on the next dev call
> > > is Weston does need polkit in some situations (hence the addition in
> > > AGL), so maybe shifting it to oe-core starts to make more sense now...
> > Yes, when using the logind launcher, or the seatd launcher with the
> > logind back-end, polkit is needed to activate the session.  There's no
> > more a direct launcher, weston-launch has been removed and upstream weston
> > can for some time now use systemd user sessions to starting-up.
> >
> > The seatd launcher with daemon or built-in back-end, appears to be doing
> > the activation on its own, but I reckon systemd-logind back-end will be
> > the de-facto back-end if changing the launcher in weston to seatd, and
> > removing systemd-logind launcher (as we're currently working towards
> > having just a single launcher).
> >
> > One thing to mention here is that while digging this up I've found a
> > patch to systemd-logind [1] which supposedely should allow just logind
> > to activate the session as a non-root user, just that either it wasn't
> > working or it is no longer present, as I haven't been able to activate
> > sessions without polkit installed.
> >
> > [1] https://github.com/openembedded/openembedded-core/commit/e42dd9cff98f2149904e104f08bc3f19ee7b6fc0
> >
>
> Adding Joshua, I'm hoping he might have some ideas here?

That patch in question fixed a regression in systemd behavior that was
introduced at some point that broke the non-polkit behavior. I was
able to get it fixed, but I also suspect that fighting against using
polkit isn't going to be productive in the long run and we should look
at a way to pull it in..... preferably without needing mozjs (why a
policy system decided to rely on javascript is beyond me). Eventually,
we are going to want polkit-only features from systemd and there won't
be grounds (like "This worked before polkit") to get upstream systemd
to change to support it.

>
> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] meta-egl failure: Nothing RPROVIDES polkit
  2022-05-31 12:52           ` Joshua Watt
@ 2022-05-31 15:55             ` Mikko.Rapeli
  0 siblings, 0 replies; 7+ messages in thread
From: Mikko.Rapeli @ 2022-05-31 15:55 UTC (permalink / raw)
  To: JPEWhacker
  Cc: richard.purdie, marius.vlad, scott.murray, ticotimo, jsmoeller,
	luca.ceresoli, yocto

On Tue, May 31, 2022 at 07:52:05AM -0500, Joshua Watt wrote:
> On Tue, May 31, 2022 at 7:27 AM <richard.purdie@linuxfoundation.org> wrote:
> >
> > On Sat, 2022-05-28 at 07:40 +0300, Marius Vlad wrote:
> > > On Fri, May 27, 2022 at 04:25:00PM -0400, Scott Murray wrote:
> > > > On Fri, 27 May 2022, Tim Orling wrote:
> > > >
> > > > > On Fri, May 27, 2022 at 9:18 AM Jan Simon Moeller <
> > > > > jsmoeller@linuxfoundation.org> wrote:
> > > > >
> > > > > > Hi !
> > > > > >
> > > > > > Yes, we need to look into this and likely change the location of the
> > > > > > RDEPENDS.
> > > > > > Thanks for flagging.
> > > > > >
> > > > > > polkit needs to be in DISTRO_FEATURES and the recipe needs to have a check
> > > > > for that (and inherit features_check)
> > > > [snip]
> > > >
> > > > For an immediate fix I've moved the polkit addition to a bbappend added
> > > > via BBFILES_DYNAMIC, gated on meta-oe presence.  The current intent is
> > > > that the meta-agl-core test on the autobuilder only need poky, so letting
> > > > this slip in was a thinko on our part.  We may revisit making meta-oe a
> > > > required dependency when binary packagefeed prototyping starts in AGL.
> > > > Your comment re features_check is right on, I'll add that when I get a
> > > > chance over the weekend.  One thing I may bring up on the next dev call
> > > > is Weston does need polkit in some situations (hence the addition in
> > > > AGL), so maybe shifting it to oe-core starts to make more sense now...
> > > Yes, when using the logind launcher, or the seatd launcher with the
> > > logind back-end, polkit is needed to activate the session.  There's no
> > > more a direct launcher, weston-launch has been removed and upstream weston
> > > can for some time now use systemd user sessions to starting-up.
> > >
> > > The seatd launcher with daemon or built-in back-end, appears to be doing
> > > the activation on its own, but I reckon systemd-logind back-end will be
> > > the de-facto back-end if changing the launcher in weston to seatd, and
> > > removing systemd-logind launcher (as we're currently working towards
> > > having just a single launcher).
> > >
> > > One thing to mention here is that while digging this up I've found a
> > > patch to systemd-logind [1] which supposedely should allow just logind
> > > to activate the session as a non-root user, just that either it wasn't
> > > working or it is no longer present, as I haven't been able to activate
> > > sessions without polkit installed.
> > >
> > > [1] https://github.com/openembedded/openembedded-core/commit/e42dd9cff98f2149904e104f08bc3f19ee7b6fc0
> > >
> >
> > Adding Joshua, I'm hoping he might have some ideas here?
> 
> That patch in question fixed a regression in systemd behavior that was
> introduced at some point that broke the non-polkit behavior. I was
> able to get it fixed, but I also suspect that fighting against using
> polkit isn't going to be productive in the long run and we should look
> at a way to pull it in..... preferably without needing mozjs (why a
> policy system decided to rely on javascript is beyond me). Eventually,
> we are going to want polkit-only features from systemd and there won't
> be grounds (like "This worked before polkit") to get upstream systemd
> to change to support it.

oe-core and poky master already switched from mozjs to duktape with polkit.
I've cherry-picked these changes for my own branches of older yocto releases.

-Mikko

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-31 15:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-27 11:57 meta-egl failure: Nothing RPROVIDES polkit Luca Ceresoli
     [not found] ` <CADja47NmNz+8es0ymHYxmozSPmMA1TCTFeDg7epCDoXMEgYzbA@mail.gmail.com>
2022-05-27 16:23   ` [yocto] " Tim Orling
2022-05-27 20:25     ` Scott Murray
2022-05-31 12:00       ` Luca Ceresoli
     [not found]       ` <YpGn2ltFe33urvHD@xpredator>
2022-05-31 12:27         ` richard.purdie
2022-05-31 12:52           ` Joshua Watt
2022-05-31 15:55             ` Mikko.Rapeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.