[OE-core] [PATCH 07/10] opkg-utils/update-alternatives: not warn same priorities for multilib

Richard Purdie richard.purdie at linuxfoundation.org
Sat Sep 29 12:40:50 UTC 2018


On Sat, 2018-09-29 at 13:43 +0800, kai.kang at windriver.com wrote:
> From: Kai Kang <kai.kang at windriver.com>
> 
> update-alternatives is used to handle install file conflicts of
> multilib
> packages in multilib_script.bbclass. And the default priority is used
> for the alternatives which causes QA warning:
> 
> > WARNING: core-image-minimal-1.0-r0 do_rootfs: [log_check] core-
> > image-minimal: found 1 warning message in the logfile
> > [log_check] Warn: update-alternatives: libtool has multiple
> > providers with the same priority, please check
> > .../core-image-minimal/1.0-
> > r0/rootfs/usr/lib/opkg/alternatives/libtool for details
> 
> The same priorities of alternatives are by design, so eliminate the
> warning for alternatives from multilib packages.
> 
> Signed-off-by: Kai Kang <kai.kang at windriver.com>

Sorry, no, this isn't right either :(

If we read the patch where multilib_scripts were introduced:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e3497cc22b969e02efa54e4e54e087dbb91d8ced

it says "standardisation amongst the multilibs on how the alternatives
are named and prioritiesd. The priotitisation code needs to be added
but this change means there is somewhere to add it."

so the intent was to allow the user to define which multilib should be
the higher priority and add in some prioritisation code.

The correct way to fix these warning is to add such code, allowing the
user to specify the order of priorities of the multilibs.

Cheers,

Richard





More information about the Openembedded-core mailing list