[OE-core] [RFC PATCH 1/2] opkg svn: Add the --force-arch option

Phil Blundell philb at gnu.org
Sat Sep 8 20:08:55 UTC 2012


On Wed, 2012-09-05 at 17:31 +0800, Robert Yang wrote:
> If there are more than one candidate which has the same pkg name in the
> candidate list, for example, the same pkg with different versions, then
> it will use the last one which is the highest version in the list
> 
> Add the "--force-arch" (just like the --force-downgrade) option to let
> it use the higher arch priority package when enabled. the default is no.

This seems like a reasonable feature to add to opkg, though I don't
think "--force-arch" is a very good name for the switch.  (That name
implies to me "allow the package to be installed even if the
architecture seems to be incompatible", which is quite different to what
your option does.) 

However, regarding the underlying problem:

a) for people who are not using O_P_M, it's becoming apparent that the
whole concept of using opkg (or rpm, or any other external package
manager) for rootfs construction is more of a liability than an asset
because bitbake has more knowledge about which particular binaries ought
to be installed.  For those use-cases, it might be better to think in
terms of abolishing opkg altogether which would solve this problem and a
variety of others.

b) for people who _are_ using O_P_M, specifying --force-arch during
rootfs construction is all very well but they might still lose during a
subsequent "opkg upgrade".  So for these use cases, it seems as though
something a bit more sticky might be required.

p.






More information about the Openembedded-core mailing list