This is my proposed solution for groupmems' lack of support for the
--prefix option
(https://bugzilla.yoctoproject.org/show_bug.cgi?id=16277), and the fact
that groupmems will be removed in the next version of shadow.

The first three commits make a little bit of clean-up to
useradd.bbclass and then add the support for USERMOD_PARAM. These I
would like to see backported to Wrynose. While technically it is a new
feature, I hope this can be accepted (it should not affect anyone who 
does not actively start using it). It would make it a lot easier for us 
and others who are using GROUPMEMS_PARAM today (we have more than 300 
recipes that will need to be updated) as it would then be possible to 
migrate the recipes over some time rather than having to do a flag day 
rewrite.

The next commit (only intended for master) modifies the
perform_groupmems() function so that it actually uses usermod to do the
work. This allows GROUPMEMS_PARAM to continue to work while we migrate
to USERMOD_PARAM.

The last commit (also only intended for master) adds a warning for all
recipes that use GROUPMEMS_PARAM, to inform that one should switch to
USERMOD_PARAM.

The final piece (which is not included) here, is the actual removal of
support for GROUPMEMS_PARAM. This I intend should be in place in time 
before feature freeze.

The intention of the above plan is to give us and others who rely on
GROUPMEMS_PARAM a way to do the migration without having to resort to a
flag day upgrade of a huge number of recipes, and still have everything
in place and cleaned-up before 6.1 is released.

Peter Kjellerstedt (5):
  useradd.bbclass: Some clean-ups and simplifications
  useradd.bbclass: Add support for USERMOD_PARAM
  package.bbclass: Add USERMOD_PARAM to PACKAGEVARS
  useradd_base.bbclass: Emulate the groupmems command using usermod
  useradd.bbclass: Show a deprecation warning if GROUPMEMS_PARAM is used

 meta/classes-global/package.bbclass |   2 +-
 meta/classes/useradd.bbclass        | 104 ++++++++++++++++++----------
 meta/classes/useradd_base.bbclass   |   7 +-
 meta/conf/documentation.conf        |   1 +
 4 files changed, 72 insertions(+), 42 deletions(-)

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#236907): 
https://lists.openembedded.org/g/openembedded-core/message/236907
Mute This Topic: https://lists.openembedded.org/mt/119284990/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to