From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Fabio Berton <fabio.berton@ossystems.com.br>,
openembedded-core@lists.openembedded.org
Subject: Re: userdel_sysroot_sstate failed when try to remove group
Date: Wed, 13 Apr 2016 12:27:56 +0100 [thread overview]
Message-ID: <1460546876.9308.87.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAAPZna383bo4guwTc5a8dfaLuATyaTvULmyyZngfDtQiOjtB=Q@mail.gmail.com>
On Fri, 2016-04-08 at 14:19 -0300, Fabio Berton wrote:
> I'm getting this error when building recipe meta-networking/recipes
> -daemons/cyrus-sasl/cyrus-sasl_2.1.26.bb
> from meta-openembedded:
>
> DEBUG: Executing shell function userdel_sysroot_sstate
> NOTE: cyrus-sasl: Performing userdel with [--root
> /home/user/src/prj/build/tmp/sysroots/intel-core2-32 cyrus]
> NOTE: cyrus-sasl: user cyrus doesn't exist, not removing it
> NOTE: cyrus-sasl: Performing groupdel with [--root
> /home/user/src/prj/build/tmp/sysroots/intel-core2-32 mail]
> groupdel: cannot remove the primary group of user 'mail'
> WARNING: exit code 1 from a shell command.
> ERROR: cyrus-sasl: groupdel command did not succeed.
> DEBUG: Python function sysroot_cleansstate finished
> ERROR: Function failed: userdel_sysroot_sstate
>
> The function userdel_sysroot_sstate was introduced by commit:
> http://cgit.openembedded.org/openembedded-core/commit/?id=b5304ce4386
> 66a7418746f4ddd32703ae3188089
>
> This error occurs on the first build of cyrus-sasl recipe, and I
> didn't run
> cleansstate any time. userdel_sysroot_sstate is trying to remove user
> and group before they are created.
>
> As temporary solution I commented line SSTATECLEANFUNCS =
> "userdel_sysroot_sstate"
> in useradd.bbclass file.
Firstly, I do agree that we could use better error messages for this.
I believe the problem is the cyrus-sasl is trying to create a "mail"
group when the base-passwd file already creates such a group. If that
group creation is removed, does the recipe work again?
Cheers,
Richard
prev parent reply other threads:[~2016-04-13 11:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 17:19 userdel_sysroot_sstate failed when try to remove group Fabio Berton
2016-04-13 11:27 ` Richard Purdie [this message]
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=1460546876.9308.87.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=fabio.berton@ossystems.com.br \
--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 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.