Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCHv2 0/1] Revert cleaning of users/groups
Date: Tue, 12 Apr 2016 15:18:32 +0200	[thread overview]
Message-ID: <cover.1460467072.git.pkj@axis.com> (raw)

About a week ago the "solution" to
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9262 was accepted
into OE-Core. This is supposed to solve the problem that users/groups
are not removed from the sysroot when the recipe is cleansstated. The
solution, however, totally fails to handle the case where multiple
recipes have installed the same user/group causing the build to fail
all over the place.

We have a lot of recipes that installs users and groups, many of which
are created by multiple recipes. An example of how this change broke
for us:

Recipe libwsd creates the wsd group. Recipe wsd creates the wsd group
and the wsd user which has the wsd group as it primary group. When the
libwsd recipe needs to be rebuilt the following error occurs:

groupdel: cannot remove the primary group of user 'wsd'

and the build aborts.

If a solution like this is supposed to be implemented it needs to keep
track of all recipes that install a particular user/group and only
when all of them have been removed can the user/group be removed.
Until that has been solved, the current solution needs to be
reverted...

PATCHv2: Correct a typo in the commit message.

//Peter

The following changes since commit 5602f64ab8c3654737273c0e7ac1c966fa8afb6a:

  archiver: Fix ASSUME_PROVIDED issues (2016-04-11 09:03:58 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/clean_users
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/clean_users

Peter Kjellerstedt (1):
  Revert "useradd.bbclass: remove user/group created by the package in
    clean* task"

 meta/classes/sstate.bbclass  |  5 -----
 meta/classes/useradd.bbclass | 29 -----------------------------
 2 files changed, 34 deletions(-)

-- 
2.1.0



             reply	other threads:[~2016-04-12 13:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 13:18 Peter Kjellerstedt [this message]
2016-04-12 13:18 ` [PATCHv2 1/1] Revert "useradd.bbclass: remove user/group created by the package in clean* task" Peter Kjellerstedt
2016-04-12 13:34   ` Otavio Salvador
2016-04-12 14:54   ` Richard Purdie
2016-04-12 16:35     ` Otavio Salvador
2016-04-12 17:28       ` Peter Kjellerstedt
2016-04-13 11:05         ` Richard Purdie
2016-04-13 15:14           ` Peter Kjellerstedt
2016-04-13 16:04             ` Maxin B. John
2016-04-13 16:29             ` Richard Purdie
2016-04-14 10:40               ` Richard Purdie
2016-04-14 11:46                 ` Peter Kjellerstedt
2016-04-14 11:50                   ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1460467072.git.pkj@axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox