[CONSOLIDATED,PULL,16/21] multilib.bbclass: add "pkg_postinst" and "pkg_postrm" as renaming elements

Submitted by Saul Wold on Aug. 26, 2011, 7:39 p.m. | Patch ID: 10671


Message ID a5c9f8af79c1632d2f3de5dd9627a7ca24fa0b76.1314387279.git.sgw@linux.intel.com
State New, archived
Headers show

Commit Message

Saul Wold Aug. 26, 2011, 7:39 p.m.
From: Dongxiao Xu <dongxiao.xu@intel.com>

Add "pkg_postinst" and "pkg_postrm" as renaming elements, which fixes
missing post install/rm scripts in target image.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
 meta/classes/multilib.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 46c24e1..5976d5d 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -73,7 +73,7 @@  python __anonymous () {
     d.setVar("PACKAGES", " ".join([row[1] for row in pkgs_mapping]))
     for pkg_mapping in pkgs_mapping:
+        for subs in ["FILES", "RDEPENDS", "RRECOMMENDS", "SUMMARY", "DESCRIPTION", "RSUGGESTS", "RPROVIDES", "RCONFLICTS", "PKG", "ALLOW_EMPTY", "pkg_postinst", "pkg_postrm"]:
             d.renameVar("%s_%s" % (subs, pkg_mapping[0]), "%s_%s" % (subs, pkg_mapping[1]))
     map_dependencies("DEPENDS", d)