]> code.ossystems Code Review - openembedded-core.git/commit
useradd-staticids: skip recipes without static IDs
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 26 Sep 2017 07:29:47 +0000 (09:29 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Dec 2017 17:14:24 +0000 (17:14 +0000)
commita2766b99a763874d469d34b84109553f68f5aaac
tree619ca4fb241803a44f2f3bea65b8322f186dab2a
parent0d5bbaf5fe66bd93e8d8cbf78834f562d90d9dca
useradd-staticids: skip recipes without static IDs

When enabling useradd-staticids.bbclass, one has to define static IDs
for all recipes in a world build, otherwise those without static IDs
generate parse errors or warnings, depending on USERADD_ERROR_DYNAMIC.

Defining unused IDs is a lot of work and clutters the passwd/group
file of a distro.

Distros which want to avoid this can now set USERADD_ERROR_DYNAMIC =
"skip" and recipes which would have triggered a message then silently
get disabled. Only trying to build them shows the error message:

$ bitbake apt
...
ERROR: Nothing PROVIDES 'apt'
ERROR: apt was skipped: apt - apt: username _apt does not have a static ID defined.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/classes/useradd-staticids.bbclass