[OE-core] [PATCH] debian: Fix superfluous setting for RPROVIDES
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Feb 12 11:35:42 UTC 2016
PKG_ can be set to something like ${MLPREFIX}<name> and the lack of expansion here
means the case where MLPREFIX is empty leads to a bogus RPROVIDES.
Use expansion of the variable to avoid this.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 1b6979a..be7cacc 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -53,7 +53,7 @@ python debian_package_name_hook () {
return (s[stat.ST_MODE] & stat.S_IEXEC)
def add_rprovides(pkg, d):
- newpkg = d.getVar('PKG_' + pkg, False)
+ newpkg = d.getVar('PKG_' + pkg, True)
if newpkg and newpkg != pkg:
provs = (d.getVar('RPROVIDES_' + pkg, True) or "").split()
if pkg not in provs:
More information about the Openembedded-core
mailing list