]> code.ossystems Code Review - openembedded-core.git/commit
multilib.bbclass: Fix renaming logic for "FILES_", "RDEPENDS_", etc
authorDongxiao Xu <dongxiao.xu@intel.com>
Thu, 25 Aug 2011 13:30:12 +0000 (21:30 +0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 26 Aug 2011 19:34:02 +0000 (12:34 -0700)
commitea7c196b4097d64b4f42faccaf075334c297ba20
treeb22db61043472cb095046c34d0efa513bbb72355
parentcb247225a96d57e67ce32c5674bb13b703e30a7c
multilib.bbclass: Fix renaming logic for "FILES_", "RDEPENDS_", etc

In the orignal logic, the renaming will not work for "FILES_" if defined
variables as:

PACKAGES = "${PN}"
FILES_abc = "/usr/include/abc.h"

It is because ${PN} is "lib64-abc" so it will not be contained in
pkgrename.

This commit enumerates all element in PACKAGES, getting the original
packages and multilib packages, then doing renaming for "FILES_",
"RDEPENDS_", etc. This fixes a lot of missing files and incorrect
dependencies.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/classes/multilib.bbclass