]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-rc.d: Handle multilib case for initscripts
authorSaul Wold <sgw@linux.intel.com>
Fri, 9 May 2014 00:39:22 +0000 (17:39 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 May 2014 11:26:26 +0000 (12:26 +0100)
When building multilib, we also have to add the multlib prefix otherwise
we get a WARNING:
WARNING: Multilib QA Issue: lib32-dbus package lib32-dbus - suspicious values 'initscripts-functions' in RDEPENDS

[YOCTO #6164]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/update-rc.d.bbclass

index 81cc97621ae5750d16da0242ae11375d56d9cf11..56eef4e06dd9a9152adc6a7f6911b63a43657db7 100644 (file)
@@ -79,7 +79,8 @@ python populate_packages_updatercd () {
             return
         statement = "grep -q -w '/etc/init.d/functions' %s" % path
         if subprocess.call(statement, shell=True) == 0:
-            d.appendVar('RDEPENDS_' + pkg, ' initscripts-functions')
+            mlprefix = d.getVar('MLPREFIX', True) or ""
+            d.appendVar('RDEPENDS_' + pkg, ' %sinitscripts-functions' % (mlprefix))
 
     def update_rcd_package(pkg):
         bb.debug(1, 'adding update-rc.d calls to preinst/postinst/prerm/postrm for %s' % pkg)