]> code.ossystems Code Review - openembedded-core.git/commitdiff
libc-common: Allow -dbg package to append, and not just set package variables
authorMark Hatle <mark.hatle@windriver.com>
Thu, 28 Jun 2012 21:08:51 +0000 (16:08 -0500)
committerSaul Wold <sgw@linux.intel.com>
Tue, 3 Jul 2012 07:05:40 +0000 (00:05 -0700)
The libc-common attempts to rewrite the package information in a way similar
to debian.bbclass.  When it does this, it should be appending to the
dependency variables (RPROVIDES, RREPLACES, and RCONFLICTS), instead
of simply setting a hard coded value.  Otherwise the lib package can not
tailor the dependency variables to suite it's needs.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/libc-common.bbclass

index 9b91f0a1a6f48f3104fd418585136323f6717253..8145d64e29df7ab93f1affaf1466622acf4413f8 100644 (file)
@@ -29,7 +29,7 @@ python populate_packages_prepend () {
                d.setVar('PKG_'+bpn+'-dev', 'libc6-dev')
                d.setVar('PKG_'+bpn+'-dbg', 'libc6-dbg')
                # For backward compatibility with old -dbg package
-               d.setVar('RPROVIDES_' + bpn + '-dbg', 'libc-dbg')
-               d.setVar('RCONFLICTS_' + bpn + '-dbg', 'libc-dbg')
-               d.setVar('RREPLACES_' + bpn + '-dbg', 'libc-dbg')
+               d.appendVar('RPROVIDES_' + bpn + '-dbg', ' libc-dbg')
+               d.appendVar('RCONFLICTS_' + bpn + '-dbg', ' libc-dbg')
+               d.appendVar('RREPLACES_' + bpn + '-dbg', ' libc-dbg')
 }