[OE-core] [PATCH] update-alternatives: Don't process duplicated entries

Richard Purdie richard.purdie at linuxfoundation.org
Sat Jun 16 08:56:08 UTC 2018


On Fri, 2018-06-15 at 17:59 -0700, Jeremy Puhlman wrote:
> If ALTERNATIVE_<pkg> lists the same entry more then once, the
> update-alternatives identical install and remove actions are added
> for
> each repeated entry. This is exhibited when you add meta-selinux, and
> examine the busybox package, which installs every link twice because
> it
> alters the links to point to the shell replacements so selinux will
> work
> with them. This can generate warnings on do_rootfs about similarly
> prioritized alternatives. Given that at this point in the processing
> the addtions should always be identical there shouldn't be any good
> reason to add them twice.
> 
> Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
> ---
>  meta/classes/update-alternatives.bbclass | 4 ++++
>  1 file changed, 4 insertions(+)

Shouldn't we detect and make this a fatal error in one of the other
sanity tests like we do for PACKAGES for example? Would there ever be a
valid use case for duplicate entries here?

Cheers,

Richard



More information about the Openembedded-core mailing list