]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
Fix RPM backend does not honor package overrides for PACKAGE_ARCH dengke/fix-yocto-bug-7984
authorDengke Du <dengke.du@windriver.com>
Sun, 8 Jan 2017 10:59:48 +0000 (18:59 +0800)
committerDengke Du <dengke.du@windriver.com>
Wed, 11 Jan 2017 01:35:51 +0000 (20:35 -0500)
commitd4f993e17790a2ed2a1c15b4e549eb33393bfaa9
tree58290fdab53eeaeb39f34b63860d74203bdf4c6f
parente016eb10b075e280b4e78a04e47b59a173386421
Fix RPM backend does not honor package overrides for PACKAGE_ARCH

If we use a package overrides as part of PACKAGE_ARCH when using the rpm
backend, The override is not honored.

For example, we use the Randy Witt's attachment, we can get it from:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7984

Using the attached recipe, the package "package-b" would be have architecture
of "all" in the rpm metadata, but for the subpackages rpm program only support
"noarch" , so at this time we set it to "noarch", after we build it, however
it ends up being equal to the default. i.e. TUNE_PKGARCH, but it does not occur
when using ipk and deb.

This is because when using ipk and deb, the packages were builded one by one,
but when using rpm, the packages were builded form only one spec file, that is
to say the building only occur once, and all the packages' arch was set to the
default: TUNE_PKGARCH.

The solution is that we need to check the extra arch of packages, and build them
individually.

[YOCTO #7984]

Signed-off-by: Dengke Du <dengke.du@windriver.com>
meta/classes/package_rpm.bbclass