rpm: Enable compatibility with older RPM packages that have invalid platforms
authorMark Hatle <mark.hatle@windriver.com>
Fri, 9 Aug 2013 22:51:30 +0000 (17:51 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Aug 2013 22:06:01 +0000 (23:06 +0100)
commite65fc50fbfe8dc137775a64d61c61daaa65aa335
tree2b41852b0520c88d305ce06d3786f71806f9aa43
parent94827c8f7de2467b6afa5ccd78f7ca7f7565ae6a
rpm: Enable compatibility with older RPM packages that have invalid platforms

Some LSB packages appear to have the platform set to '%{_target_platform}'
which is not a valid platform field.  This causes a failure of the type:

warning: package lsb-test-core-4.1.15-1.x86_64 is intended for a %{_target_platform} platform

When we detect an invalid platform, fall back and try to construct a new
platform name that may be valid based on the arch and os contents of the
package.  (This should only ever be needed by invalid or older RPM packages.)

(From OE-Core rev: 6513fa327aeb7e9fdd313290c205917952eed226)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm/rpm-lsb-compatibility.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_5.4.9.bb