[OE-core] [PATCHv2 1/1] Revert "useradd.bbclass: remove user/group created by the package in clean* task"

Richard Purdie richard.purdie at linuxfoundation.org
Wed Apr 13 16:29:38 UTC 2016


On Wed, 2016-04-13 at 15:14 +0000, Peter Kjellerstedt wrote:
> > -----Original Message-----
> > From: Richard Purdie [mailto:richard.purdie at linuxfoundation.org]
> > Sent: den 13 april 2016 13:05
> > To: Peter Kjellerstedt; Otavio Salvador
> > Cc: OE Core (openembedded-core at lists.openembedded.org)
> > Subject: Re: [OE-core] [PATCHv2 1/1] Revert "useradd.bbclass:
> > remove
> > user/group created by the package in clean* task"
> > 
> > I am pretty frustrated with this thread. The reasons are perhaps
> > not
> > immediately obvious though.
> > 
> > The issue is that there are only a limited number of people who
> > actually dive in and try and fix some of the underlying "core
> > architecture" bugs. There is what I believe to be a pretty good
> > patch
> > here which does fix real world issues which have been reported into
> > the
> > bugzilla (its related to at least two bug reports). As such it has
> > been
> > seen as a bugfix. Its now clear it does have some side effects
> > which
> > weren't envisaged, some causing issues for a small number of meta
> > -oe
> > recipes, the others breaking a companies internal code.
> > 
> > Otavio wants it deferred to 2.2, Peter wants it abandoned entirely.
> > 
> > If I revert this, Peter is then happy and has zero incentive to do
> > anything further. The pressure is still on the reopened bugs to try
> > and
> > fix this somehow and falls back to the usual suspects. There is a
> > real
> > world usability problem there.
> 
> Hold your horses. I definitely see the problem the change tried to 
> address as one that needs to be fixed, and I am already looking at 
> how to solve this properly (currently based on my second suggested 
> solution). However, I do not know if I can fix it in time for
> Krogoth. 
> Which is why I agree with Otavio that the change was introduced too 
> late in the process, especially as it causes breakage for existing 
> users.

There is a comparatively neat way we could use pkgdata to track the
provider of a given user, specifically:

http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip
&id=5cd646ea185eaafaa341f26310f2eddc75766175

The above is a quick patch I've just put together which illustrates
what could be done so that the user gets better warnings about
conflicting users. It needs cleaning up but thought it worth sharing
now as if might give some ideas.

This is in keeping with how bitbake detects multiple providers of the
same thing.

> Here I must show my lack of knowledge. How and where should I go
> about 
> adding a regression test that verifies the support for that multiple 
> recipes can add the same user/group? Since this does not test a 
> specific recipe, but rather a part of the build framework, I do not 
> know if, e.g., ptest is applicable (of which I have no experience 
> either).

oe-selftest would be the place to add something like this, see the
 /meta/lib/oeqa/selftest directory. We could add some test useradd
recipes to meta-selftest.

Cheers,

Richard



More information about the Openembedded-core mailing list