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 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
