[OE-core] [RFC PATCH 2/2] package_ipk.bbclass: use "--force-arch" when install package

Koen Kooi koen at dominion.thruhere.net
Wed Sep 5 10:05:03 UTC 2012


Op 5 sep. 2012, om 11:31 heeft Robert Yang <liezhi.yang at windriver.com> het volgende geschreven:

> This is for fixing the problem:
> 1) bitbake core-image-sato-sdk with MACHINE=qemux86
> 2) bitbake core-image-sato with with MACHINE=crownbay
> 
> The qemux86's PACKAGE_ARCH is i586, the crownbay's is core2, but several
> i586 packages will be installed into crownbay's rootfs though there are
> core2 packages. For example, there are:
> 
> xserver-xorg_1.11.2-r4_i586.ipk
> xserver-xorg_1.9.3-r1_core2.ipk
> 
> The crownbay.conf says:
> PREFERRED_VERSION_xserver-xorg ?= "1.9.3"
> 
> What the crownbay's image needs is xserver-xorg_1.9.3-r1_core2.ipk, but
> the xserver-xorg_1.11.2-r4_i586.ipk will be installed, this is
> incorrect.

It is the correct behaviour, though.

> This is caused by opkg's selecting mechanism: when more than one
> candidate is found, it will use the higher version one and ignore the
> arch priority.

As expected and wanted.

> we have several conf files which set the PREFERRED_VERSION_pkg = "..." ,
> but there is no such a mechanism which can let us tell the opkg to
> install the preferred version.

As pointed out before, your DISTRO needs to fix this and you should NOT break opkg in the way you are doing now. 



More information about the Openembedded-core mailing list